Update flake.lock

This commit is contained in:
John Lancaster
2025-02-17 01:44:19 -06:00
parent bf6c231d1f
commit 11bfe1baac
2 changed files with 10 additions and 2 deletions

View File

@@ -5,5 +5,8 @@
extraConfig.credential.helper = "store --file ~/.git-credentials"; extraConfig.credential.helper = "store --file ~/.git-credentials";
userName = "${userSettings.gitUserName}"; userName = "${userSettings.gitUserName}";
userEmail = "${userSettings.gitUserEmail}"; userEmail = "${userSettings.gitUserEmail}";
extraConfig = {
safe.directory = "/home/appdaemon/ad-nix";
};
}; };
} }

View File

@@ -1,11 +1,16 @@
{ pkgs, systemSettings, ... }: { pkgs, systemSettings, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(pkgs.writeShellScriptBin "nrbs" "sudo nixos-rebuild switch")
(pkgs.writeShellScriptBin "nrbsu" "sudo nix-channel --update && sudo nixos-rebuild switch")
(pkgs.writeShellScriptBin "nfs" '' (pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake $(readlink -f /etc/nixos)#${systemSettings.hostName} --impure sudo nixos-rebuild switch --flake $(readlink -f /etc/nixos)#${systemSettings.hostName} --impure
'') '')
(pkgs.writeShellScriptBin "nfsu" ''
FLAKE=$(readlink -f /etc/nixos)
nix flake update --flake $FLAKE --impure
git -C /etc/nixos add $FLAKE > /dev/null 2>&1
git -C /etc/nixos commit -m "Update flake.lock" > /dev/null 2>&1
sudo nixos-rebuild switch --flake $FLAKE#${systemSettings.hostName} --impure
'')
(pkgs.writeShellScriptBin "ads" "nix develop --no-pure-eval $(readlink -f /etc/nixos)") (pkgs.writeShellScriptBin "ads" "nix develop --no-pure-eval $(readlink -f /etc/nixos)")
(pkgs.writeShellScriptBin "link-nix" "${builtins.readFile ./link-nix.sh}") (pkgs.writeShellScriptBin "link-nix" "${builtins.readFile ./link-nix.sh}")
(pkgs.writeShellScriptBin "sops-ad" "sops $(readlink -f /etc/nixos)/secrets/secrets.yaml") (pkgs.writeShellScriptBin "sops-ad" "sops $(readlink -f /etc/nixos)/secrets/secrets.yaml")