nixcfg/hosts/mandarin/default.nix

77 lines
1.5 KiB
Nix
Raw Normal View History

# Custom desktop with AMD Ryzen 5 5600x, 32GB RAM, AMD Rx 7800 XT, and 1TB SSD + 2TB SSD.
2024-06-14 14:05:59 -04:00
{
config,
inputs,
lib,
pkgs,
...
}: {
imports = [
2024-07-07 19:17:35 -04:00
../common.nix
2024-06-14 14:05:59 -04:00
./disko.nix
./home.nix
2024-07-07 19:17:35 -04:00
inputs.nixhw.nixosModules.common-amd-cpu
inputs.nixhw.nixosModules.common-amd-gpu
inputs.nixhw.nixosModules.common-bluetooth
inputs.nixhw.nixosModules.common-ssd
2024-06-14 14:05:59 -04:00
];
2024-07-07 19:17:35 -04:00
boot = {
initrd.availableKernelModules = ["nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci"];
kernelPackages = pkgs.linuxPackages_latest;
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
2024-06-14 14:05:59 -04:00
};
2024-07-07 22:23:19 -04:00
environment.variables.GDK_SCALE = "1.25";
2024-07-07 19:17:35 -04:00
hardware.enableAllFirmware = true;
2024-06-14 14:05:59 -04:00
networking.hostName = "mandarin";
2024-06-30 23:01:57 -04:00
services.ollama = {
enable = true;
acceleration = "rocm";
};
system.stateVersion = "24.05";
ar = {
apps = {
2024-06-28 21:07:20 -04:00
firefox.enable = true;
podman.enable = true;
steam.enable = true;
virt-manager.enable = true;
2024-06-14 14:05:59 -04:00
};
2024-06-14 14:05:59 -04:00
desktop = {
greetd = {
enable = true;
2024-06-14 14:05:59 -04:00
autologin = {
enable = true;
user = "morgan";
};
};
2024-06-14 14:05:59 -04:00
hyprland.enable = true;
2024-06-19 20:55:54 -04:00
steam.enable = true;
2024-06-14 14:05:59 -04:00
};
services.flatpak.enable = true;
2024-06-14 14:05:59 -04:00
users = {
aly = {
enable = true;
password = "$y$j9T$NSS7QcEtN4yiigPyofwlI/$nxdgz0lpySa0heDMjGlHe1gX3BWf48jK6Tkfg4xMEs6";
};
morgan = {
enable = true;
password = "$y$j9T$frYXYFwo4KuPWEqilfPCN1$CtRMMK4HFLKu90qkv1cCkvp1UdJocUbkySQlVElwkM2";
};
};
};
2024-06-14 14:05:59 -04:00
}