Update configuration.nix
This commit is contained in:
@@ -57,19 +57,33 @@ in
|
|||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git vim curl wget openssh
|
git
|
||||||
obsidian libreoffice keepassxc thunderbird tor-browser inkscape gimp pdfarranger
|
vim
|
||||||
epiphany gnomeExtensions.gsconnect gnomeExtensions.dash-to-dock
|
curl
|
||||||
|
wget
|
||||||
|
openssh
|
||||||
|
obsidian
|
||||||
|
libreoffice
|
||||||
|
keepassxc
|
||||||
|
thunderbird
|
||||||
|
tor-browser
|
||||||
|
inkscape
|
||||||
|
gimp
|
||||||
|
pdfarranger
|
||||||
|
epiphany
|
||||||
|
gnomeExtensions.gsconnect
|
||||||
|
gnomeExtensions.dash-to-dock
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.firefox.enable = true;
|
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 = ''
|
environment.etc."update-nixos-config.sh".text = ''
|
||||||
#!/run/current-system/sw/bin/bash
|
#!/run/current-system/sw/bin/bash
|
||||||
set -e
|
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"
|
export NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||||
|
|
||||||
LOCAL_PATH="/var/lib/nixos-config"
|
LOCAL_PATH="/var/lib/nixos-config"
|
||||||
@@ -98,7 +112,7 @@ in
|
|||||||
'';
|
'';
|
||||||
environment.etc."update-nixos-config.sh".mode = "0700";
|
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 = {
|
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user