You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
970 B
40 lines
970 B
{ pkgs, config, ... }:
|
|
let ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
in
|
|
{
|
|
users.mutableUsers = false;
|
|
users.users.misterio = {
|
|
isNormalUser = true;
|
|
shell = pkgs.fish;
|
|
extraGroups = [
|
|
"wheel"
|
|
"video"
|
|
"audio"
|
|
] ++ ifTheyExist [
|
|
"minecraft"
|
|
"network"
|
|
"wireshark"
|
|
"i2c"
|
|
"mysql"
|
|
"docker"
|
|
"podman"
|
|
"git"
|
|
"libvirtd"
|
|
"deluge"
|
|
];
|
|
|
|
openssh.authorizedKeys.keys = [ (builtins.readFile ../../../../home/misterio/ssh.pub) ];
|
|
passwordFile = config.sops.secrets.misterio-password.path;
|
|
packages = [ pkgs.home-manager ];
|
|
};
|
|
|
|
sops.secrets.misterio-password = {
|
|
sopsFile = ../../secrets.yaml;
|
|
neededForUsers = true;
|
|
};
|
|
|
|
home-manager.users.misterio = import ../../../../home/misterio/${config.networking.hostName}.nix;
|
|
|
|
services.geoclue2.enable = true;
|
|
security.pam.services = { swaylock = { }; };
|
|
}
|
|
|