Fixing Hyprland crash
This commit is contained in:
32
systems/iriy/default.nix
Normal file
32
systems/iriy/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ config, inputs, ... }: {
|
||||
imports = with inputs.hardware.nixosModules; [
|
||||
./hardware-configuration.nix
|
||||
common-cpu-amd
|
||||
common-gpu-amd
|
||||
];
|
||||
|
||||
hostcfg = {
|
||||
hostname = "iriy";
|
||||
username = "sora";
|
||||
make = {
|
||||
gui = true;
|
||||
cli = true;
|
||||
virt = true;
|
||||
power = false;
|
||||
game = true;
|
||||
};
|
||||
net = {
|
||||
wlp = {
|
||||
enable = true;
|
||||
nif = "wlp11s0";
|
||||
};
|
||||
wg = {
|
||||
enable = true;
|
||||
ip4 = "10.10.1.7/32";
|
||||
ip6 = "fd10:10:10::7/128";
|
||||
pk = config.sops.secrets.iriy_wg_priv.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
39
systems/iriy/hardware-configuration.nix
Executable file
39
systems/iriy/hardware-configuration.nix
Executable file
@ -0,0 +1,39 @@
|
||||
{ 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 ];
|
||||
|
||||
boot.loader.systemd-boot.extraEntries = {
|
||||
"00-windows.conf" = ''
|
||||
title Windows
|
||||
efi /efi/microsoft/bootmgfw.efi
|
||||
'';
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/f612abce-6f3f-439a-8585-6a050e18b7fc";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot/efi" = {
|
||||
device = "/dev/disk/by-uuid/349E-5086";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/42394c4d-2c81-4917-82ff-75a548715a7d"; }];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableAllFirmware;
|
||||
}
|
15
systems/iriy/home.nix
Normal file
15
systems/iriy/home.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ ... }: {
|
||||
config.homecfg = {
|
||||
username = "sora";
|
||||
make = {
|
||||
gui = true;
|
||||
cli = true;
|
||||
game = true;
|
||||
};
|
||||
git = {
|
||||
email = "soraefir+git@pm.me";
|
||||
username = "soraefir";
|
||||
key = "4E241635F8EDD2919D2FB44CA362EA0491E2EEA0";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user