Adds Justfile

This commit is contained in:
Dennis Schoepf 2024-12-25 19:50:42 +01:00
parent 24e1cf0cbd
commit 0327c48b91
3 changed files with 36 additions and 0 deletions

25
Justfile Normal file
View file

@ -0,0 +1,25 @@
deploy:
nixos-rebuild switch --flake .
debug:
nixos-rebuild switch --flake . --show-trace --verbose
up:
nix flake update
# Update specific input
# usage: make upi i=home-manager
upi:
nix flake update $(i)
history:
nix profile history --profile /nix/var/nix/profiles/system
repl:
nix repl -f flake:nixpkgs
clean:
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
gc:
sudo nix-collect-garbage --delete-old

View file

@ -19,6 +19,16 @@
# Boot
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.configurationLimit = 10;
# Nix Settings
# Perform garbage collection weekly to maintain low disk usage
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
nix.settings.auto-optimise-store = true;
# Networking
networking.hostName = "dnsc-server";

View file

@ -13,6 +13,7 @@
fzf
iotop
iftop
just
];
programs.home-manager.enable = true;