mount foxshare in nixos

This commit is contained in:
xenia 2024-07-03 18:59:55 +02:00
parent 728f7e7ce2
commit 2a63264f1e
4 changed files with 13 additions and 2 deletions

View File

@ -204,7 +204,7 @@
modules = [
nixos-apple-silicon.nixosModules.apple-silicon-support
./nixos/machines/foxhut/hardware.nix
(import ./nixos/machines/foxhut/boot.nix { inherit asahi-firmware; })
(import ./nixos/machines/foxhut/boot.nix { inherit pkgs asahi-firmware; })
base
networking
graphical

View File

@ -48,6 +48,7 @@
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
uid = 1000;
};
users.users.guest = {
@ -55,6 +56,7 @@
extraGroups = [ ];
home = "/home/guest";
shell = pkgs.zsh;
uid = 1001;
};
security.sudo.wheelNeedsPassword = false;

View File

@ -48,6 +48,7 @@ in
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
uid = 1002;
};
environment.systemPackages = with pkgs; [

View File

@ -2,7 +2,8 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ asahi-firmware, ... }:
{ pkgs, asahi-firmware, ... }:
{ config, ... }:
{
# Use the systemd-boot EFI boot loader.
@ -15,5 +16,12 @@
hardware.asahi.useExperimentalGPUDriver = true;
hardware.asahi.experimentalGPUInstallMode = "replace";
fileSystems.foxshare = {
fsType = "exfat";
device = "/dev/disk/by-label/foxshare";
mountPoint = "/home/xenia/foxshare";
options = ["uid=${builtins.toString config.users.users.xenia.uid}" "nofail"];
};
}