This commit is contained in:
2026-06-09 23:39:59 -05:00
parent 00dcce0038
commit 1384fccf88
3 changed files with 20 additions and 6 deletions
+18 -3
View File
@@ -126,9 +126,25 @@
}; };
# Delete root on reboot # Delete root on reboot
boot.initrd.postMountCommands = lib.mkAfter '' boot.initrd.systemd.services = {
zfs rollback -r zroot/root@blank rollback = {
description = "Rollback root zfs dataset to blank snapshot";
wantedBy = [ "initrd.target" ];
before = [ "sysroot.mount" ];
after = [ "zfs-import-zroot.service" ];
path = with pkgs; [
zfs
];
serviceConfig = {
Type = "oneshot";
ExecStart = ''
zfs rollback -r zroot/root@blank && echo "blank rollback complete"
''; '';
};
};
};
nix = { nix = {
settings.experimental-features = [ settings.experimental-features = [
@@ -150,7 +166,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty alacritty
gimp gimp
neofetch
rose-pine-hyprcursor rose-pine-hyprcursor
vim vim
wget wget
-1
View File
@@ -5,7 +5,6 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
nixvim = { nixvim = {
url = "github:nix-community/nixvim/nixos-26.05"; url = "github:nix-community/nixvim/nixos-26.05";
inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-26.05"; url = "github:nix-community/home-manager/release-26.05";
+1 -1
View File
@@ -34,7 +34,7 @@
wl-clipboard wl-clipboard
woeusb woeusb
wofi wofi
xorg.xrandr xrandr
yq-go yq-go
zip zip
]; ];