Bonjour à tous,
Dans ma config.nix je suis arrivé au montage de mes disques supplémentaires :
Music >> /dev/sdb2
Stocks >> /dev/sdb1
Series >> /dev/sdc1
Series de Films >> /dev/sda1
configuration.nix
services.fstrim.enable = true;
fileSystems."/home/gg/Videos/Series de Films" =
{ device = "/dev/disk/by-uuid/567D-5703";
fsType = "exfat";
};
fileSystems."/home/gg/Music" =
{ device = "/dev/disk/by-uuid/76BF-63AA";
fsType = "exfat";
};
fileSystems."/home/gg/Stocks" =
{ device ="/dev/disk/by-uuid/FEAA-FD15";
fsType = "exfat";
};
fileSystems."/home/gg/Videos/Series" =
{ device = "/dev/disk/by-uuid/58CD-8A03";
fsType = "exfat";
};
hardware-configuration.nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c7f75fec-17c7-4916-b88c-2a2aa28b66d3";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D5B5-1F66";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/c051616d-5d2d-456e-acd8-d0e9da463984";
fsType = "ext4";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
Series : je suis bien le proprio mais il se monte en double dans mon gestionnaire de fichiers.
Stocks : proprio root
Music : proprio root
Series de Films : proprio root
Mes disques ne se monte pas au démarrage mais quand je rebuild.
J’utilise Archlinux en dual avec NixOS et dans Arch je mets ces options :
user,nosuid,nodev,nofail,x-gvfs-show,uid=user,gid=user,fmask=0113,dmask=0002
aux 4 partitions pour être tranquille.
Un peu d’aide serait la bien venue.