From c059d90b17d74fbb45fd4c7f9bd7ebfe26d7e7b2 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 31 Jul 2024 09:43:30 +0800 Subject: [PATCH] feat: aqua - mount usb storage --- hosts/idols-aquamarine/default.nix | 2 ++ hosts/idols-aquamarine/filesystems.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 hosts/idols-aquamarine/filesystems.nix diff --git a/hosts/idols-aquamarine/default.nix b/hosts/idols-aquamarine/default.nix index 9c4ea991..248f9782 100644 --- a/hosts/idols-aquamarine/default.nix +++ b/hosts/idols-aquamarine/default.nix @@ -1,6 +1,7 @@ { mylib, myvars, + pkgs, ... }: ############################################################# @@ -25,6 +26,7 @@ in { "exfat" ]; + boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelModules = ["kvm-amd"]; boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu diff --git a/hosts/idols-aquamarine/filesystems.nix b/hosts/idols-aquamarine/filesystems.nix new file mode 100644 index 00000000..bd3fe0ef --- /dev/null +++ b/hosts/idols-aquamarine/filesystems.nix @@ -0,0 +1,12 @@ +{ + fileSystems."/data/downloads" = { + device = "/dev/disk/by-label/Downloads"; + fsType = "ntfs-3g"; + options = ["rw" "uid=1000"]; + }; + fileSystems."/data/games" = { + device = "/dev/disk/by-label/Games"; + fsType = "ntfs-3g"; + options = ["rw" "uid=1000"]; + }; +}