blob: 12e3d1f4aa5a4400a4e06519777dd38a087e714f (
plain) (
tree)
|
|
# 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, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
./common.nix
./icewm.nix
];
networking.hostName = "zinzin";
networking.hostId = "304a68ef";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices = {
lukszfs = {
device = "/dev/disk/by-uuid/f75e45a4-dc1e-4f38-b2d8-3336ec3790ef";
allowDiscards = true;
};
};
# ---- standard filesystems ----
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3BC8-460B";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "zinzin/nixos/home";
fsType = "zfs";
neededForBoot = true; # because contains password files used below
};
fileSystems."/nix" =
{ device = "zinzin/nixos/nix";
fsType = "zfs";
};
swapDevices = [ ];
# ---- tmpfs root filesystem with special persisted directory ----
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=4G" "mode=755" ];
};
fileSystems."/persist" =
{ device = "zinzin/nixos/persist";
fsType = "zfs";
neededForBoot = true; # because contains /var/log
};
environment.etc."machine-id".source = "/persist/etc/machine-id";
fileSystems."/etc/NetworkManager/system-connections" =
{ device = "/persist/etc/NetworkManager/system-connections";
fsType = "none";
depends = [ "/persist" "/mnt-root/persist" ];
options = [ "bind" ];
};
fileSystems."/var/log" =
{ device = "/persist/var/log";
fsType = "none";
depends = [ "/persist" "/mnt-root/persist" ];
options = [ "bind" ];
};
# ---- immutable user config for tmpfs root ----
users.mutableUsers = false;
users.users.lx.passwordFile = "/home/lx/.password";
# ----
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
|