nixos-config/nixos/configs/pepe/hardware-configuration.nix

89 lines
1.9 KiB
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
# 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.
2021-09-27 18:53:45 +02:00
{ modulesPath, config, lib, pkgs, ... }:
2019-10-24 02:20:38 +02:00
{
2021-11-01 09:20:42 +01:00
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
2020-04-10 11:36:58 +02:00
2021-11-01 09:20:42 +01:00
(
let mediaUUID = "29ebe5ba-7599-4dd3-99a3-37b9bf8e4d61";
in {
fileSystems."/media" = {
device = "/dev/disk/by-uuid/${mediaUUID}";
fsType = "ext4";
options = [
"nofail"
"noauto"
#"x-systemd.device-timeout=1ms"
];
};
systemd.mounts = [{
enable = true;
options = "nofail,noauto";
type = "ext4";
wantedBy = [ "multi-user.target" ];
what = "/dev/disk/by-uuid/${mediaUUID}";
where = "/media";
}];
}
)
2020-04-10 11:36:58 +02:00
];
2019-10-24 02:20:38 +02:00
2019-12-20 05:54:26 +01:00
boot.initrd.availableKernelModules =
[ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
2019-10-24 02:20:38 +02:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.loader.grub = {
2019-12-20 05:54:26 +01:00
enable = true;
2019-10-24 02:20:38 +02:00
version = 2;
2019-12-20 05:54:26 +01:00
device = "/dev/sda";
2019-10-24 02:20:38 +02:00
};
zramSwap = {
enable = true;
numDevices = 2;
swapDevices = 1;
memoryPercent = 50;
};
2021-07-10 13:41:02 +02:00
fileSystems."/share" = {
#device = "/dev/ram1";
device = "none";
2019-10-24 02:20:38 +02:00
fsType = "tmpfs";
};
nix.maxJobs = lib.mkDefault 2;
2019-10-24 02:20:38 +02:00
# lvm volume group
# ----------------
2020-11-22 01:58:32 +01:00
boot.initrd.luks.devices = {
"secure_vg" = {
device = "/dev/sda2";
preLVM = true;
};
};
2019-10-24 02:20:38 +02:00
# NTFS support
# ------------
2019-12-20 05:54:26 +01:00
environment.systemPackages = [ pkgs.ntfs3g ];
2019-10-24 02:20:38 +02:00
# root
# ----
fileSystems."/" = {
options = [ "noatime" "nodiratime" "discard" ];
2019-12-20 05:54:26 +01:00
device = "/dev/secure_vg/root";
fsType = "ext4";
2019-10-24 02:20:38 +02:00
};
# boot
# ----
fileSystems."/boot" = {
device = "/dev/sda1";
fsType = "ext4";
};
}