2022-07-31 13:10:28 +00:00
|
|
|
args@{ pkgs, ... }:
|
2022-07-30 16:19:49 +00:00
|
|
|
|
2022-07-30 20:55:19 +00:00
|
|
|
let
|
|
|
|
secret = import ../../secret/hosts/sail.nix;
|
2022-07-31 18:33:19 +00:00
|
|
|
ssh-keys = import ../shared/ssh-keys.nix;
|
2022-07-30 20:55:19 +00:00
|
|
|
in
|
2022-07-30 16:19:49 +00:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../hardware/hosts/sail.nix
|
2022-07-30 17:49:04 +00:00
|
|
|
../nixos/ssh.nix
|
|
|
|
|
|
|
|
../nixos/git.nix
|
2022-07-31 13:10:28 +00:00
|
|
|
(import ../nixos/tailscale.nix (args // { inherit secret; }))
|
2022-07-30 18:17:39 +00:00
|
|
|
|
|
|
|
../nixos/arion.nix
|
2022-07-30 22:36:06 +00:00
|
|
|
../../container/webserver
|
2022-07-30 16:19:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
|
|
|
|
binaryCaches = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
|
|
|
|
binaryCachePublicKeys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
keep-derivations = true
|
|
|
|
keep-outputs = true
|
|
|
|
auto-optimise-store = true
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.cleanTmpDir = true;
|
|
|
|
|
|
|
|
zramSwap.enable = true;
|
|
|
|
|
2022-07-30 20:55:19 +00:00
|
|
|
networking = {
|
|
|
|
hostName = "sail";
|
|
|
|
|
|
|
|
interfaces.enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses;
|
|
|
|
defaultGateway6 = { address = "fe80::1"; interface = "enp1s0"; };
|
2022-07-31 13:10:28 +00:00
|
|
|
|
2022-07-31 13:21:51 +00:00
|
|
|
dhcpcd.denyInterfaces = [ "veth*" ];
|
|
|
|
|
2022-07-31 13:10:28 +00:00
|
|
|
timeServers = [
|
|
|
|
"ntp1.hetzner.de"
|
|
|
|
"ntp2.hetzner.com"
|
|
|
|
"ntp3.hetzner.net"
|
|
|
|
"time.cloudflare.com"
|
|
|
|
];
|
2022-07-30 20:55:19 +00:00
|
|
|
};
|
2022-07-30 16:19:49 +00:00
|
|
|
|
2022-07-31 18:33:19 +00:00
|
|
|
users.users = {
|
|
|
|
root = {
|
|
|
|
openssh.authorizedKeys.keys = [ ssh-keys.Hetzner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
daniel = {
|
|
|
|
hashedPassword = secret.users.daniel.hashedPassword;
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/daniel";
|
|
|
|
description = "Daniel";
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
openssh.authorizedKeys.keys = [ ssh-keys.Hetzner ];
|
|
|
|
};
|
|
|
|
};
|
2022-07-30 16:19:49 +00:00
|
|
|
}
|