nix/nixos/foxtrot/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2023-10-09 15:09:02 -05:00
{
flake,
inputs,
outputs,
lib,
# config,
pkgs,
...
}: {
networking.hostName = "foxtrot";
imports =
[
inputs.disko.nixosModules.disko
flake.diskoConfigurations.standard
]
++ (with outputs.nixosModules; [
desktop-usage
podman
postgres
wifi
])
++ [
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-pc-laptop-ssd
];
# TODO: hibernation? does sleep suffice?
# TODO: perform a hardware scan
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
# kernelParams = ["boot.shell_on_fail"];
kernelPackages = pkgs.linuxPackages_latest;
initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"];
};
hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.printing.enable = true;
networking = {
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [22];
allowedUDPPorts = [];
};
};
system.stateVersion = "23.11";
}