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; allowReboot = false;
}; };
environment.systemPackages = with pkgs; [
# automatic btrfs snapshots
snapper
snapper-gui
];
networking = { networking = {
hostName = hostname; hostName = hostname;
interfaces.enp1s0.useDHCP = true; interfaces.enp1s0.useDHCP = true;
interfaces.wlp2s0.useDHCP = true; interfaces.wlp2s0.useDHCP = true;
}; };
# enable touchpad support # 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 = { users.users.me = {
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;