Enable snapper
This commit is contained in:
parent
b1ae5648e8
commit
b7a1e72976
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user