From 6a5e059054841dcb965756e248148126e0d09345 Mon Sep 17 00:00:00 2001 From: ska Date: Fri, 19 Dec 2025 15:49:08 +0000 Subject: [PATCH] Update configuration.nix --- configuration.nix | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 1ed80c9..306813c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -57,19 +57,33 @@ in nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ - git vim curl wget openssh - obsidian libreoffice keepassxc thunderbird tor-browser inkscape gimp pdfarranger - epiphany gnomeExtensions.gsconnect gnomeExtensions.dash-to-dock + git + vim + curl + wget + openssh + obsidian + libreoffice + keepassxc + thunderbird + tor-browser + inkscape + gimp + pdfarranger + epiphany + gnomeExtensions.gsconnect + gnomeExtensions.dash-to-dock ]; programs.firefox.enable = true; - # Auto-update script with correct NIX_PATH + # === Auto-update script with full PATH and NIX_PATH === environment.etc."update-nixos-config.sh".text = '' #!/run/current-system/sw/bin/bash set -e - # Use the standard NixOS channel path for nixpkgs + # Ensure all system tools are available + export PATH="/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin" export NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" LOCAL_PATH="/var/lib/nixos-config" @@ -98,7 +112,7 @@ in ''; environment.etc."update-nixos-config.sh".mode = "0700"; - # Simple systemd service — no 'path', no 'environment' + # === Systemd service (simple, no extra path needed) === systemd.services.nixos-git-update = { description = "Update NixOS from public Git config"; script = "/etc/update-nixos-config.sh";