From 268e698221ceb3d85322e9a8acd494ca0f6044cc Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 28 Feb 2025 05:48:44 +0800 Subject: [PATCH] refactor: move windows drive mount out of hardware-configuration.nix --- systems/nemesis/default.nix | 7 +++++++ systems/nemesis/hardware-configuration.nix | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/systems/nemesis/default.nix b/systems/nemesis/default.nix index 770c115..4c92e62 100644 --- a/systems/nemesis/default.nix +++ b/systems/nemesis/default.nix @@ -15,6 +15,13 @@ in { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + # Allow nemesis to access files on the windows drive. + fileSystems."/mnt/windows" = + { device = "/dev/nvme0n1p3"; + fsType = "ntfs-3g"; + options = [ "rw" "uid=rafiq" ]; + }; + # Graphics settings are defined here hardware = { graphics.enable = true; diff --git a/systems/nemesis/hardware-configuration.nix b/systems/nemesis/hardware-configuration.nix index be3f647..de72be3 100644 --- a/systems/nemesis/hardware-configuration.nix +++ b/systems/nemesis/hardware-configuration.nix @@ -25,12 +25,6 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - fileSystems."/mnt/windows" = - { device = "/dev/nvme0n1p3"; - fsType = "ntfs-3g"; - options = [ "rw" "uid=rafiq" ]; - }; - swapDevices = [ { device = "/dev/disk/by-uuid/1fb29964-4a65-4cf4-9b45-9534d35845bc"; } ];