diff --git a/modules/eric.nix b/modules/eric.nix new file mode 100644 index 00000000..c86b4052 --- /dev/null +++ b/modules/eric.nix @@ -0,0 +1,21 @@ +{ config, lib, ... }: + +let + inherit (lib) mkForce; +in +{ + flake = { + meta.eric = { + name = "Eric Davies"; + username = "eric"; + }; + + modules.nixos.user-eric = { + users.users.${config.flake.meta.eric.username} = { + description = config.flake.meta.eric.name; + isNormalUser = true; + initialPassword = mkForce ""; + }; + }; + }; +} diff --git a/modules/hosts/homelab/home01/configuration.nix b/modules/hosts/homelab/home01/configuration.nix index 2d516605..43e817e2 100644 --- a/modules/hosts/homelab/home01/configuration.nix +++ b/modules/hosts/homelab/home01/configuration.nix @@ -6,6 +6,7 @@ { imports = with inputs.self.modules.nixos; [ server-jellyfin + user-eric ]; homelab.services.jellyfin.enable = true;