2024-01-09 22:28:31 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib; let
|
|
|
|
cfg = config.user.cameron;
|
|
|
|
in {
|
|
|
|
options.user.cameron = {
|
|
|
|
enable = mkEnableOption "user cameron";
|
2024-01-10 00:41:10 +00:00
|
|
|
};
|
2024-01-09 22:28:31 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
users = {
|
|
|
|
groups.cameron.gid = 1000;
|
|
|
|
|
|
|
|
users.cameron = {
|
|
|
|
description = "Cameron";
|
|
|
|
isNormalUser = true;
|
|
|
|
|
|
|
|
uid = 1000;
|
|
|
|
group = "cameron";
|
2024-01-10 00:41:10 +00:00
|
|
|
extraGroups = [ "wheel" ] ++
|
2024-01-13 21:33:50 +00:00
|
|
|
(lib.optionals config.networking.networkmanager.enable [ "networkmanager" ]);
|
2024-01-09 22:28:31 +00:00
|
|
|
|
2024-01-13 21:33:50 +00:00
|
|
|
home = "/home/cameron";
|
2024-01-09 22:28:31 +00:00
|
|
|
createHome = true;
|
|
|
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
packages = (with pkgs; [
|
|
|
|
direnv
|
|
|
|
nix-direnv
|
2024-01-11 21:14:59 +00:00
|
|
|
] ++ (lib.optionals ((builtins.length config.desktop) != 0) [
|
2024-01-09 22:28:31 +00:00
|
|
|
bibata-cursors
|
|
|
|
bibata-cursors-translucent
|
2024-01-10 23:06:59 +00:00
|
|
|
]));
|
2024-01-09 22:28:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|