nix/nixos/thinker.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-05 23:11:14 -05:00
{ modulesPath, lib, ... }: {
2023-09-04 11:40:30 -05:00
imports =
[
2023-09-05 23:51:32 -05:00
../modules/intel.nix
2023-09-05 22:39:17 -05:00
../modules/desktop-usage.nix
2023-09-05 23:11:14 -05:00
../modules/podman.nix
../modules/wifi.nix
2023-09-05 22:39:17 -05:00
2023-09-05 21:46:55 -05:00
(modulesPath + "/installer/scan/not-detected.nix")
2023-09-04 11:40:30 -05:00
];
# TODO: hibernation? I've been using [deep] in /sys/power/mem_sleep alright
# with this machine so it may not be necessary?
# need to measure percentage lost per day, but I think it's around 10%/day
2023-09-05 23:11:14 -05:00
# it looks like I may have had hibernation working -- see ../old/third.nix
2023-09-04 11:40:30 -05:00
# TODO: fonts? right now, I'm just installing to ~/.local/share/fonts
2023-09-05 23:11:14 -05:00
# hardware
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
2023-09-04 11:40:30 -05:00
2023-09-05 22:39:17 -05:00
networking.hostName = "thinker";
2023-09-04 11:40:30 -05:00
2023-09-05 23:11:14 -05:00
services.pcscd.enable = true; # why do I need this? SD card slot?
hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.printing.enable = true; # I own a printer in the year of our Lord 2023
2023-09-04 11:40:30 -05:00
2023-09-22 12:56:48 -05:00
networking = {
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
};
};
2023-09-29 16:57:26 -05:00
system.stateVersion = "23.11";
2023-09-04 11:40:30 -05:00
}