Adds Justfile
This commit is contained in:
parent
24e1cf0cbd
commit
0327c48b91
3 changed files with 36 additions and 0 deletions
25
Justfile
Normal file
25
Justfile
Normal 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
|
||||||
|
|
@ -19,6 +19,16 @@
|
||||||
# Boot
|
# Boot
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = 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
|
||||||
networking.hostName = "dnsc-server";
|
networking.hostName = "dnsc-server";
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
fzf
|
fzf
|
||||||
iotop
|
iotop
|
||||||
iftop
|
iftop
|
||||||
|
just
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue