1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

clean: move nixpkgs.hostPlatform declarations to hardware.nix

This commit is contained in:
RGBCube 2025-02-25 22:11:30 +03:00
parent 44342ee31d
commit a7c9b60944
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
10 changed files with 17 additions and 7 deletions

View file

@ -58,7 +58,6 @@ in {
}; };
}; };
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "25.05"; system.stateVersion = "25.05";
home-manager.sharedModules = [{ home-manager.sharedModules = [{
home.stateVersion = "25.05"; home.stateVersion = "25.05";

View file

@ -27,4 +27,6 @@ in {
fsType = "vfat"; fsType = "vfat";
options = [ "noatime" ]; options = [ "noatime" ];
}; };
nixpkgs.hostPlatform = "x86_64-linux";
} }

View file

@ -65,7 +65,6 @@ in {
}; };
}; };
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "23.05"; system.stateVersion = "23.05";
home-manager.sharedModules = [{ home-manager.sharedModules = [{
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View file

@ -20,4 +20,6 @@ in {
fsType = "ext4"; fsType = "ext4";
options = [ "noatime" ]; options = [ "noatime" ];
}; };
nixpkgs.hostPlatform = "x86_64-linux";
} }

View file

@ -58,7 +58,6 @@ in {
}; };
}; };
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "23.11"; system.stateVersion = "23.11";
home-manager.sharedModules = [{ home-manager.sharedModules = [{
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View file

@ -33,4 +33,6 @@ in {
swapDevices = [{ swapDevices = [{
device = "/dev/disk/by-label/swap"; device = "/dev/disk/by-label/swap";
}]; }];
nixpkgs.hostPlatform = "x86_64-linux";
} }

View file

@ -58,7 +58,6 @@ in {
}; };
}; };
nixpkgs.hostPlatform = "aarch64-linux";
system.stateVersion = "23.11"; system.stateVersion = "23.11";
home-manager.sharedModules = [{ home-manager.sharedModules = [{
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View file

@ -30,4 +30,6 @@ in {
}; };
zramSwap = enabled; zramSwap = enabled;
nixpkgs.hostPlatform = "aarch64-linux";
} }

View file

@ -1,4 +1,8 @@
lib: lib.darwinSystem { lib: lib.darwinSystem ({ lib, ... }: let
inherit (lib) collectNix remove;
in {
imports = collectNix ./. |> remove ./default.nix;
type = "desktop"; type = "desktop";
networking.hostName = "pala"; networking.hostName = "pala";
@ -13,6 +17,5 @@ lib: lib.darwinSystem {
homeDirectory = "/Users/pala"; homeDirectory = "/Users/pala";
}; };
nixpkgs.hostPlatform = "aarch64-darwin";
system.stateVersion = 5; system.stateVersion = 5;
} })

3
hosts/pala/hardware.nix Normal file
View file

@ -0,0 +1,3 @@
{
nixpkgs.hostPlatform = "aarch64-darwin";
}