2023-09-02 15:33:36 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-08-23 14:38:42 +02:00
|
|
|
imports = [
|
2025-01-31 12:19:42 +01:00
|
|
|
./base-minimal.nix
|
|
|
|
|
2025-01-29 20:09:56 +01:00
|
|
|
# Filesystem settings.
|
2025-01-31 12:52:59 +01:00
|
|
|
./btrfsScrub.nix
|
2025-01-06 16:05:58 +01:00
|
|
|
|
2024-08-23 14:38:42 +02:00
|
|
|
# DNS settings.
|
2025-01-06 16:05:58 +01:00
|
|
|
#
|
2024-09-24 16:21:49 +02:00
|
|
|
# TODO add nix option
|
2025-01-06 16:05:58 +01:00
|
|
|
./dns.nix # Encrypted DNS queries to custom name servers.
|
|
|
|
#./dns-unencrypted.nix # Custom name servers.
|
2024-09-24 16:21:49 +02:00
|
|
|
|
2024-08-23 14:38:42 +02:00
|
|
|
# Nix garbage collection.
|
|
|
|
./nix-gc.nix
|
2024-09-04 22:12:26 +02:00
|
|
|
# Display contact information during boot.
|
|
|
|
./initrd-contact-info.nix
|
2024-08-23 14:38:42 +02:00
|
|
|
];
|
|
|
|
|
2023-09-02 15:33:36 +02:00
|
|
|
# Enables wireless support via wpa_supplicant.
|
|
|
|
# networking.wireless.enable = true;
|
2025-01-31 12:19:42 +01:00
|
|
|
#
|
2023-09-02 15:33:36 +02:00
|
|
|
# Enable networking.
|
|
|
|
networking.networkmanager.enable = true;
|
2025-01-31 12:19:42 +01:00
|
|
|
#
|
2023-09-02 15:33:36 +02:00
|
|
|
users.users.yoda = {
|
2025-01-31 12:19:42 +01:00
|
|
|
extraGroups = [ "networkmanager" ];
|
2023-09-02 15:33:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nix.settings.auto-optimise-store = true;
|
|
|
|
|
2023-09-20 15:38:13 +02:00
|
|
|
# Firewall.
|
|
|
|
# https://nixos.wiki/wiki/Firewall
|
2024-01-16 15:43:45 +01:00
|
|
|
# Note: Firewall rules may be bypassed/overwritten by Docker, as per https://github.com/NixOS/nixpkgs/issues/111852
|
2023-09-20 15:38:13 +02:00
|
|
|
networking.firewall.enable = true;
|
2023-09-02 15:33:36 +02:00
|
|
|
}
|