nixos-config/nixos/legacy/sterni/hardware-configuration.nix

86 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-25 11:07:09 +02:00
{ config, lib, pkgs, modulesPath, ... }:
2019-10-24 02:20:38 +02:00
{
2021-09-25 11:07:09 +02:00
imports = [ "${modulesPath}/installer/scan/not-detected.nix" ];
2019-10-24 02:20:38 +02:00
2019-12-20 05:54:26 +01:00
boot.initrd.availableKernelModules =
[ "ehci_pci" "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
2019-10-24 02:20:38 +02:00
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2020-01-24 11:19:48 +01:00
# Use the systemd-boot EFI boot loader, not grub
2019-10-24 02:20:38 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2023-02-13 18:40:56 +01:00
boot.tmpOnTmpfs = true; # make /tmp a tmpfs (performance!)
2019-10-24 02:20:38 +02:00
#zramSwap = {
# enable = true;
# numDevices = 2;
# swapDevices = 1;
# memoryPercent = 50;
#};
2019-10-24 02:20:38 +02:00
2021-07-07 04:38:18 +02:00
fileSystems."/share" = {
2021-07-08 20:43:14 +02:00
device = "none";
2019-10-24 02:20:38 +02:00
fsType = "tmpfs";
};
2021-07-07 04:38:18 +02:00
fileSystems."/browsers" = {
device = "none";
fsType = "tmpfs";
2019-10-24 02:20:38 +02:00
};
2023-01-07 16:41:03 +01:00
nix.settings.max-jobs = lib.mkDefault 4;
2019-10-24 02:20:38 +02:00
# lvm volume group
# ----------------
2020-05-19 20:44:20 +02:00
boot.initrd.luks.devices = {
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
};
# 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
};
# /home/palo/private/.fotos.ct
# --------------------
#fileSystems."/home/palo/private/.fotos.ct" = {
# options = [ "noatime" "nodiratime" "discard" ];
# device = "/dev/vg/fotos";
# fsType = "ext4";
#};
# boot
# ----
fileSystems."/boot" = {
device = "/dev/sda1";
fsType = "vfat";
};
}