diff --git a/machines/morpheus.nix b/machines/morpheus.nix index 53b298b..c6e11f8 100644 --- a/machines/morpheus.nix +++ b/machines/morpheus.nix @@ -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;