changed zfs mountpoints more, setup self cleaning fs root

This commit is contained in:
Gerg-L 2023-03-12 02:21:01 +00:00
parent 2cf332631b
commit 01851cab86
4 changed files with 28 additions and 15 deletions

View file

@ -1,8 +1,4 @@
{fetch-rs, ...}: {
pkgs,
config,
...
}: rec {
{fetch-rs, ...}: {pkgs, ...}: rec {
#put:
#source /run/current-system/sw/share/nix-direnv/direnvrc
#in ~/.direnvrc
@ -33,8 +29,8 @@
pastebin = "curl -F 'clbin=<-' https://clbin.com";
#nix stuff
nix-update = "nix flake update /etc/nixos/";
nix-switch = "nixos-rebuild switch --flake /etc/nixos/#${config.networking.hostName} --use-remote-sudo";
nix-boot = "nixos-rebuild boot --flake /etc/nixos/#${config.networking.hostName} --use-remote-sudo";
nix-switch = "nixos-rebuild switch --use-remote-sudo";
nix-boot = "nixos-rebuild boot --use-remote-sudo";
nix-clean = "nix-collect-garbage -d";
nix-gc-force = "rm /nix/var/nix/gcroots/auto/*";
nix-gc-check = "nix-store --gc --print-roots | egrep -v \"^(/nix/var|/run/\w+-system|\{memory|/proc)\"";
@ -62,6 +58,7 @@
execWheelOnly = true;
extraConfig = ''
Defaults env_keep += "${builtins.concatStringsSep " " (builtins.attrNames environment.variables)}"
Defaults lecture = never
'';
};