Update configuration.nix

This commit is contained in:
ska
2025-12-22 11:13:35 +00:00
parent 560924a7a2
commit dbee863605

View File

@@ -2,7 +2,7 @@
{ {
############################################################ ############################################################
# BOOTLOADER GRUB (HYBRID BIOS + UEFI, REMOVABLE) # BOOTLOADER GRUB
############################################################ testtest ############################################################ testtest
boot.loader.grub = { boot.loader.grub = {
@@ -41,7 +41,7 @@
}; };
############################################################ ############################################################
# FIRMWARE MAXIMUM HARDWARE SUPPORT # FIRMWARE WIDE HARDWARE SUPPORT
############################################################ ############################################################
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
@@ -51,7 +51,7 @@
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
############################################################ ############################################################
# FILESYSTEMS LABELBASED # FILESYSTEMS BASED ON LABELS
############################################################ ############################################################
fileSystems."/" = { fileSystems."/" = {
@@ -65,7 +65,7 @@
}; };
############################################################ ############################################################
# NETWORKING / LOCALE # NETWORKING
############################################################ ############################################################
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@@ -85,12 +85,12 @@
# DESKTOP GNOME # DESKTOP GNOME
############################################################ ############################################################
services.xserver.enable = true; services.enable = true;
services.xserver.displayManager.gdm.enable = true; services.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.desktopManager.gnome.enable = true;
services.xserver.xkb.layout = "de"; services.xkb.layout = "de";
services.xserver.libinput.enable = true; services.libinput.enable = true;
############################################################ ############################################################
# AUDIO PIPEWIRE # AUDIO PIPEWIRE
@@ -136,6 +136,7 @@
curl curl
wget wget
openssh openssh
obsidian obsidian
libreoffice libreoffice
keepassxc keepassxc
@@ -149,10 +150,9 @@
programs.firefox.enable = true; programs.firefox.enable = true;
############################################################ ############################################################
# GIT AUTOUPDATE SCRIPT (RUNTIMEEXECUTED) # GIT AUTOUPDATE SCRIPT
############################################################ ############################################################
# === Auto-update script with full PATH and NIX_PATH ===
environment.etc."update-nixos-config.sh".text = '' environment.etc."update-nixos-config.sh".text = ''
#!/run/current-system/sw/bin/bash #!/run/current-system/sw/bin/bash
set -e set -e
@@ -187,7 +187,6 @@
''; '';
environment.etc."update-nixos-config.sh".mode = "0700"; environment.etc."update-nixos-config.sh".mode = "0700";
# === Systemd service (simple, no extra path needed) ===
systemd.services.nixos-git-update = { systemd.services.nixos-git-update = {
description = "Update NixOS from public Git config"; description = "Update NixOS from public Git config";
script = "/etc/update-nixos-config.sh"; script = "/etc/update-nixos-config.sh";
@@ -208,13 +207,13 @@
}; };
############################################################ ############################################################
# STABILITY # USB OPTIMIZATIONS
############################################################ ############################################################
zramSwap.enable = true; zramSwap.enable = true;
############################################################ ############################################################
# REQUIRED # NIXOS VERSION
############################################################ ############################################################
system.stateVersion = "25.11"; system.stateVersion = "25.11";