add core configuration

This commit is contained in:
Chance 2025-03-29 21:03:07 -04:00 committed by lily
parent 74c78e1c68
commit f40517cff1
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
94 changed files with 2816 additions and 959 deletions

21
modules/users/lily.nix Normal file
View file

@ -0,0 +1,21 @@
{
lib,
config,
pkgs,
...
}: let
cfg = config.lily.users.lily;
# interpolated_secrets = import ../../secrets/interpolated_secrets.nix;
in {
options.lily.users.lily.enable = lib.mkEnableOption "activate user lily";
config = lib.mkIf cfg.enable {
users.users.lily = {
home = "/home/lily";
isNormalUser = true;
# hashedPasswordFile = lib.mkIf config.lily.sops config.sops.secrets."users/lily/hashedPassword".path;
extraGroups = ["wheel" "openrazer" "docker"] ++ lib.optionals config.networking.networkmanager.enable ["networkmanager"];
shell = pkgs.zsh;
};
# sops.secrets."users/lily/hashedPassword" = lib.mkIf config.lily.sops { neededForUsers = true; };
};
}