mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 18:47:44 +00:00
clean: move nixpkgs.hostPlatform declarations to hardware.nix
This commit is contained in:
parent
44342ee31d
commit
a7c9b60944
10 changed files with 17 additions and 7 deletions
|
@ -58,7 +58,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
system.stateVersion = "25.05";
|
||||
home-manager.sharedModules = [{
|
||||
home.stateVersion = "25.05";
|
||||
|
|
|
@ -27,4 +27,6 @@ in {
|
|||
fsType = "vfat";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -65,7 +65,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
system.stateVersion = "23.05";
|
||||
home-manager.sharedModules = [{
|
||||
home.stateVersion = "23.11";
|
||||
|
|
|
@ -20,4 +20,6 @@ in {
|
|||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -58,7 +58,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
system.stateVersion = "23.11";
|
||||
home-manager.sharedModules = [{
|
||||
home.stateVersion = "23.11";
|
||||
|
|
|
@ -33,4 +33,6 @@ in {
|
|||
swapDevices = [{
|
||||
device = "/dev/disk/by-label/swap";
|
||||
}];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -58,7 +58,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-linux";
|
||||
system.stateVersion = "23.11";
|
||||
home-manager.sharedModules = [{
|
||||
home.stateVersion = "23.11";
|
||||
|
|
|
@ -30,4 +30,6 @@ in {
|
|||
};
|
||||
|
||||
zramSwap = enabled;
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-linux";
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
lib: lib.darwinSystem {
|
||||
lib: lib.darwinSystem ({ lib, ... }: let
|
||||
inherit (lib) collectNix remove;
|
||||
in {
|
||||
imports = collectNix ./. |> remove ./default.nix;
|
||||
|
||||
type = "desktop";
|
||||
|
||||
networking.hostName = "pala";
|
||||
|
@ -13,6 +17,5 @@ lib: lib.darwinSystem {
|
|||
homeDirectory = "/Users/pala";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
system.stateVersion = 5;
|
||||
}
|
||||
})
|
||||
|
|
3
hosts/pala/hardware.nix
Normal file
3
hosts/pala/hardware.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue