diff --git a/clanModules/flake-module.nix b/clanModules/flake-module.nix index d618a39a2..221e10ff6 100644 --- a/clanModules/flake-module.nix +++ b/clanModules/flake-module.nix @@ -11,6 +11,8 @@ moonlight = ./moonlight.nix; sunshine = ./sunshine.nix; syncthing = ./syncthing.nix; + vm-user = ./vm-user.nix; + graphical = ./graphical.nix; xfce = ./xfce.nix; zt-tcp-relay = ./zt-tcp-relay.nix; localsend = ./localsend.nix; diff --git a/clanModules/graphical.nix b/clanModules/graphical.nix new file mode 100644 index 000000000..5f8a0fd57 --- /dev/null +++ b/clanModules/graphical.nix @@ -0,0 +1,4 @@ +_: +{ + fonts.enableDefaultPackages = true; +} diff --git a/clanModules/vm-user.nix b/clanModules/vm-user.nix new file mode 100644 index 000000000..28e93535e --- /dev/null +++ b/clanModules/vm-user.nix @@ -0,0 +1,20 @@ +{ + security = { + sudo.wheelNeedsPassword = false; + polkit.enable = true; + rtkit.enable = true; + }; + + users.users.user = { + isNormalUser = true; + createHome = true; + uid = 1000; + initialHashedPassword = ""; + extraGroups = [ + "wheel" + "video" + "render" + ]; + shell = "/run/current-system/sw/bin/bash"; + }; +}