2023-04-07 03:12:43 +00:00
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./zfs.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
aa = {
|
2023-07-09 15:24:54 +00:00
|
|
|
|
nix.enable = true;
|
2023-04-09 02:13:00 +00:00
|
|
|
|
nix.useSelfhostedCache = true;
|
2023-04-07 03:12:43 +00:00
|
|
|
|
|
2023-07-09 15:24:54 +00:00
|
|
|
|
services.tailscale = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configureClientRouting = true;
|
|
|
|
|
configureServerRouting = true;
|
|
|
|
|
};
|
2023-04-07 03:12:43 +00:00
|
|
|
|
services.openssh.enable = true;
|
2023-07-09 15:24:54 +00:00
|
|
|
|
services.adguardhome.enable = true;
|
2023-07-09 16:26:53 +00:00
|
|
|
|
services.nextcloud.enable = true;
|
2023-07-09 15:24:54 +00:00
|
|
|
|
|
2023-04-07 03:12:43 +00:00
|
|
|
|
system.zfs.enable = true;
|
|
|
|
|
system.monitoring.enable = true;
|
2023-04-16 17:07:42 +00:00
|
|
|
|
|
|
|
|
|
suites.utils.enable = true;
|
|
|
|
|
|
|
|
|
|
tools.zsh.enable = true;
|
|
|
|
|
tools.gpg.enable = true;
|
|
|
|
|
apps.yubikey.enable = true;
|
2023-04-07 03:12:43 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-16 17:07:42 +00:00
|
|
|
|
security.pam.enableSSHAgentAuth = true;
|
|
|
|
|
security.pam.services.${config.aa.user.name}.sshAgentAuth = true;
|
|
|
|
|
|
2023-04-07 03:12:43 +00:00
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
|
2023-04-16 17:07:42 +00:00
|
|
|
|
security.sudo = {
|
|
|
|
|
wheelNeedsPassword = false;
|
|
|
|
|
execWheelOnly = true;
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-09 15:24:54 +00:00
|
|
|
|
networking = {
|
|
|
|
|
hostName = "node";
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
defaultGateway = "192.168.113.1";
|
|
|
|
|
nameservers = ["127.0.0.1" "1.1.1.1"];
|
|
|
|
|
interfaces.enp7s0.ipv4.addresses = [
|
|
|
|
|
{
|
|
|
|
|
address = "192.168.113.13";
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2023-04-07 03:12:43 +00:00
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
|
|
|
wget
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# 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 = "22.11"; # Did you read the comment?
|
|
|
|
|
}
|