84 lines
2.4 KiB
Nix
84 lines
2.4 KiB
Nix
# 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")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.extraModprobeConfig = "options kvm_amd nested=1";
|
||
|
||
fileSystems."/" =
|
||
{ device = "none";
|
||
fsType = "tmpfs";
|
||
options = ["defaults" "size=1G" "mode=755"];
|
||
};
|
||
fileSystems."/nix" =
|
||
{ device = "ratchet-zfs/root/nix";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" =
|
||
{ device = "ratchet-zfs/root/home";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/nvme0n1p5";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
fileSystems."/home/yaroslav/tmp" =
|
||
{
|
||
device = "none";
|
||
fsType = "tmpfs";
|
||
};
|
||
fileSystems."/Volumes/Trash" =
|
||
{
|
||
device = "aphelion:/Volumes/Trash";
|
||
options = ["x-mount.mkdir" "user" "rw" "noauto" ];
|
||
fsType = "nfs";
|
||
};
|
||
|
||
|
||
services.nfs.server.enable = true;
|
||
swapDevices = [ ];
|
||
|
||
boot.supportedFilesystems = [ "zfs" ];
|
||
networking.hostId = "63367a21";
|
||
|
||
services.asus-numberpad-driver = {
|
||
enable = true;
|
||
layout = "up5401ea";
|
||
wayland = true;
|
||
runtimeDir = "/run/user/1000/";
|
||
waylandDisplay = "wayland-0";
|
||
ignoreWaylandDisplayEnv = false;
|
||
config = {
|
||
"activation_time" = "0.5";
|
||
# More Configuration Options
|
||
"enabled_touchpad_pointer" = "0";
|
||
|
||
};
|
||
};
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
networking.hostName = "Ratchet";
|
||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
hardware.bluetooth.enable = true;
|
||
}
|