Enable snapper

This commit is contained in:
Valentin Brandl 2022-11-09 20:17:29 +01:00
parent b1ae5648e8
commit b7a1e72976

View File

@ -17,13 +17,31 @@ inputs.nixpkgs.lib.nixosSystem {
allowReboot = false;
};
environment.systemPackages = with pkgs; [
# automatic btrfs snapshots
snapper
snapper-gui
];
networking = {
hostName = hostname;
interfaces.enp1s0.useDHCP = true;
interfaces.wlp2s0.useDHCP = true;
};
# enable touchpad support
services.xserver.libinput.enable = true;
services = {
xserver.libinput.enable = true;
snapper.configs = {
home = {
subvolume = "/home";
extraConfig = ''
ALLOW_USERS="me"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
'';
};
};
};
users.users.me = {
isNormalUser = true;
createHome = true;