summaryrefslogtreecommitdiff
path: root/hosts/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-20 22:10:21 -0400
committerseth <[email protected]>2023-04-20 22:13:45 -0400
commiteb3f9e87435be5941278d819351bac0ece172051 (patch)
treed32d347bcba4760dcf1b3b8d11e6accbde12f49c /hosts/default.nix
parent65e26c34990fa57e305093572ea3a9596bc45b38 (diff)
move to my external lib
Diffstat (limited to 'hosts/default.nix')
-rw-r--r--hosts/default.nix31
1 files changed, 23 insertions, 8 deletions
diff --git a/hosts/default.nix b/hosts/default.nix
index fdaea60..e9396a1 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -1,26 +1,42 @@
inputs:
with inputs; let
- common = {
+ common = rec {
system = "x86_64-linux";
- stateVersion = "23.05";
- pkgs = nixpkgsUnstable;
- modules = with inputs; [
+ builder = nixpkgsUnstable.lib.nixosSystem;
+
+ modules = [
agenix.nixosModules.default
home-manager.nixosModules.home-manager
nur.nixosModules.nur
+
+ self.nixosModules.getchoo
+ "${self}/users/seth"
+
{
age = {
identityPaths = ["/etc/age/key"];
secrets = {
- rootPassword.file = ../users/secrets/rootPassword.age;
- sethPassword.file = ../users/secrets/sethPassword.age;
+ rootPassword.file = "${self}/users/_secrets/rootPassword.age";
+ sethPassword.file = "${self}/users/_secrets/sethPassword.age";
};
};
+
+ nixpkgs = {
+ overlays = [nur.overlay getchoo.overlays.default];
+ config.allowUnfree = true;
+ };
+
+ nix.registry.getchoo.flake = getchoo;
+ nixos.enable = true;
+ system.stateVersion = "23.05";
}
];
+
+ specialArgs = {};
};
in {
glados = {
+ inherit (common) builder specialArgs system;
modules =
common.modules
++ [
@@ -29,14 +45,13 @@ in {
nixos-hardware.nixosModules.common-pc-ssd
lanzaboote.nixosModules.lanzaboote
];
- inherit (common) system stateVersion pkgs;
};
glados-wsl = {
+ inherit (common) builder specialArgs system;
modules =
common.modules
++ [
nixos-wsl.nixosModules.wsl
];
- inherit (common) system stateVersion pkgs;
};
}