From 85c6629d05d70542cbe36d1b787d4ff6e5b4b48e Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 21 Jun 2024 12:15:15 +0200 Subject: [PATCH] feat: adds agenix, adds server host --- flake.nix | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index 689a977..fef9267 100644 --- a/flake.nix +++ b/flake.nix @@ -26,17 +26,12 @@ url = "github:catppuccin/bat"; flake = false; }; - catppuccin-cava = { - url = "github:catppuccin/cava"; - flake = false; - }; - catppuccin-starship = { - url = "github:catppuccin/starship"; - flake = false; - }; + + agenix.url = "github:ryantm/agenix"; + agenix.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { nixpkgs, self, ...} @ inputs: + outputs = { nixpkgs, self, agenix, ...} @ inputs: let selfPkgs = import ./pkgs; username = "liv"; @@ -52,19 +47,37 @@ nixosConfigurations = { desktop = nixpkgs.lib.nixosSystem { inherit system; - modules = [ (import ./hosts/desktop) ]; + modules = [( + import ./hosts/desktop + agenix.nixosModules.default + )]; specialArgs = { host="desktop"; inherit self inputs username ; }; }; laptop = nixpkgs.lib.nixosSystem { inherit system; - modules = [ (import ./hosts/laptop) ]; + modules = [( + import ./hosts/laptop + agenix.nixosModules.default + )]; specialArgs = { host="laptop"; inherit self inputs username ; }; }; - vm = nixpkgs.lib.nixosSystem { + vm = nixpkgs.lib.nixosSystem { inherit system; - modules = [ (import ./hosts/vm) ]; + modules = [( + import ./hosts/vm + agenix.nixosModules.default + )]; 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 ; }; + }; + }; }; }