2025-02-16 10:43:53 -06:00
|
|
|
inputs: {
|
|
|
|
# boot.tmp.useTmpfs = true;
|
|
|
|
# boot.uki.tries = 3;
|
|
|
|
# services.irqbalance.enable = true;
|
2025-02-14 15:40:53 -06:00
|
|
|
|
|
|
|
nix-config = (import ../../../flake.nix).nixConfig;
|
2025-02-16 10:43:53 -06:00
|
|
|
|
|
|
|
default = import ./default-module.nix inputs;
|
2025-02-14 13:04:04 -06:00
|
|
|
shell-defaults-and-applications = import ./shell-config.nix;
|
|
|
|
deno-netlify-ddns-client = import ./deno-netlify-ddns-client.nix;
|
2025-02-16 10:43:53 -06:00
|
|
|
gnome = import ./gnome.nix;
|
|
|
|
laptop = import ./laptop.nix;
|
|
|
|
plasma6 = import ./plasma.nix;
|
|
|
|
gaming = import ./gaming.nix;
|
|
|
|
pipewire = import ./pipewire.nix;
|
|
|
|
podman = import ./podman.nix;
|
|
|
|
virtual-machines = import ./virtual-machines.nix;
|
|
|
|
postgres = import ./postgres.nix;
|
|
|
|
desktop = import ./desktop.nix;
|
|
|
|
printing = import ./printing.nix;
|
|
|
|
wifi = import ./wifi.nix;
|
2025-02-16 23:53:40 -06:00
|
|
|
restic = import ./restic.nix;
|
2025-02-18 21:53:09 -06:00
|
|
|
router = import ./router.nix;
|
2025-02-14 13:04:04 -06:00
|
|
|
|
2025-02-14 13:31:18 -06:00
|
|
|
remote-disk-key-entry-on-boot =
|
|
|
|
{
|
2025-02-16 10:43:53 -06:00
|
|
|
# lib,
|
|
|
|
# pkgs,
|
2025-02-14 13:31:18 -06:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
https://nixos.wiki/wiki/Remote_disk_unlocking
|
|
|
|
"When using DHCP, make sure your computer is always attached to the network and is able to get an IP adress, or the boot process will hang."
|
|
|
|
^ seems less than ideal
|
|
|
|
*/
|
|
|
|
boot.kernelParams = [ "ip=dhcp" ];
|
|
|
|
boot.initrd = {
|
|
|
|
# availableKernelModules = ["r8169"]; # ethernet drivers
|
|
|
|
systemd.users.root.shell = "/bin/cryptsetup-askpass";
|
|
|
|
network = {
|
2024-07-29 10:43:11 -05:00
|
|
|
enable = true;
|
2025-02-14 13:31:18 -06:00
|
|
|
ssh = {
|
|
|
|
enable = true;
|
|
|
|
port = 22;
|
2025-02-16 10:43:53 -06:00
|
|
|
authorizedKeys = [ inputs.self.outputs.pubkey ];
|
2025-02-14 13:31:18 -06:00
|
|
|
hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ];
|
|
|
|
};
|
2024-07-29 10:43:11 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-28 16:10:06 -05:00
|
|
|
}
|