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
|
2023-10-20 16:24:50 -05:00
|
|
|
# inputs.hardware.nixosModules.common-cpu-amd-pstate
|
2023-10-09 15:09:02 -05:00
|
|
|
inputs.hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
];
|
|
|
|
|
2023-10-17 23:37:05 -05:00
|
|
|
nixpkgs.overlays = [outputs.overlays.modifications];
|
|
|
|
|
2023-10-09 15:09:02 -05:00
|
|
|
# TODO: hibernation? does sleep suffice?
|
|
|
|
# TODO: perform a hardware scan
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
};
|
2023-10-20 23:17:17 -05:00
|
|
|
kernelParams = ["amdgpu.sg_display=0"];
|
2023-10-18 09:50:49 -05:00
|
|
|
initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt"];
|
|
|
|
kernelModules = ["kvm-amd"];
|
2023-10-09 15:09:02 -05:00
|
|
|
};
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
2023-10-17 23:37:05 -05:00
|
|
|
boot.supportedFilesystems =
|
|
|
|
pkgs.lib.mkForce ["btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs"];
|
|
|
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackagesFor (
|
|
|
|
pkgs.linux_6_5.override {
|
|
|
|
argsOverride = {
|
|
|
|
src = pkgs.fetchurl {
|
2023-10-22 07:49:26 -05:00
|
|
|
url = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.5.8.tar.xz";
|
|
|
|
sha256 = "sha256-KZzKiX2Q3qoXbuvsQvCoDut1Fq/tMwpFwU2p3ghs9xc=";
|
2023-10-17 23:37:05 -05:00
|
|
|
};
|
2023-10-22 07:49:26 -05:00
|
|
|
version = "6.5.8";
|
|
|
|
modDirVersion = "6.5.8";
|
2023-10-17 23:37:05 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2023-10-09 15:09:02 -05:00
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowPing = true;
|
|
|
|
allowedTCPPorts = [22];
|
|
|
|
allowedUDPPorts = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|