1
0
Fork 0
dotfiles/system/hosts/adsb-antenna.nix

109 lines
2.3 KiB
Nix
Raw Normal View History

2022-08-09 18:54:07 +00:00
args@{ pkgs, lib, ... }:
2022-08-01 20:39:14 +00:00
let
secret = import ../../secret/hosts/adsb-antenna.nix;
ssh-keys = import ../shared/ssh-keys.nix;
in
{
imports = [
../../hardware/hosts/adsb-antenna.nix
2022-08-23 22:05:38 +00:00
../nixos/raspberry.nix
2022-08-01 20:39:14 +00:00
../nixos/ssh.nix
../nixos/git.nix
2022-08-02 16:44:26 +00:00
2023-04-07 16:25:41 +00:00
../nixos/attic.nix
2023-03-19 14:51:22 +00:00
../nixos/container.nix
2022-08-02 16:44:26 +00:00
../../container/adsb
2022-08-01 20:39:14 +00:00
];
2022-12-25 21:13:07 +00:00
system.stateVersion = "22.11";
2022-08-01 20:39:14 +00:00
nix = {
2022-09-26 13:23:14 +00:00
package = pkgs.nixVersions.stable;
2022-08-01 20:39:14 +00:00
2022-08-05 09:37:45 +00:00
settings = {
auto-optimise-store = true;
2022-08-01 20:39:14 +00:00
2022-08-05 09:37:45 +00:00
substituters = [
2023-04-12 18:04:08 +00:00
"https://attic.cache.daniel.sx/nifoc-systems"
"https://nifoc.cachix.org"
2022-08-05 09:37:45 +00:00
"https://nix-community.cachix.org"
"https://wurzelpfropf.cachix.org"
2022-08-05 09:37:45 +00:00
];
trusted-public-keys = [
2023-04-12 18:04:08 +00:00
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nifoc.cachix.org-1:ymuftq7RgN/lf/iWXFK8gpwDSAGFaGBeliWe9u6q8II="
2022-08-05 09:37:45 +00:00
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0="
2022-08-05 09:37:45 +00:00
];
};
2022-08-01 20:39:14 +00:00
2022-08-18 21:12:16 +00:00
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
2022-08-01 20:39:14 +00:00
extraOptions = ''
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
2023-04-07 18:52:24 +00:00
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
2022-08-01 20:39:14 +00:00
'';
};
2023-04-07 15:33:50 +00:00
environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc;
2022-08-01 20:39:14 +00:00
boot = {
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
cleanTmpDir = true;
};
networking = {
hostName = "adsb-antenna";
dhcpcd.denyInterfaces = [ "veth*" ];
timeServers = [
"ntp1.hetzner.de"
"ntp2.hetzner.com"
"ntp3.hetzner.net"
"time.cloudflare.com"
];
};
2022-12-01 21:48:43 +00:00
services.journald.extraConfig = ''
SystemMaxUse=512M
'';
2023-02-23 20:41:41 +00:00
documentation = {
nixos.enable = false;
doc.enable = false;
};
2022-10-24 11:19:23 +00:00
2022-08-01 20:39:14 +00:00
programs.fish.enable = true;
users.users = {
root = {
openssh.authorizedKeys.keys = [ ssh-keys.LAN ];
};
daniel = {
hashedPassword = secret.users.daniel.hashedPassword;
isNormalUser = true;
home = "/home/daniel";
description = "Daniel";
extraGroups = [ "wheel" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [ ssh-keys.LAN ];
};
};
}