2021-04-11 00:25:36 +02:00
|
|
|
inputs: {
|
2021-02-05 12:05:42 +01:00
|
|
|
system = "x86_64-linux";
|
|
|
|
|
2021-09-14 21:58:37 +02:00
|
|
|
modules = [
|
|
|
|
../nixos-modules/default.nix
|
|
|
|
({ pkgs, config, lib, secret, ... }:
|
|
|
|
let
|
|
|
|
inherit (config.magic_rb.pkgs) nixpkgs-unstable;
|
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
magic_rb = {
|
|
|
|
pins = inputs;
|
|
|
|
overlays = inputs.self.overlays;
|
2021-04-11 00:25:36 +02:00
|
|
|
|
2021-09-14 21:58:37 +02:00
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
efi.enable = true;
|
|
|
|
};
|
2021-04-11 00:25:36 +02:00
|
|
|
|
2021-09-14 21:58:37 +02:00
|
|
|
hardware.blowhole = true;
|
|
|
|
|
|
|
|
sshdEmacs.enable = true;
|
|
|
|
flakes = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh = {
|
2021-05-09 23:34:02 +02:00
|
|
|
enable = true;
|
2021-09-14 21:58:37 +02:00
|
|
|
ports = [ 2222 ];
|
2021-05-09 23:34:02 +02:00
|
|
|
};
|
2021-09-14 21:58:37 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
({ ... }:
|
|
|
|
{
|
|
|
|
networking = {
|
|
|
|
hostName = "blowhole";
|
|
|
|
useDHCP = false;
|
|
|
|
interfaces.eno1.useDHCP = false;
|
|
|
|
|
|
|
|
firewall.enable = true;
|
2021-04-11 00:25:36 +02:00
|
|
|
};
|
|
|
|
|
2021-09-14 21:58:37 +02:00
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
|
|
system.stateVersion = "21.05";
|
2021-07-25 00:40:06 +02:00
|
|
|
|
2021-09-14 21:58:37 +02:00
|
|
|
security.pki.certificates = [ (builtins.readFile ../redalder.org.crt) ];
|
|
|
|
})
|
|
|
|
];
|
2021-02-05 12:05:42 +01:00
|
|
|
}
|