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
secretsDirectory = builtins.toString inputs.nix-secrets;
secretsFile = "${secretsDirectory}/secrets.yaml";
hasOptinPersistence = config.environment.persistence ? "/persist";
hasOptinPersistence = environment.persistence ? "/persist";
hostname = config.networking.hostName;
in
{
imports = [

View File

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

View File

@ -12,7 +12,7 @@ update-flake-secrets:
# full system rebuild from flake (stages changes and automatically detects host)
rebuild-system:
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
update-flake: