Update configuration.nix

This commit is contained in:
ska
2025-12-19 15:49:08 +00:00
parent cd3ee3e393
commit 6a5e059054

View File

@@ -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";