nix/packages/hosts/dragon.nix
Daniel Flanagan fa9a8edfe4
Some checks failed
/ build-host (map[host:beefcake]) (push) Successful in 10s
/ build-host (map[host:dragon]) (push) Successful in 48s
/ build-host (map[host:flipflop]) (push) Successful in 42s
/ build-host (map[host:foxtrot]) (push) Successful in 46s
/ build-host (map[host:rascal]) (push) Successful in 20s
/ build-host (map[host:router]) (push) Successful in 24s
/ build-host (map[host:steamdeck]) (push) Successful in 44s
/ build-devshell (push) Successful in 19s
/ flake-check (push) Failing after 4m27s
feat: add steamdeck
2025-03-21 13:26:07 -05:00

70 lines
1.5 KiB
Nix

{
pkgs,
config,
hardware,
diskoConfigurations,
# homeConfigurations,
...
}:
{
system.stateVersion = "24.11";
networking = {
hostName = "dragon";
wifi.enable = true;
};
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.enable = true;
initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"ahci"
"usbhid"
];
kernelModules = [ "kvm-amd" ];
supportedFilesystems = [ "ntfs" ];
};
imports = with hardware; [
(diskoConfigurations.unencrypted { disk = "/dev/nvme0n1"; })
common-cpu-amd
common-gpu-amd
common-pc-ssd
];
hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = "performance";
sops = {
defaultSopsFile = ../../secrets/dragon/secrets.yml;
secrets.ddns-pass.mode = "0400";
};
services.deno-netlify-ddns-client = {
enable = true;
passwordFile = config.sops.secrets.ddns-pass.path;
username = "dragon.h";
};
services.postgresql.enable = true;
programs.steam.enable = true;
lyte.desktop.enable = true;
podman.enable = true;
home-manager.users.daniel = {
lyte = {
useOutOfStoreSymlinks.enable = true;
shell = {
enable = true;
learn-jujutsu-not-git.enable = true;
};
desktop.enable = true;
};
slippi-launcher = {
enable = true;
isoPath = "${config.users.users.daniel.home}/../games/roms/dolphin/melee.iso";
launchMeleeOnPlay = false;
};
};
}