diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
| commit | c1d9af57156f3c95590d9a12c394ee064df9696e (patch) | |
| tree | 7e515761590c510c30329ef8548c7d84a8e95aaa /sys/core/users.nix | |
| parent | 791bc419b6dac7c70951981ef6b34cdf85828470 (diff) | |
added disko config for laptop, added storage and memory modules
Diffstat (limited to 'sys/core/users.nix')
| -rw-r--r-- | sys/core/users.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/core/users.nix b/sys/core/users.nix new file mode 100644 index 0000000..fb4e7f0 --- /dev/null +++ b/sys/core/users.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, username, ... }: +let + cfg = config.sys.core.users; +in +{ + options.sys.core.users.enable = lib.mkEnableOption "enables user accounts"; + config = lib.mkIf cfg.enable { + programs.fish.enable = true; + users.users.${username} = { + isNormalUser = true; + shell = pkgs.fish; + + extraGroups = lib.mkMerge [ + [ "wheel" ] + + (lib.mkIf (config.sys.core.drivers.amd.enable or false) [ "video" "render" ]) + (lib.mkIf (config.sys.core.network.enable or false) [ "networkmanager" ]) + (lib.mkIf (config.sys.srv.kvm.enable or false) [ "libvirtd" ]) + (lib.mkIf (config.sys.srv.docker.enable or false) [ "docker" ]) + ]; + }; + }; +} |
