vm updates

This commit is contained in:
2024-03-04 14:53:50 +02:00
parent c697fca9df
commit 3d8f1d3912
3 changed files with 19 additions and 32 deletions

View File

@@ -28,7 +28,7 @@
mj = {
stateVersion = "23.11";
timeZone = "UTC";
desktop.username = "nixos";
username = "nixos";
};
isoImage = {
@@ -49,14 +49,6 @@
xserver.enable = true;
};
programs = {
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
users.users = {
nixos = {
isNormalUser = true;
@@ -66,6 +58,9 @@
root.initialHashedPassword = "";
};
# do not autostart lightdm, leave at tty
systemd.services.display-manager.wantedBy = lib.mkForce [];
security = {
pam.services.lightdm.text = ''
auth sufficient pam_succeed_if.so user ingroup wheel
@@ -81,11 +76,4 @@
domain = "jakstys.lt";
firewall.allowedTCPPorts = [22];
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
trusted-users = nixos
'';
};
}