nixos-config/profiles/security/user.nix

49 lines
1022 B
Nix
Raw Normal View History

2023-02-16 18:51:34 +04:00
{ config, pkgs, lib, ... }: {
users.mutableUsers = false;
users.users.balsoft = {
isNormalUser = true;
extraGroups = [
"sudo"
"wheel"
"networkmanager"
"disk"
"dbus"
"audio"
"docker"
"sound"
"pulse"
"adbusers"
"input"
"libvirtd"
"vboxusers"
"wireshark"
"lp"
"scanner"
2023-02-22 00:34:25 +04:00
"feedbackd"
2023-02-16 18:51:34 +04:00
];
description = "Александр Бантьев";
uid = 1000;
password = "";
};
systemd.services."user@" = { serviceConfig = { Restart = "always"; }; };
home-manager.users.balsoft = {
systemd.user.services.polkit-agent = {
Unit = {
Description = "Run polkit authentication agent";
X-RestartIfChanged = true;
};
Install.WantedBy = [ "sway-session.target" ];
Service = { ExecStart = "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"; };
};
};
services.getty.autologinUser = "balsoft";
home-manager.useUserPackages = true;
}