Move vm clanModules to lib
This commit is contained in:
@@ -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
2
lib/graphical/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
---
|
||||
1
lib/graphical/default.nix
Normal file
1
lib/graphical/default.nix
Normal file
@@ -0,0 +1 @@
|
||||
_: { fonts.enableDefaultPackages = true; }
|
||||
1
lib/vm-user/README.md
Normal file
1
lib/vm-user/README.md
Normal file
@@ -0,0 +1 @@
|
||||
---
|
||||
20
lib/vm-user/default.nix
Normal file
20
lib/vm-user/default.nix
Normal 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
1
lib/xfce-vm/README.md
Normal file
@@ -0,0 +1 @@
|
||||
---
|
||||
10
lib/xfce-vm/default.nix
Normal file
10
lib/xfce-vm/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user