feat(desktop)!: switch to zfs

This commit is contained in:
Moritz Böhme 2023-12-08 19:19:56 +01:00
parent 4f9b3b082a
commit 1b22c1345f
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
6 changed files with 219 additions and 69 deletions

View file

@ -3,14 +3,12 @@
# and in the NixOS manual (accessible by running nixos-help).
{ pkgs
, inputs
, lib
, ...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./disko.nix
./impermanence.nix
];
my = {
@ -20,25 +18,10 @@
desktop.enable = true;
personal.enable = true;
webis.enable = true;
impermanence.enable = true;
};
};
environment.systemPackages = [
(
pkgs.writeShellApplication {
name = "zfs-diff";
runtimeInputs = with pkgs; [ zfs coreutils parallel tree ];
text = ''
zfs diff -F zroot/encrypted/root@blank | awk '$2 == "F" && system("test -e /persist/"$3) != 0 { print $3 }' 2>/dev/null | tree --fromfile . "$@"
'';
}
)
];
home-manager.users.moritz.home.packages = with pkgs; [
# jetbrains.idea-ultimate
];
# BOOT
boot = {
supportedFilesystems = [ "zfs" ];