From 5ad07e4f257e5bb416e3d269ec0d697da3b1a14c Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Tue, 28 Nov 2023 14:34:54 +0100 Subject: [PATCH] feat(users/malte,users/deck): butterjunge usb stick --- modules/deck.nix | 17 +++++++++++++++++ modules/malte.nix | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/modules/deck.nix b/modules/deck.nix index 7affad4..c6de8d6 100644 --- a/modules/deck.nix +++ b/modules/deck.nix @@ -34,6 +34,23 @@ in { openssh.authorizedKeys.keyFiles = [../users/malte/yubikey.pub]; }; + # My huge NVME USB Stick + fileSystems."/butterjunge" = { + device = "/dev/disk/by-id/usb-SHARGE_DISK_012345679841-0:0-part2"; + fsType = "btrfs"; + options = [ + "compress=lzo" + ]; + }; + fileSystems."/home/deck/butterjunge" = { + device = "/butterjunge"; + options = [ + "bind" + "compress=lzo" + "map=1000/deck:@100/@users" + ]; + }; + home-manager.users.deck.imports = [../users/deck/home.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default]; programs.fish.enable = true; diff --git a/modules/malte.nix b/modules/malte.nix index 4fdbdaa..f8dade7 100644 --- a/modules/malte.nix +++ b/modules/malte.nix @@ -59,6 +59,23 @@ in { enableNvidiaPatches = config.settings.nvidiaUsed; }; + # My huge NVME USB Stick + fileSystems."/butterjunge" = { + device = "/dev/disk/by-id/usb-SHARGE_DISK_012345679841-0:0-part2"; + fsType = "btrfs"; + options = [ + "compress=lzo" + ]; + }; + fileSystems."/home/malte/butterjunge" = { + device = "/butterjunge"; + options = [ + "bind" + "compress=lzo" + "map=1000/malte:@100/@users" + ]; + }; + sops.secrets = let sopsFile = ../secrets/users/malte/secrets.yaml; owner = "malte";