refactor flake.nix and remove wireguard from secrets.nix
This commit is contained in:
@@ -3,29 +3,27 @@
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
unifi-os-server.url = "github:rcambrj/unifi-os-server";
|
||||
|
||||
# home-manager = {
|
||||
# url = "github:nix-community/home-manager";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# };
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
unifi-os-server.url = "github:rcambrj/unifi-os-server";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, agenix, unifi-os-server, ... }@inputs: {
|
||||
# use "nixos", or your hostname as the name of the configuration
|
||||
# it's a better practice than "default" shown in the video
|
||||
nixosConfigurations.Hermes= nixpkgs.lib.nixosSystem {
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
agenix,
|
||||
unifi-os-server,
|
||||
...
|
||||
} @ inputs: {
|
||||
nixosConfigurations.Hermes = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
./hosts/hermes/configuration.nix
|
||||
./hosts/hermes/hardware-configuration.nix
|
||||
./modules/homelab.nix
|
||||
./modules/security.nix
|
||||
./modules/system.nix
|
||||
agenix.nixosModules.default
|
||||
unifi-os-server.nixosModules.unifi-os-server
|
||||
# inputs.home-manager.nixosModules.default
|
||||
./hosts/hermes/hardware-configuration.nix
|
||||
./modules/homelab.nix
|
||||
./modules/security.nix
|
||||
./modules/system.nix
|
||||
agenix.nixosModules.default
|
||||
unifi-os-server.nixosModules.unifi-os-server
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user