Move vm clanModules to lib

This commit is contained in:
Qubasa
2024-05-02 16:33:37 +02:00
parent 142a6036fb
commit 4baa36a40b
22 changed files with 25 additions and 20 deletions

View File

@@ -8,4 +8,14 @@
jsonschema = import ./jsonschema { inherit lib; };
modules = import ./description.nix { inherit clan-core; };
buildClan = import ./build-clan { inherit clan-core lib nixpkgs; };
vm-user = ./vm-user;
graphical = ./graphical;
xfce-vm = {
imports = [
./vm-user
./graphical
./xfce-vm
];
};
}

2
lib/graphical/README.md Normal file
View File

@@ -0,0 +1,2 @@
---

View File

@@ -0,0 +1 @@
_: { fonts.enableDefaultPackages = true; }

1
lib/vm-user/README.md Normal file
View File

@@ -0,0 +1 @@
---

20
lib/vm-user/default.nix Normal file
View File

@@ -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";
};
}

1
lib/xfce-vm/README.md Normal file
View File

@@ -0,0 +1 @@
---

10
lib/xfce-vm/default.nix Normal file
View File

@@ -0,0 +1,10 @@
{
services.xserver = {
enable = true;
displayManager.autoLogin.enable = true;
displayManager.autoLogin.user = "user";
desktopManager.xfce.enable = true;
desktopManager.xfce.enableScreensaver = false;
xkb.layout = "us";
};
}