nixos-config/machines/sternchen/hardware-configuration.nix

80 lines
1.7 KiB
Nix
Raw Normal View History

2021-03-05 08:22:35 +01: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, ... }:
2021-03-05 08:22:35 +01:00
{
2021-09-27 18:53:45 +02:00
imports = [ "${modulesPath}/installer/scan/not-detected.nix" ];
2021-03-05 08:22:35 +01:00
boot.initrd.availableKernelModules =
[ "ehci_pci" "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# Use the systemd-boot EFI boot loader, not grub
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
zramSwap = {
enable = true;
2023-08-14 09:52:48 +02:00
#numDevices = 2;
2021-03-05 08:22:35 +01:00
swapDevices = 1;
memoryPercent = 50;
};
#fileSystems."/share/" = {
# device = "/dev/ram1";
# fsType = "tmpfs";
#};
#fileSystems."/browsers/" = {
# #device = "/dev/ram2";
# #fsType = "tmpfs";
# options = [ "noatime" "nodiratime" "discard" ];
# device = "/dev/vg/browser";
# fsType = "ext4";
#};
2023-01-07 21:11:25 +01:00
nix.settings.max-jobs = lib.mkDefault 4;
2021-03-05 08:22:35 +01:00
# lvm volume group
# ----------------
boot.initrd.luks.devices = {
vg = {
device = "/dev/sda2";
preLVM = true;
};
};
# NTFS support
# ------------
environment.systemPackages = [ pkgs.ntfs3g ];
# root
# ----
fileSystems."/" = {
options = [ "noatime" "nodiratime" "discard" ];
device = "/dev/vg/root";
fsType = "ext4";
};
# home
# ----
fileSystems."/home" = {
options = [ "noatime" "nodiratime" "discard" ];
device = "/dev/vg/home";
fsType = "ext4";
};
# boot
# ----
fileSystems."/boot" = {
2021-03-05 16:01:24 +01:00
#device = "/dev/sda1";
device = "/dev/disk/by-uuid/EDD4-9795";
2021-03-05 08:22:35 +01:00
fsType = "vfat";
};
}