diff options
| author | seth <[email protected]> | 2023-05-07 23:18:34 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-07 23:18:34 -0400 |
| commit | 66d3333ad7583df1e03296b88e21a964c10309de (patch) | |
| tree | 8e78fd8ddf4328d49208e3bfdf07b7419832efac /hosts/common.nix | |
| parent | 6e49c227c18d4f3008318aaa0a38a36c4de7f6c9 (diff) | |
hosts: add mkNixOS
Diffstat (limited to 'hosts/common.nix')
| -rw-r--r-- | hosts/common.nix | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/hosts/common.nix b/hosts/common.nix deleted file mode 100644 index 3e2a7ca..0000000 --- a/hosts/common.nix +++ /dev/null @@ -1,87 +0,0 @@ -{ - inputs, - self, -}: let - inherit (inputs) getchoo home-manager nil nixpkgs nixpkgsUnstable nur ragenix; -in { - personal = { - system = "x86_64-linux"; - builder = nixpkgsUnstable.lib.nixosSystem; - - dir = ./.; - - modules = [ - ragenix.nixosModules.default - home-manager.nixosModules.home-manager - nur.nixosModules.nur - - self.nixosModules.getchoo - ../users/seth - - { - age = { - identityPaths = ["/etc/age/key"]; - secrets = let - baseDir = "${self}/secrets/shared"; - in { - rootPassword.file = "${baseDir}/rootPassword.age"; - sethPassword.file = "${baseDir}/sethPassword.age"; - }; - }; - - nixpkgs = { - overlays = [nil.overlays.nil nur.overlay getchoo.overlays.default]; - config.allowUnfree = true; - }; - - nix = { - registry = { - getchoo.flake = getchoo; - nixpkgs.flake = nixpkgsUnstable; - }; - - settings = { - trusted-substituters = [ - "https://getchoo.cachix.org" - "https://nix-community.cachix.org" - "https://hercules-ci.cachix.org" - "https://wurzelpfropf.cachix.org" - ]; - - trusted-public-keys = [ - "getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE=" - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - "hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0=" - "wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0=" - ]; - }; - }; - - getchoo.nixos.enable = true; - system.stateVersion = "23.05"; - } - ]; - - specialArgs = inputs; - }; - - server = { - builder = nixpkgs.lib.nixosSystem; - - dir = ./.; - - modules = [ - ragenix.nixosModules.default - ../modules/base - ../modules/nixos - ../modules/server - - { - getchoo.server.enable = true; - nix.registry.nixpkgs.flake = nixpkgs; - } - ]; - - specialArgs = inputs; - }; -} |
