ark/users/patriot/default.nix

77 lines
1.6 KiB
Nix
Raw Normal View History

2020-11-21 23:54:07 +03:00
{ config, pkgs, ... }: {
imports = [ ./home.nix ];
users.users.patriot = {
isNormalUser = true;
createHome = true;
home = "/home/patriot";
extraGroups = [ "wheel" "adbusers" "dialout" ];
2020-11-21 23:54:07 +03:00
shell = pkgs.zsh;
hashedPassword =
"$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/";
};
xdg.portal = {
enable = true;
gtkUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
};
programs = {
adb.enable = true;
steam.enable = true;
java = {
enable = true;
package = pkgs.jre8;
};
};
2021-01-17 17:25:54 +03:00
security.pam.services.patriot = {
enableGnomeKeyring = true;
enableKwallet = false;
};
2021-01-17 18:34:34 +03:00
services = {
gnome3 = {
gnome-keyring.enable = true;
};
2021-03-18 17:12:44 +03:00
xserver = {
2021-01-17 17:25:54 +03:00
enable = true;
desktopManager = {
2021-03-26 21:03:40 +03:00
plasma5.enable = false;
gnome3.enable = false;
xterm.enable = false;
};
displayManager = {
autoLogin = {
2021-03-26 21:03:40 +03:00
enable = false;
user = "patriot";
};
lightdm.enable = false;
gdm = {
enable = false;
wayland = true;
};
2021-03-26 21:03:40 +03:00
sddm.enable = false;
startx.enable = true;
};
2021-03-18 17:12:44 +03:00
};
};
systemd.user.services.gnome-session-restart-dbus.serviceConfig = {
Slice = "-.slice";
};
systemd = {
targets = {
network-online.enable = false;
};
services = {
systemd-networkd-wait-online.enable = false;
NetworkManager-wait-online.enable = false;
2021-01-17 17:25:54 +03:00
};
};
2020-11-21 23:54:07 +03:00
}