From 15270a32edd3be6223dfe16c02e2c4657e0d971e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 22 Nov 2025 12:05:42 +0000 Subject: [PATCH] home01: add eric user --- modules/eric.nix | 21 +++++++++++++++++++ .../hosts/homelab/home01/configuration.nix | 1 + 2 files changed, 22 insertions(+) create mode 100644 modules/eric.nix 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;