per hardware symlinks
This commit is contained in:
parent
3a95b52864
commit
fc21e4193c
3 changed files with 29 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/result
|
/result
|
||||||
/roles/wireless.nix
|
/roles/wireless.nix
|
||||||
|
hardware-configuration.nix
|
||||||
|
|
|
@ -18,16 +18,7 @@
|
||||||
./roles/vpn.nix
|
./roles/vpn.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
networking.hostName = "raven";
|
|
||||||
networking.hostId = "e3a397c5";
|
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.interfaces.wlo1.useDHCP = true;
|
|
||||||
networking.resolvconf.useLocalResolver = true;
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
|
@ -7,14 +7,38 @@
|
||||||
imports = [
|
imports = [
|
||||||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||||
<nixos-hardware/common/cpu/amd>
|
<nixos-hardware/common/cpu/amd>
|
||||||
<nixos-hardware/common/pc/ssd>
|
<nixos-hardware/common/pc/laptop/acpi_call.nix>
|
||||||
<nixos-hardware/common/pc/laptop>
|
<nixos-hardware/common/pc/laptop/ssd>
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
services.tlp.enable = true;
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"w /sys/class/drm/card0/device/power_dpm_force_performance_level - - - - low"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
"rtsx_pci_sdmmc"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.kernelParams = [ "amdgpu.dpm=1" ];
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking.hostName = "raven";
|
||||||
|
networking.hostId = "e3a397c5";
|
||||||
|
|
||||||
|
networking.interfaces.wlo1.useDHCP = true;
|
||||||
|
networking.resolvconf.useLocalResolver = true;
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "tank/root/nixos";
|
{ device = "tank/root/nixos";
|
Loading…
Add table
Add a link
Reference in a new issue