55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
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";
|
|
}
|