From 508656800c92c26f70f7ab282f08d0b391e89d9d Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:40:11 -0700 Subject: [PATCH] snapper for minecrfat --- extras/minecraft-server.nix | 12 ++++++++++++ flake.nix | 2 +- systems/NOcomputer.nix | 2 +- systems/NOmom.nix | 12 ------------ users/tao.nix | 8 ++++---- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/extras/minecraft-server.nix b/extras/minecraft-server.nix index 31931ee..e3c5e01 100644 --- a/extras/minecraft-server.nix +++ b/extras/minecraft-server.nix @@ -3,4 +3,16 @@ temurin-jre-bin-17 ]; networking.firewall.allowedTCPPorts = [25565]; + + services.snapper.configs = { + home = { + SUBVOLUME = "/home"; + ALLOW_USERS = ["mc"]; + TIMELINE_CREATE = true; + TIMELINE_CLEANUP = true; + TIMELINE_LIMIT_HOURLY = "5"; + TIMELINE_LIMIT_DAILY = "7"; + }; + }; + services.snapper.snapshotInterval = "*:0/5"; } diff --git a/flake.nix b/flake.nix index 37c361b..6a970a5 100644 --- a/flake.nix +++ b/flake.nix @@ -91,7 +91,7 @@ ./extras/gaming.nix nixos-cosmic.nixosModules.default ./extras/cosmic.nix - ./extras/ssrov-laptop.nix + # ./extras/ssrov-laptop.nix ]; }; NOmom = nixpkgs.lib.nixosSystem { diff --git a/systems/NOcomputer.nix b/systems/NOcomputer.nix index fa601ab..510d206 100644 --- a/systems/NOcomputer.nix +++ b/systems/NOcomputer.nix @@ -39,7 +39,7 @@ powerManagement.enable = true; # options: production, beta, vulkan_beta, latest # package = pkgs.linuxPackages_latest.nvidiaPackages.latest; - package = pkgs.linuxPackages_zen.nvidiaPackages.latest; + package = pkgs.linuxPackages_zen.nvidiaPackages.beta; # open = true; }; # enable core and mem freq sliders for nvidia diff --git a/systems/NOmom.nix b/systems/NOmom.nix index bd35d86..37f71b4 100644 --- a/systems/NOmom.nix +++ b/systems/NOmom.nix @@ -25,18 +25,6 @@ # extraBackends = [ pkgs.epkowa ]; # }; - services.snapper.configs = { - home = { - SUBVOLUME = "/home"; - ALLOW_USERS = ["vy" "tao"]; - TIMELINE_CREATE = true; - TIMELINE_CLEANUP = true; - TIMELINE_LIMIT_HOURLY = "5"; - TIMELINE_LIMIT_DAILY = "7"; - }; - }; - services.snapper.snapshotInterval = "*:0/5"; - services.udev.extraRules = '' # Ethernet expansion card ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20" diff --git a/users/tao.nix b/users/tao.nix index fd39dd3..c6c0eaa 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -6,6 +6,7 @@ ... }: { users.users.tao.packages = with pkgs; [ + freerdp nixos-anywhere cloud-hypervisor # fractal @@ -16,7 +17,6 @@ # tectonic # texlab # toastify - # virt-manager # wkhtmltopdf appimage-run aspell @@ -67,9 +67,9 @@ programs.kdeconnect.enable = true; environment.shells = with pkgs; [nushell]; - # virt - # programs.dconf.enable = true; - # virtualisation.libvirtd.enable = true; + virtualisation.libvirtd.enable = true; + virtualisation.spiceUSBRedirection.enable = true; + programs.virt-manager.enable = true; age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age; age.secrets.syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age;