feat: test user+plasma
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
username = "Ekisha";
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in {
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ifTheyExist [
|
||||
"audio"
|
||||
"libvirtd"
|
||||
"minecraft"
|
||||
"video"
|
||||
];
|
||||
|
||||
# TODO: use as needed
|
||||
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
||||
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
||||
#packages = [pkgs.home-manager];
|
||||
};
|
||||
|
||||
# unused for now, may add sops later on
|
||||
#sops.secrets = {
|
||||
# gabriel-password = {
|
||||
# sopsFile = ../../secrets.yaml;
|
||||
# neededForUsers = true;
|
||||
# };
|
||||
#};
|
||||
|
||||
# TODO: ensure correct paths
|
||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||
|
||||
security.pam.services = {
|
||||
swaylock = {};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user