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

70 lines
1.3 KiB
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ config, lib, pkgs, ... }:
2019-12-20 05:54:26 +01:00
let mainUserHome = "/home/palo";
in {
2019-10-24 02:20:38 +02:00
# fix fileSystems.<name>.encrypted - false overwrite
# --------------------------------------------------
2019-12-20 05:54:26 +01:00
boot.initrd.luks.cryptoModules = [
"aes"
"aes_generic"
"blowfish"
"twofish"
"serpent"
"cbc"
"xts"
"lrw"
"sha1"
"sha256"
"sha512"
"aes_x86_64"
];
2019-10-24 02:20:38 +02:00
# todo : why should I use this here
2019-12-20 05:54:26 +01:00
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
2019-10-24 02:20:38 +02:00
boot.kernelModules = [ "kvm-intel" ];
nix.maxJobs = lib.mkDefault 8;
# lvm volume group
# ----------------
2019-12-20 05:54:26 +01:00
boot.initrd.luks.devices = [{
name = "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/vg/root";
fsType = "ext4";
2019-10-24 02:20:38 +02:00
};
# boot
# ----
fileSystems."/boot" = {
device = "/dev/sda1";
fsType = "ext4";
};
boot.loader.grub = {
2019-12-20 05:54:26 +01:00
device = "/dev/sda";
enable = true;
2019-10-24 02:20:38 +02:00
version = 2;
};
# home
# ----
fileSystems."/home" = {
options = [ "noatime" "nodiratime" "discard" ];
2019-12-20 05:54:26 +01:00
device = "/dev/vg/home";
fsType = "ext4";
2019-10-24 02:20:38 +02:00
};
}