greetd: use proper package for greetd

This commit is contained in:
DashieTM 2024-05-12 23:29:35 +02:00
parent 52d35e019d
commit 4d957a817a
23 changed files with 484 additions and 373 deletions

View file

@ -1,7 +1,12 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.kernelParams = [
imports = [
../../modules/gamemode.nix
../../modules/boot_params.nix
../../modules/ironbar_config.nix
];
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
programs.boot.boot_params = [
"amdgpu.ppfeaturemask=0xffffffff"
];
networking.hostName = "spaceship";
@ -9,11 +14,22 @@
programs.gamemode = {
device = 0;
};
environment.systemPackages = with pkgs; [
linuxKernel.packages.linux_zen.virtualbox
];
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "dashie" ];
virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.host.enable = true;
# enable hardware acceleration and rocm
hardware.xone.enable = true;
hardware.opengl.extraPackages = with pkgs; [
libvdpau-va-gl
vaapiVdpau
rocmPackages.clr.icd
rocm-opencl-runtime
];
hardware.opengl = {
enable = true;
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
boot.initrd.kernelModules = [ "amdgpu" ];
programs.ironbar.monitor = "DP-1";
}

View file

@ -5,40 +5,10 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-label/ROOT";
fsType = "btrfs";
options = [
"noatime"
"nodiratime"
"discard"
];
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
options = [ "rw" "fmask=0022" "dmask=0022" "noatime" ];
};
fileSystems."/home" =
{
device = "/dev/disk/by-label/HOME";
fsType = "btrfs";
options = [
"noatime"
"nodiratime"
"discard"
];
};
fileSystems."/drive2" =
{
device = "/dev/disk/by-label/DRIVE2";
@ -50,10 +20,6 @@
];
};
swapDevices =
[{ device = "/dev/disk/by-label/SWAP"; }];
# 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