nix/packages/hosts/dragon.nix
Daniel Flanagan 0bc0ba43a2
Some checks failed
/ check (push) Failing after 22s
dragon check passes
2025-02-16 10:43:53 -06:00

60 lines
1.4 KiB
Nix

{
pkgs,
config,
hardware,
diskoConfigurations,
homeConfigurations,
...
}:
{
system.stateVersion = "24.11";
networking.hostName = "dragon";
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 = {
# passwordFile = config.sops.secrets.ddns-pass.path;
# enable = true;
# username = "dragon.h";
# # TODO: router doesn't even do ipv6 yet...
# ipv6 = false;
# };
# networking.wifi.enable = true;
# lyte.desktop.enable = true;
# home-manager.users.daniel = {
# lyte.shell.enable = true;
# lyte.desktop.enable = true;
# slippi-launcher = {
# enable = true;
# isoPath = "${config.users.users.daniel.home}/../games/roms/dolphin/melee.iso";
# launchMeleeOnPlay = false;
# };
# };
}