2023-09-12 08:44:05 -06:00
|
|
|
{ config
|
|
|
|
, pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2023-07-18 14:24:10 -06:00
|
|
|
pubKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7v+/xS8832iMqJHCWsxUZ8zYoMWoZhjj++e26g1fLT europa"
|
|
|
|
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBB/V8N5fqlSGgRCtLJMLDJ8Hd3JcJcY8skI0l+byLNRgQLZfTQRxlZ1yymRs36rXj+ASTnyw5ZDv+q2aXP7Lj0= hosts@secretive.plq.local"
|
|
|
|
];
|
|
|
|
userBase = {
|
|
|
|
openssh.authorizedKeys.keys = pubKeys ++ config.myconf.managementPubKeys;
|
|
|
|
};
|
2023-09-12 08:44:05 -06:00
|
|
|
in
|
|
|
|
{
|
2023-07-19 10:58:08 -06:00
|
|
|
_module.args.isUnstable = false;
|
2023-07-18 14:24:10 -06:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
defaultUsers.enable = false;
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd.availableKernelModules = lib.mkForce [
|
|
|
|
"mmc_block"
|
|
|
|
"usbhid"
|
|
|
|
"hid_generic"
|
|
|
|
"hid_microsoft"
|
|
|
|
];
|
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
supportedFilesystems = lib.mkForce [ "vfat" ];
|
2023-07-18 14:24:10 -06:00
|
|
|
|
|
|
|
kernelPackages = lib.mkForce pkgs.linuxPackages_rpi0;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "wzero";
|
2023-09-12 08:44:05 -06:00
|
|
|
networkmanager = { enable = true; };
|
2023-07-18 14:24:10 -06:00
|
|
|
wireless.userControlled.enable = true;
|
2023-09-12 08:44:05 -06:00
|
|
|
hosts."100.120.151.126" = [ "graph.tapenet.org" ];
|
2023-07-18 14:24:10 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
users.users.weather = {
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Weather";
|
2023-09-12 08:44:05 -06:00
|
|
|
extraGroups = [ "wheel" ];
|
2023-07-18 14:24:10 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
preDNS.enable = false;
|
|
|
|
users.users.root = userBase;
|
|
|
|
|
|
|
|
#environment.systemPackages = with pkgs; [
|
|
|
|
#];
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|