From 6468ff20f0da3e1b9d63906051dc2636f6232f79 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Wed, 17 Feb 2021 01:07:16 +0300 Subject: [PATCH] update Dell-Laptop config --- machines/Dell-Laptop/default.nix | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/machines/Dell-Laptop/default.nix b/machines/Dell-Laptop/default.nix index 8d6efc2..24132cf 100644 --- a/machines/Dell-Laptop/default.nix +++ b/machines/Dell-Laptop/default.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: { +{ inputs, config, ... }: { imports = with inputs.self.nixosModules; [ ./hardware-configuration.nix inputs.self.nixosProfiles.desktop @@ -23,7 +23,7 @@ }; deviceSpecific.isHost = false; deviceSpecific.isShared = false; - deviceSpecific.isGaming = true; + deviceSpecific.isGaming = false; deviceSpecific.enableVirtualisation = false; boot.blacklistedKernelModules = [ @@ -32,6 +32,33 @@ services.fwupd.enable = true; + fileSystems = { + "/media/local/files" = { + fsType = "ntfs"; + device = "/dev/disk/by-partuuid/506c04f2-ecb1-4747-843a-576163828373"; + options = [ + "nofail" + "uid=${toString config.users.users.alukard.uid}" + "gid=${toString config.users.groups.smbgrp.gid}" + "dmask=027" + "fmask=137" + "rw" + ]; + }; + "/media/local/sys" = { + fsType = "ntfs"; + device = "/dev/disk/by-partuuid/bf5cdb93-fce3-4b02-8ba5-e43483a3a061"; + options = [ + "nofail" + "uid=${toString config.users.users.alukard.uid}" + "gid=${toString config.users.groups.smbgrp.gid}" + "dmask=027" + "fmask=137" + "ro" + ]; + }; + }; + # systemd.services.unbind-usb2 = { # script = '' # echo 'usb2' | tee /sys/bus/usb/drivers/usb/unbind