mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds agenix, adds server host
This commit is contained in:
parent
ae6b3dfc88
commit
85c6629d05
1 changed files with 26 additions and 13 deletions
39
flake.nix
39
flake.nix
|
|
@ -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 ; };
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue