modify justfile
This commit is contained in:
parent
486a03ca47
commit
e3c1278a29
|
@ -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 = [
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
sshPort = 22;
|
||||
hasOptinPersistence = config.environment.persistence ? "/persist";
|
||||
hasOptinPersistence = environment.persistence ? "/persist";
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
|
|
2
justfile
2
justfile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue