use desktop-environment module

This commit is contained in:
2026-01-23 19:54:23 +01:00
parent ab9acedf49
commit b5afdc5817

View File

@@ -41,7 +41,14 @@ in
system.stateVersion = "24.05"; system.stateVersion = "24.05";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
# Desktops
my-namespace.desktop-environment.xfce.enable = true;
my-namespace.desktop-environment.gnome.enable = true;
my-namespace.desktop-environment.kde.enable = true;
my-namespace.desktop-environment.cosmic.enable = true;
# GNOME-keyring
my-namespace.gnome-keyring.enable = true; my-namespace.gnome-keyring.enable = true;
users.users.andreas = { users.users.andreas = {
isNormalUser = true; isNormalUser = true;
description = "Andreas Schaafsma"; description = "Andreas Schaafsma";
@@ -62,9 +69,6 @@ in
# We want flatpak support # We want flatpak support
flatpak flatpak
# GNOME shit # GNOME shit
gnome-software
gnomeExtensions.pop-shell
gnome-remote-desktop
thunderbird thunderbird
soundwireserver soundwireserver
vscode vscode
@@ -127,6 +131,8 @@ in
my-namespace.udev-steelseries my-namespace.udev-steelseries
my-namespace.hello my-namespace.hello
kde-rounded-corners kde-rounded-corners
my-namespace.linux-wallpaperengine
(pkgs.writeShellScriptBin "switch-to-desktop" '' (pkgs.writeShellScriptBin "switch-to-desktop" ''
#!/bin/sh #!/bin/sh
# Kill Steam and return to display manager # Kill Steam and return to display manager