Created
March 20, 2017 10:26
-
-
Save stumoss/8a71e943c81a8a52bc876544a902d6b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, ... }: | |
{ | |
imports = | |
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | |
]; | |
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; | |
boot.kernelModules = [ "kvm-intel" "coretemp" ]; | |
boot.extraModulePackages = [ ]; | |
fileSystems = { | |
"/" = { | |
device = "/dev/disk/by-uuid/7dadac6b-5f55-487a-81d0-923fcf6ca8db"; | |
fsType = "btrfs"; | |
options = [ "noatime" "nodiratime" "ssd" "autodefrag" "compress=lzo" "space_cache" "discard" ]; | |
}; | |
"/home" = { | |
device = "/dev/disk/by-uuid/ef7473f0-0052-4e72-9403-f9cb5a5dd212"; | |
fsType = "btrfs"; | |
options = [ "noatime" "nodiratime" ]; | |
}; | |
"/boot" = { | |
device = "/dev/disk/by-uuid/E5EB-6326"; | |
fsType = "vfat"; | |
}; | |
"/var/lib/transmission/Downloads" = { | |
device = "${config.users.extraUsers.stu.home}/Downloads"; | |
fsType = "fuse.mount.fuse.bindfs"; | |
options = [ | |
"nonempty" | |
"chown-ignore" | |
"chgrp-ignore" | |
"force-user=${config.users.extraUsers.transmission.name}" | |
"force-group=${config.users.extraUsers.transmission.group}" | |
]; | |
}; | |
"${config.services.mpd.musicDirectory}" = { | |
device = "${config.users.extraUsers.stu.home}/Music"; | |
fsType = "fuse.mount.fuse.bindfs"; | |
options = [ | |
"nonempty" | |
"chown-ignore" | |
"chgrp-ignore" | |
"force-user=${config.users.extraUsers.mpd.name}" | |
"force-group=${config.users.extraUsers.mpd.group}" | |
]; | |
}; | |
#"${builtins.head config.services.minidlna.mediaDirs}" = { | |
# device = "${config.users.extraUsers.stu.home}/Movies"; | |
# fsType = "none"; | |
# options = [ | |
# "bind" | |
# "ro" | |
# "noatime" | |
# "uid=${toString config.users.extraUsers.minidlna.uid}" | |
# "gid=${toString config.users.extraUsers.minidlna.group}" | |
# ]; | |
#}; | |
#"/var/run/media/stu/backup" = { | |
# device = "/dev/disk/by-uuid/B8063C10063BCDDE"; | |
# fsType = "ntfs-3g"; | |
# options = [ | |
# "noauto" | |
# "x-systemd.automount" | |
# "uid=${toString config.users.extraUsers.stu.uid}" | |
# "group=${config.users.extraUsers.stu.group}" | |
# "rw" | |
# ]; | |
#}; | |
}; | |
swapDevices = [ | |
{ device = "/dev/disk/by-uuid/4c9d5046-5953-468c-8d3f-c68210031230"; } | |
]; | |
nix.maxJobs = lib.mkDefault 8; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment