33 lines
979 B
Nix
33 lines
979 B
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
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";
|
|
# };
|
|
};
|
|
|
|
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 {
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|