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

View File

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

View File

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

View File

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