From 1930f623aa16277c904187efbf2c4f1471fc64c9 Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 12 Dec 2023 14:46:58 +0900 Subject: [PATCH] Update btrfs --- README.md | 1 + nixos/common/services/snapper.nix | 3 +-- nixos/hosts/framework-server/disks.nix | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d1b4689..1277abbb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ nix develop -c /etc/nixos/git/docs/setup.sh ![Gruv'd Hyprland](./docs/screenshot.png "Hyprland with a Gruvboxy theme") --- # framework-server ToDo List +* [ ] Add a /Storage btrfs subvolume for Docker * [ ] Potentially need to set up a new PGP key for use with ProtonMail * [ ] Try this https://www.ntop.org/products/traffic-analysis/ntop/ diff --git a/nixos/common/services/snapper.nix b/nixos/common/services/snapper.nix index ed2a5caa..944c2ea8 100644 --- a/nixos/common/services/snapper.nix +++ b/nixos/common/services/snapper.nix @@ -1,8 +1,7 @@ { lib, pkgs, desktop, ... }: { - environment.systemPackages = [ ] ++ lib.optional (builtins.isString desktop) pkgs.snapper-gui; + environment.systemPackages = [ snapper ] ++ lib.optional (builtins.isString desktop) pkgs.snapper-gui; services.snapper = { - enable = true; snapshotRootOnBoot = true; cleanupInterval = "1d"; snapshotInterval = "1h"; diff --git a/nixos/hosts/framework-server/disks.nix b/nixos/hosts/framework-server/disks.nix index bec29eed..620ba067 100644 --- a/nixos/hosts/framework-server/disks.nix +++ b/nixos/hosts/framework-server/disks.nix @@ -47,6 +47,10 @@ mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; # nix + "/Storage" = { + mountpoint = "/Storage"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; # Storage }; # subvolumes }; # content.content }; # content