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
|
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 = [
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
2
justfile
2
justfile
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue