refactor: hosts/
This commit is contained in:
1 parent
cedfbd6ef6
commit
3e662f72f7
21 files changed
+140
-14
No files matched your search
@@ -0,0 +1,39 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
username = "dev";
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in {
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ifTheyExist [
|
||||
"audio"
|
||||
"deluge"
|
||||
"docker"
|
||||
"git"
|
||||
"i2c"
|
||||
"libvirtd"
|
||||
"minecraft"
|
||||
"mysql"
|
||||
"wpa_supplicant"
|
||||
"plugdev"
|
||||
"podman"
|
||||
"tss"
|
||||
"video"
|
||||
"wheel"
|
||||
"wireshark"
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
# TODO: ensure correct paths
|
||||
home-manager.users.${username} = import ../../../../../home/Ricky/${username}/${config.networking.hostName}.nix;
|
||||
|
||||
security.pam.services = {
|
||||
swaylock = {};
|
||||
${username}.enableGnomeKeyring = true;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user