nix vm: add plasma and cinnamon vms

This commit is contained in:
Jeffrey C. Ollie
2025-01-06 23:42:23 -06:00
parent 26f6b3ea82
commit 450c019b4e
9 changed files with 87 additions and 1 deletions

View File

@ -79,8 +79,12 @@
}
);
in {
"wayland-cinnamon-${system}" = makeVM ./nix/vm/wayland-cinnamon.nix;
"wayland-gnome-${system}" = makeVM ./nix/vm/wayland-gnome.nix;
"wayland-plasma6-${system}" = makeVM ./nix/vm/wayland-plasma6.nix;
"x11-cinnamon-${system}" = makeVM ./nix/vm/x11-cinnamon.nix;
"x11-gnome-${system}" = makeVM ./nix/vm/x11-gnome.nix;
"x11-plasma6-${system}" = makeVM ./nix/vm/x11-plasma6.nix;
};
apps.${system} = let
@ -98,8 +102,12 @@
}
);
in {
wayland-cinnamon = wrapVM "wayland-cinnamon";
wayland-gnome = wrapVM "wayland-gnome";
wayland-plasma6 = wrapVM "wayland-plasma6";
x11-cinnamon = wrapVM "x11-cinnamon";
x11-gnome = wrapVM "x11-gnome";
x11-plasma6 = wrapVM "x11-plasma6";
};
}
# Our supported systems are the same supported systems as the Zig binaries.

View File

@ -0,0 +1,14 @@
{...}: {
services.xserver = {
displayManager = {
lightdm = {
enable = true;
};
};
desktopManager = {
cinnamon = {
enable = true;
};
};
};
}

View File

@ -5,7 +5,6 @@
...
}: {
services.xserver = {
enable = true;
displayManager = {
gdm = {
enable = true;

17
nix/vm/common-plasma6.nix Normal file
View File

@ -0,0 +1,17 @@
{...}: {
services = {
displayManager = {
sddm = {
enable = true;
wayland = {
enable = true;
};
};
};
desktopManager = {
plasma6 = {
enable = true;
};
};
};
}

View File

@ -47,15 +47,37 @@
environment.systemPackages = [
pkgs.kitty
pkgs.ghostty
pkgs.helix
pkgs.neovim
pkgs.zig_0_13
];
security.polkit = {
enable = true;
};
services.dbus = {
enable = true;
};
services.displayManager = {
autoLogin = {
user = "ghostty";
};
};
services.libinput = {
enable = true;
};
services.qemuGuest = {
enable = true;
};
services.spice-vdagentd = {
enable = true;
};
services.xserver = {
enable = true;
};

View File

@ -0,0 +1,7 @@
{...}: {
imports = [
./common-cinnamon.nix
];
services.displayManager.defaultSession = "cinnamon-wayland";
}

View File

@ -0,0 +1,6 @@
{...}: {
imports = [
./common-plasma6.nix
];
services.displayManager.defaultSession = "plasma";
}

7
nix/vm/x11-cinnamon.nix Normal file
View File

@ -0,0 +1,7 @@
{...}: {
imports = [
./common-cinnamon.nix
];
services.displayManager.defaultSession = "cinnamon";
}

6
nix/vm/x11-plasma6.nix Normal file
View File

@ -0,0 +1,6 @@
{...}: {
imports = [
./common-plasma6.nix
];
services.displayManager.defaultSession = "plasmax11";
}