diff options
| author | Fuwn <[email protected]> | 2024-09-11 19:39:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-11 19:39:29 -0700 |
| commit | 4dd0e8e198b5d981c05ce69b8d1ebfec349adf07 (patch) | |
| tree | 127e2f239ca2e0b9842c497e4bb1cdda0ca9e938 | |
| parent | flake-parts: perSystem (diff) | |
| download | nixos-config-4dd0e8e198b5d981c05ce69b8d1ebfec349adf07.tar.xz nixos-config-4dd0e8e198b5d981c05ce69b8d1ebfec349adf07.zip | |
flake-parts: hosts
| -rw-r--r-- | flake.nix | 19 | ||||
| -rw-r--r-- | hosts/default.nix | 26 |
2 files changed, 27 insertions, 18 deletions
@@ -83,9 +83,6 @@ nixpkgs, home-manager, systems, - nix-index-database, - pia, - nur, pre-commit-hooks, chaotic, flake-parts, @@ -101,6 +98,7 @@ in flake-parts.lib.mkFlake { inherit inputs; } { systems = builtins.attrNames (forAllSystems (system: system)); + imports = [ ./hosts ]; perSystem = { system, ... }: @@ -128,21 +126,6 @@ flake = { inherit lib; - nixosConfigurations.kansai = lib.nixosSystem { - specialArgs = { - inherit inputs outputs secrets; - }; - - modules = [ - home-manager.nixosModule - pia.nixosModule - nix-index-database.nixosModules.nix-index - nur.nixosModules.nur - chaotic.nixosModules.default - ./hosts/kansai - ]; - }; - homeConfigurations.ebisu = let username = "ebisu"; diff --git a/hosts/default.nix b/hosts/default.nix new file mode 100644 index 0000000..266d30c --- /dev/null +++ b/hosts/default.nix @@ -0,0 +1,26 @@ +{ + lib, + inputs, + outputs, + self, + ... +}: +let + secrets = builtins.fromTOML (builtins.readFile "${self}/secrets/secrets.toml"); +in +{ + flake.nixosConfigurations.kansai = lib.nixosSystem { + specialArgs = { + inherit inputs outputs secrets; + }; + + modules = [ + inputs.home-manager.nixosModule + inputs.pia.nixosModule + inputs.nix-index-database.nixosModules.nix-index + inputs.nur.nixosModules.nur + inputs.chaotic.nixosModules.default + ./kansai + ]; + }; +} |