nix-config/hosts/dishwasher/configuration.nix

102 lines
3.3 KiB
Nix
Raw Normal View History

2022-06-17 19:29:47 +02:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
2022-06-26 21:19:15 +02:00
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
2022-06-17 19:29:47 +02:00
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking = {
useDHCP = true;
interfaces.enp1s0.useDHCP = true;
hostName = "dishwasher"; # Define your hostname.
useNetworkd = true;
2022-06-18 06:07:26 +02:00
firewall.enable = true;
2022-12-16 20:32:36 +01:00
wireless.iwd.enable = true;
2022-06-17 19:29:47 +02:00
};
time.timeZone = "Europe/Amsterdam";
systemd.network = {
enable = true;
wait-online.ignoredInterfaces = [ "wlp2s0" ];
networks."ether" = {
matchConfig = {
Name = "enp1s0";
};
networkConfig = {
2022-12-16 20:32:36 +01:00
# DHCP = "yes";
# LinkLocalAddressing = "ipv6";
# IPv6AcceptRA = "yes";
Address = "10.1.1.50/24";
2022-06-17 19:29:47 +02:00
};
2022-12-16 20:32:36 +01:00
# dhcpV6Config = {
# WithoutRA = "solicit";
# };
# ipv6AcceptRAConfig = {
# DHCPv6Client = "yes";
# };
};
networks."aer" = {
matchConfig.name = "wlan0";
networkConfig = {
DHCP = "yes";
2022-06-17 19:29:47 +02:00
};
};
};
2022-06-26 21:19:15 +02:00
services.resolved = {
2022-06-17 19:29:47 +02:00
enable = true;
fallbackDns = [
"8.8.8.8"
"2001:4860:4860::8844"
];
};
i18n = {
defaultLocale = "en_US.UTF-8";
2022-12-16 20:32:36 +01:00
supportedLocales = [ "all" ];
};
2022-06-17 19:29:47 +02:00
# List services that you want to enable:
# Enable the OpenSSH daemon.
2022-06-26 21:17:20 +02:00
programs.mosh.enable = true;
2022-06-17 19:29:47 +02:00
services.openssh = {
enable = true;
permitRootLogin = "prohibit-password";
};
networking.firewall.allowedTCPPorts = [ 22 ];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDP6xE2ey0C8XXfvniiiHiqXsCC277jKI9RXEA+s2LQLUI5zl7v350i3Oa8H3NCcPj39lfMreqE6ncxcOhqYyzahPrrMkOqgbPAoRvq8H3ophLK+56O3xdHoKwLBwRD1yoGACjqG4UTiTrmnN2ateENgYcnTEY1e4vDw1qMj1drUXCsZ/6mkBBmHJiFfCaR4yCMt1r4gGi/dAC7ifnBP3oSyV/lJEwPxYYkGlbOBIvX/7Ar98pJS6xYPB3jHs9gwyNNON63d0fNYrwBojXPPCnGGaRZNOkBTzex3zZYp12ThINQ2xl8tRp9D8qpZ7vrLjhTD6AXkOBRzmDj+NsCeEaeTuWajqUM93iKncYUI+JxR1t7q8gA2pBMFzLesMXnx7R+5Kw7QDtSJM7a4GMIfsocPwf64BH6rzxEz68rXFE3P+J77PPM9CuaYw90JXHo3z220zYw2nMQ/1qjATVZw/hiVrLmQMVfmFJIufnGjTBs2sy3IoNyzvYm/oDeNNg1cdSV9gyyRKZhK08fxjXN5GSf9vZkfZa9tHtqaZ99HI40GQBHUVx1K2/NQJY8TVTSA+v16SFnJK8BIbmp/WFCuvDcMkgLIbqiYtDASe7P2mKIib86uOENT+P820egeLiTQ06kFw/gfUa8t69d5qEcjiQZ+lxCeYIs/E9KrEXHvRUWew== cardno:16 811 348"
];
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# 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. Its 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 = "22.05"; # Did you read the comment?
}