feat: adds agenix, adds server host

This commit is contained in:
Ahwx 2024-06-21 12:15:15 +02:00
parent ae6b3dfc88
commit 85c6629d05

View file

@ -26,17 +26,12 @@
url = "github:catppuccin/bat"; url = "github:catppuccin/bat";
flake = false; flake = false;
}; };
catppuccin-cava = {
url = "github:catppuccin/cava"; agenix.url = "github:ryantm/agenix";
flake = false; agenix.inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin-starship = {
url = "github:catppuccin/starship";
flake = false;
};
}; };
outputs = { nixpkgs, self, ...} @ inputs: outputs = { nixpkgs, self, agenix, ...} @ inputs:
let let
selfPkgs = import ./pkgs; selfPkgs = import ./pkgs;
username = "liv"; username = "liv";
@ -52,19 +47,37 @@
nixosConfigurations = { nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem { desktop = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ (import ./hosts/desktop) ]; modules = [(
import ./hosts/desktop
agenix.nixosModules.default
)];
specialArgs = { host="desktop"; inherit self inputs username ; }; specialArgs = { host="desktop"; inherit self inputs username ; };
}; };
laptop = nixpkgs.lib.nixosSystem { laptop = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ (import ./hosts/laptop) ]; modules = [(
import ./hosts/laptop
agenix.nixosModules.default
)];
specialArgs = { host="laptop"; inherit self inputs username ; }; specialArgs = { host="laptop"; inherit self inputs username ; };
}; };
vm = nixpkgs.lib.nixosSystem { vm = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ (import ./hosts/vm) ]; modules = [(
import ./hosts/vm
agenix.nixosModules.default
)];
specialArgs = { host="vm"; inherit self inputs username ; }; specialArgs = { host="vm"; inherit self inputs username ; };
}; };
server = nixpkgs.lib.nixosSystem {
inherit system;
modules = [(
import ./hosts/server
agenix.nixosModules.default
)];
specialArgs = { host="server"; inherit self inputs username ; };
};
}; };
}; };
} }