Made server config easier

This commit is contained in:
2025-10-12 08:41:56 +02:00
parent 78dc043981
commit 6a62fed7d4
4 changed files with 15 additions and 12 deletions

View File

@@ -50,7 +50,7 @@
user = "r3ddy";
email = personalEmail;
gamingSystem = true;
# Currently supported: plasma, gnome, hyprland
# Currently supported: plasma, gnome, hyprland and none
desktopEnvironment = "gnome";
};
nixosConfigurations.workstation = mkSystem "workstation" {
@@ -64,6 +64,7 @@
system = "x86_64-linux";
email = personalEmail;
user = "r3ddy";
desktopEnvironment = "none";
};
};
}

View File

@@ -24,7 +24,7 @@
networking.firewall.allowedUDPPorts = [ ];
# Or disable the firewall altogether.
networking.firewall.enable = true;
xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
# xdg.portal.extraPortals = with pkgs; [
# xdg-desktop-portal-gtk
# ];
}

View File

@@ -1,11 +1,12 @@
{ pkgs, currentSystemUser, ... }:
{ pkgs, currentSystemUser, currentSystemDe, ... }:
{
imports = [
./keyboard.nix
] ++ (if (currentSystemDe != "none") then [
./sound.nix
./fonts.nix
./de.nix
./sound.nix
./keyboard.nix
];
] else []);
time.timeZone = "Europe/Rome";

View File

@@ -41,7 +41,7 @@
vim # The only and one great editor
inputs.nixvim.packages.${system}.default # The only and one great editor improved even further
] ++ (if currentSystemDe != "none" then [
# Video card
vulkan-tools
@@ -53,7 +53,8 @@
mpv
piper
telegram-desktop
] ++ (if gamingSystem then [
] else [])
++ (if gamingSystem then [
archipelago
dolphin-emu
heroic
@@ -63,12 +64,12 @@
prismlauncher
protonplus
vesktop
] else []
] else [])
++ (if workSystem then [
android-studio
ansible
virt-manager
] else []))
] else [])
++ (if currentSystemDe == "plasma" then [
kdePackages.wallpaper-engine-plugin
] else [])