37 lines
684 B
Nix
37 lines
684 B
Nix
{ pkgs, config, lib, ... }:
|
|
let
|
|
me = config.m-0.private.me;
|
|
in {
|
|
# channel = 18.03
|
|
|
|
imports = [
|
|
<home-manager/nixos>
|
|
../common
|
|
./modules/laptop.nix
|
|
./modules/server
|
|
./modules/standalone
|
|
./modules/cdarknet
|
|
./modules/loginctl-linger.nix
|
|
];
|
|
|
|
|
|
i18n = {
|
|
defaultLocale = "en_US.UTF-8";
|
|
};
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
networking = {
|
|
firewall.allowPing = true;
|
|
useDHCP = false;
|
|
hosts = lib.zipAttrs (lib.mapAttrsToList (host: ip: {"${ip}" = host; } ) config.m-0.hosts);
|
|
};
|
|
|
|
users = {
|
|
mutableUsers = false;
|
|
users.root = {
|
|
openssh.authorizedKeys.keys = me.keys;
|
|
passwordFile = me.pw-file;
|
|
};
|
|
};
|
|
}
|