feat: working nixos

This commit is contained in:
Philipp Hochkamp 2022-03-25 13:32:05 +01:00
parent fff61d5fd7
commit 7a85f7cec6
7 changed files with 13 additions and 12 deletions

View file

@ -13,6 +13,7 @@ in
config = lib.mkIf cfg.enable {
services.unifi = {
enable = true;
openFirewall = true;
};
services.nginx.virtualHosts."${cfg.domainPrefix}.${domain}" = {
forceSSL = true;

View file

@ -17,7 +17,7 @@ in
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ agenix.defaultPackage.${pkgs.system} ];
environment.systemPackages = [ inputs.agenix.defaultPackage.${pkgs.system} ];
# Set passwords
users.users.root.passwordFile = config.age.secrets.rootPasswd.path;
age.identityPaths =

View file

@ -5,7 +5,7 @@ let
username = cfg.username;
extraGroups = cfg.extraGroups;
extraAuthorizedKeys = cfg.extraAuthorizedKeys;
pubkeys = import ../../data/pubkeys.nix {};
pubkeys = import ../../data/pubkeys.nix;
in
{