nix/packages/hosts/dragon.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

2025-02-14 13:04:04 -06:00
{
pkgs,
config,
hardware,
diskoConfigurations,
2025-02-16 11:17:59 -06:00
# homeConfigurations,
2025-02-14 13:04:04 -06:00
...
2025-02-14 13:31:18 -06:00
}:
{
2025-02-14 13:04:04 -06:00
system.stateVersion = "24.11";
2025-02-19 11:41:22 -06:00
networking = {
hostName = "dragon";
2025-02-19 16:13:19 -06:00
wifi.enable = true;
2025-02-19 11:41:22 -06:00
};
2025-02-14 13:04:04 -06:00
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.enable = true;
2025-02-14 13:31:18 -06:00
initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"ahci"
"usbhid"
];
kernelModules = [ "kvm-amd" ];
supportedFilesystems = [ "ntfs" ];
2025-02-14 13:04:04 -06:00
};
imports = with hardware; [
2025-02-14 13:31:18 -06:00
(diskoConfigurations.unencrypted { disk = "/dev/nvme0n1"; })
2025-02-14 13:04:04 -06:00
common-cpu-amd
common-gpu-amd
common-pc-ssd
];
2025-02-14 15:40:53 -06:00
hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = "performance";
sops = {
defaultSopsFile = ../../secrets/dragon/secrets.yml;
secrets.ddns-pass.mode = "0400";
2025-02-14 13:31:18 -06:00
};
2025-02-16 11:17:59 -06:00
services.deno-netlify-ddns-client = {
enable = true;
passwordFile = config.sops.secrets.ddns-pass.path;
2025-02-16 11:17:59 -06:00
username = "dragon.h";
};
2025-02-14 13:04:04 -06:00
programs.steam.enable = true;
2025-02-16 11:17:59 -06:00
lyte.desktop.enable = true;
2025-02-16 10:43:53 -06:00
2025-02-16 11:17:59 -06:00
home-manager.users.daniel = {
lyte.shell.enable = true;
lyte.desktop.enable = true;
2025-02-16 11:17:59 -06:00
slippi-launcher = {
enable = true;
isoPath = "${config.users.users.daniel.home}/../games/roms/dolphin/melee.iso";
launchMeleeOnPlay = false;
};
};
2025-02-14 13:04:04 -06:00
}