blob: 4bffa183ee5eac33a412dfd47071452d75b5f8e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ pkgs, ... }: {
imports = [
./nvidia.nix
];
environment.systemPackages = with pkgs; [
openrgb-with-all-plugins
phoronix-test-suite
];
# Automaticaly mount C drive
fileSystems."/mnt/c" = {
device = "/dev/nvme1n1p4";
fsType = "ntfs-3g";
options = [ "rw" "noatime" "uid=1000" ];
};
# Automatically mount E drive
fileSystems."/mnt/e" = {
device = "/dev/sda2";
fsType = "ntfs-3g";
options = [ "rw" "noatime" "uid=1000" ];
};
fileSystems."/mnt/kopia" = {
device = "none";
fsType = "fuse";
options = [ "noauto" "allow_other" "default_permissions" "fsname=kopia" "uid=1000" ];
};
# services.udev.enable = true; # usually on by default
# services.udev.extraRules = ''
# KERNEL=="kopia", ACTION=="add", ENV{ID_FS_TYPE}=="fuse.kopia", \
# ENV{ID_MOUNT_ID}="kopia-mount", ENV{ID_FS_LABEL}=="kopia", \
# SYMLINK+="kopia-mount"
# '';
}
|