Skip to content

Commit

Permalink
feat: adds agenix, adds server host
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahwxorg committed Jun 21, 2024
1 parent ae6b3df commit 85c6629
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 ; };
};

};
};
}

0 comments on commit 85c6629

Please sign in to comment.