mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
nix vm: add plasma and cinnamon vms
This commit is contained in:
@ -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.
|
||||
|
14
nix/vm/common-cinnamon.nix
Normal file
14
nix/vm/common-cinnamon.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{...}: {
|
||||
services.xserver = {
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
desktopManager = {
|
||||
cinnamon = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -5,7 +5,6 @@
|
||||
...
|
||||
}: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager = {
|
||||
gdm = {
|
||||
enable = true;
|
||||
|
17
nix/vm/common-plasma6.nix
Normal file
17
nix/vm/common-plasma6.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{...}: {
|
||||
services = {
|
||||
displayManager = {
|
||||
sddm = {
|
||||
enable = true;
|
||||
wayland = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
desktopManager = {
|
||||
plasma6 = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
7
nix/vm/wayland-cinnamon.nix
Normal file
7
nix/vm/wayland-cinnamon.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./common-cinnamon.nix
|
||||
];
|
||||
|
||||
services.displayManager.defaultSession = "cinnamon-wayland";
|
||||
}
|
6
nix/vm/wayland-plasma6.nix
Normal file
6
nix/vm/wayland-plasma6.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./common-plasma6.nix
|
||||
];
|
||||
services.displayManager.defaultSession = "plasma";
|
||||
}
|
7
nix/vm/x11-cinnamon.nix
Normal file
7
nix/vm/x11-cinnamon.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./common-cinnamon.nix
|
||||
];
|
||||
|
||||
services.displayManager.defaultSession = "cinnamon";
|
||||
}
|
6
nix/vm/x11-plasma6.nix
Normal file
6
nix/vm/x11-plasma6.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./common-plasma6.nix
|
||||
];
|
||||
services.displayManager.defaultSession = "plasmax11";
|
||||
}
|
Reference in New Issue
Block a user