diff options
| author | Fuwn <[email protected]> | 2024-10-03 02:14:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-03 02:14:14 -0700 |
| commit | 6b51e66a04243bc24b0dba5030a8de121bcebca4 (patch) | |
| tree | 00ab61f775abf501ffb27eba8c73fef6216443e3 /hosts/kansai | |
| parent | akashi: configure home manager packages (diff) | |
| download | nixos-config-6b51e66a04243bc24b0dba5030a8de121bcebca4.tar.xz nixos-config-6b51e66a04243bc24b0dba5030a8de121bcebca4.zip | |
hosts: move hosts to unique modules
Diffstat (limited to 'hosts/kansai')
| -rw-r--r-- | hosts/kansai/configuration.nix | 13 | ||||
| -rw-r--r-- | hosts/kansai/default.nix | 49 |
2 files changed, 52 insertions, 10 deletions
diff --git a/hosts/kansai/configuration.nix b/hosts/kansai/configuration.nix new file mode 100644 index 0000000..d4a3ff1 --- /dev/null +++ b/hosts/kansai/configuration.nix @@ -0,0 +1,13 @@ +{ self, ... }: +{ + imports = [ + ./hardware-configuration.nix + "${self}/modules/core" + "${self}/modules/desktop" + "${self}/modules/options" + "${self}/modules/pc" + ]; + + networking.hostName = "kansai"; + system.stateVersion = "24.05"; +} diff --git a/hosts/kansai/default.nix b/hosts/kansai/default.nix index d4a3ff1..c1be877 100644 --- a/hosts/kansai/default.nix +++ b/hosts/kansai/default.nix @@ -1,13 +1,42 @@ -{ self, ... }: { - imports = [ - ./hardware-configuration.nix - "${self}/modules/core" - "${self}/modules/desktop" - "${self}/modules/options" - "${self}/modules/pc" - ]; + inputs, + outputs, + secrets, + self, + kansaiPkgs, + lib, + pcModules, +}: +{ + flake.nixosConfigurations.kansai = + let + pkgs = + (kansaiPkgs { + nixpkgsAllowUnfree = true; + nixpkgsCudaSupport = true; + })."x86_64-linux"; + in + lib.nixosSystem { + inherit pkgs; + + specialArgs = { + inherit + inputs + outputs + secrets + self + ; + }; - networking.hostName = "kansai"; - system.stateVersion = "24.05"; + modules = + with inputs; + [ + home-manager.nixosModule + nur.nixosModules.nur + chaotic.nixosModules.default + ./configuration.nix + ./hardware-configuration.nix + ] + ++ pcModules pkgs.system; + }; } |