several changes to home and nixos configs

This commit is contained in:
Thilo Billerbeck 2025-02-23 02:20:22 +01:00
parent ab894097d1
commit bc909ffbf4
12 changed files with 139 additions and 60 deletions

View file

@ -13,31 +13,22 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
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-uuid/7b55546f-7bd5-4b46-b5b1-1c81fdd8509c";
fsType = "ext4";
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/caa83e18-f2f2-46f9-8c27-0842c3051dc1";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/5A04-0844";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/DADB-44A9";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems = {
"/data" = {
@ -47,10 +38,6 @@
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/da98aab4-f3a5-439b-aab5-b78624c219d3"; }
];
# 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
@ -60,5 +47,6 @@
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -33,6 +33,8 @@
};
*/
fonts.fontconfig.enable = true;
nix = {
package = lib.mkDefault pkgs.lix;
};

View file

@ -14,15 +14,13 @@
# Bootloader.
boot = {
loader = {
systemd-boot = {
enable = true;
# extraInstallCommands = ''
# ${pkgs.gnused}/bin/sed -i "/default/c\default @saved" /boot/loader/loader.conf
# '';
grub = {
efiSupport = true;
device = "nodev";
};
efi.canTouchEfiVariables = true;
};
# kernelPackages = pkgs.linuxPackages_latest;
kernelPackages = pkgs.linuxPackages_xanmod_latest;
binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
@ -31,6 +29,7 @@
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
plymouth.enable = true;
};
networking.hostName = "thilo-pc";
@ -44,15 +43,14 @@
layout = "us";
variant = "";
};
blueman.enable = true;
# AI
ollama = {
enable = true;
acceleration = "rocm";
};
open-webui = {
enable = true;
};
# ollama = {
# enable = true;
# acceleration = "rocm";
# };
# open-webui = {
# enable = true;
# };
};
programs.kdeconnect.enable = true;
@ -167,6 +165,7 @@
};
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
programs.steam.gamescopeSession = {
enable = false;
@ -192,5 +191,16 @@
];
};
programs.gamescope.enable = true;
system.stateVersion = "24.11";
environment.systemPackages = with pkgs; [
kdePackages.skanpage
];
services.resolved = {
enable = true;
domains = [ "~." ];
};
}