Fixing Hyprland crash

This commit is contained in:
soraefir
2023-11-16 23:06:28 +01:00
parent 5726d5c6d1
commit 63941b5c44
47 changed files with 518 additions and 494 deletions

View File

@ -0,0 +1,32 @@
{ config, inputs, ... }: {
imports = [
./hardware-configuration.nix
#common-cpu-amd
#common-gpu-amd
];
hostcfg = {
hostname = "valinor";
username = "sora";
make = {
gui = true;
cli = true;
virt = true;
power = true;
game = true;
};
net = {
wlp = {
enable = true;
nif = "wlp3s0";
};
wg = {
enable = true;
ip4 = "10.10.1.5/32";
ip6 = "fd10:10:10::5/128";
pk = config.sops.secrets.valinor_wg_priv.path;
};
};
};
}

View File

@ -0,0 +1,33 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "v4l2loopback" "kvm-amd" ];
#boot.kernelPackages = pkgs.linuxPackages_latest;
boot.extraModulePackages = with config.boot.kernelPackages;
[ v4l2loopback.out ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/e9713f83-ee3a-4fb1-806f-594c3bab7006";
fsType = "ext4";
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/F344-72E2";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/8bbeae2f-9431-4849-9b42-9f2655da596e"; }];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableAllFirmware;
}

16
systems/valinor/home.nix Normal file
View File

@ -0,0 +1,16 @@
{ config, ... }: {
config.homecfg = {
username = "sora";
make = {
gui = true;
cli = true;
game = true;
};
git = {
email = "soraefir+git@pm.me";
username = "soraefir";
key = "4E241635F8EDD2919D2FB44CA362EA0491E2EEA0";
};
};
}