From cd6e02814263c4175273e2e02daac5b25ccb4f18 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sun, 22 Dec 2024 12:49:49 -0800 Subject: [PATCH] [z790prors] Support evil partition and OS --- machines/z790prors/configuration.nix | 9 +++++++-- machines/z790prors/hardware-configuration.nix | 12 ++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/machines/z790prors/configuration.nix b/machines/z790prors/configuration.nix index ed68052..56744a1 100644 --- a/machines/z790prors/configuration.nix +++ b/machines/z790prors/configuration.nix @@ -29,9 +29,14 @@ }; # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; + #boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.loader.grub.useOSProber = true; + boot.loader.efi.efiSysMountPoint = "/boot"; + boot.loader.grub = { + enable = true; + useOSProber = true; + devices = [ "nodev" ]; + }; networking = { hostName = "z790prors-nix"; # Define your hostname. diff --git a/machines/z790prors/hardware-configuration.nix b/machines/z790prors/hardware-configuration.nix index 080bca0..bbc7e13 100644 --- a/machines/z790prors/hardware-configuration.nix +++ b/machines/z790prors/hardware-configuration.nix @@ -58,6 +58,18 @@ fsType = "vfat"; }; + fileSystems."/steam" = + { device = "/dev/disk/by-uuid/E494DA9A94DA6E94"; + fsType = "ntfs"; + options = [ + "nofail" + "rw" + "user" + "exec" # This needs to go after "user". See https://askubuntu.com/questions/30243/why-does-ubuntu-refuse-to-execute-files-from-an-ntfs-partition + "umask=000" + ]; + }; + swapDevices = [ ]; services.beesd.filesystems = {