dotfiles/nix/systems/blowhole.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

inputs: {
2021-02-05 12:05:42 +01:00
system = "x86_64-linux";
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;
grub = {
enable = true;
efi.enable = true;
};
hardware.blowhole = true;
sshdEmacs.enable = true;
flakes = {
enable = true;
};
};
services.openssh = {
enable = true;
ports = [ 2222 ];
};
}
)
({ ... }:
{
networking = {
hostName = "blowhole";
useDHCP = false;
interfaces.eno1.useDHCP = false;
firewall.enable = true;
};
time.timeZone = "Europe/Bratislava";
system.stateVersion = "21.05";
security.pki.certificates = [ (builtins.readFile ../redalder.org.crt) ];
})
];
2021-02-05 12:05:42 +01:00
}