tweak: hades host config
This commit is contained in:
parent
19cdb75fb4
commit
addc1671cb
4 changed files with 98 additions and 10 deletions
|
|
@ -18,6 +18,19 @@
|
|||
# specify kernel to use
|
||||
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||
|
||||
# bootloader settings
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
# supported filesystems at boot
|
||||
boot.supportedFilesystems = [
|
||||
"vfat"
|
||||
"ext4"
|
||||
#"ntfs"
|
||||
];
|
||||
|
||||
# enable printing support
|
||||
services.printing.enable = true;
|
||||
|
||||
|
|
@ -30,18 +43,17 @@
|
|||
# other packages to include
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
# tools and utilities
|
||||
git
|
||||
helix
|
||||
|
||||
# packages for hades peripherals
|
||||
input-remapper
|
||||
razergenie
|
||||
openrazer-daemon
|
||||
openrgb-with-all-pluginsi
|
||||
#input-remapper
|
||||
#razergenie
|
||||
#openrazer-daemon
|
||||
#openrgb-with-all-plugins
|
||||
|
||||
];
|
||||
|
||||
# peripherals for hades
|
||||
hardware.ckb-next.enable = true;
|
||||
|
||||
# amd radeon gpu drivers and software
|
||||
# https://nixos.wiki/wiki/AMD_GPU
|
||||
boot = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
# hardware module declaration
|
||||
flake.nixosModules.hadesHardware =
|
||||
|
||||
|
|
@ -36,8 +37,13 @@
|
|||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
# luks device mapping
|
||||
boot.initrd.luks.devices."luks-35440a88-293e-455b-a018-ee1086b07321".device =
|
||||
"/dev/disk/by-uuid/35440a88-293e-455b-a018-ee1086b07321"
|
||||
boot.initrd.luks.devices."luks-35440a88-293e-455b-a018-ee1086b07321" = {
|
||||
device = "/dev/disk/by-uuid/35440a88-293e-455b-a018-ee1086b07321"
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-55f7d546-fac9-4ea0-a21e-4c50ecc0d67d" = {
|
||||
device = "/dev/disk/by-uuid/55f7d546-fac9-4ea0-a21e-4c50ecc0d67d"
|
||||
};
|
||||
|
||||
# root partition
|
||||
fileSystems."/" = {
|
||||
|
|
@ -66,4 +72,5 @@
|
|||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue