49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
{
|
||
imports = [
|
||
./hardware-configuration.nix
|
||
../../common/home_manager/common.nix
|
||
../../common/fragments/bittorrent
|
||
../../common/fragments/home-assistant.nix
|
||
../../common/fragments/sponsorblock.nix
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
boot.initrd.luks.devices."luks-081780bd-f005-4394-bbf2-3e5d9aab3c7d".device = "/dev/disk/by-uuid/081780bd-f005-4394-bbf2-3e5d9aab3c7d";
|
||
|
||
networking.hostName = "watchtower";
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
systemd.services.NetworkManager-wait-online.enable = false;
|
||
|
||
# Open ports in the firewall.
|
||
networking.firewall = {
|
||
allowedTCPPorts = [
|
||
22
|
||
80
|
||
443
|
||
];
|
||
trustedInterfaces = [ "podman0" ];
|
||
};
|
||
|
||
virtualisation = {
|
||
podman = {
|
||
enable = true;
|
||
dockerCompat = true;
|
||
defaultNetwork.settings.dns_enabled = true;
|
||
};
|
||
oci-containers.backend = "podman";
|
||
};
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "24.05"; # Did you read the comment?
|
||
}
|