modify justfile

This commit is contained in:
Sam 2024-05-25 15:31:51 +00:00
parent 486a03ca47
commit e3c1278a29
3 changed files with 6 additions and 4 deletions

View File

@ -1,10 +1,11 @@
{ pkgs, lib, inputs, config, username, ... }: { pkgs, lib, inputs, config, ... }:
let let
secretsDirectory = builtins.toString inputs.nix-secrets; secretsDirectory = builtins.toString inputs.nix-secrets;
secretsFile = "${secretsDirectory}/secrets.yaml"; secretsFile = "${secretsDirectory}/secrets.yaml";
hasOptinPersistence = config.environment.persistence ? "/persist"; hasOptinPersistence = environment.persistence ? "/persist";
hostname = config.networking.hostName; hostname = config.networking.hostName;
in in
{ {
imports = [ imports = [

View File

@ -1,7 +1,8 @@
{ lib, config, ... }: { lib, config, ... }:
let let
sshPort = 22; sshPort = 22;
hasOptinPersistence = config.environment.persistence ? "/persist"; hasOptinPersistence = environment.persistence ? "/persist";
in in
{ {

View File

@ -12,7 +12,7 @@ update-flake-secrets:
# full system rebuild from flake (stages changes and automatically detects host) # full system rebuild from flake (stages changes and automatically detects host)
rebuild-system: rebuild-system:
git add *.nix git add *.nix
sudo nixos-rebuild switch --flake .#$(hostname) sudo nixos-rebuild switch --option eval-cache false --flake .#$(hostname)
# updates all flake inputs for system # updates all flake inputs for system
update-flake: update-flake: