2021-05-30 11:19:34 +02:00
|
|
|
{ hostName, hostId }:
|
|
|
|
inputs: {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
../nixos-modules/default.nix
|
|
|
|
({ pkgs, config, ... }:
|
|
|
|
{
|
|
|
|
magic_rb = {
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
2021-05-30 12:51:12 +02:00
|
|
|
efi.enable = true;
|
|
|
|
devices = [ "nodev" ];
|
2021-05-30 11:19:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
pins = {
|
|
|
|
inherit (inputs)
|
|
|
|
nixpkgs
|
|
|
|
nixpkgs-unstable
|
|
|
|
nixpkgs-master
|
|
|
|
|
|
|
|
home-manager
|
|
|
|
nixng
|
|
|
|
fenix;
|
|
|
|
};
|
|
|
|
overlays = inputs.self.overlays;
|
|
|
|
|
|
|
|
hardware."${hostName}" = true;
|
|
|
|
flakes.enable = true;
|
|
|
|
};
|
|
|
|
|
2021-05-30 11:26:31 +02:00
|
|
|
services.openssh = {
|
2021-05-30 11:19:34 +02:00
|
|
|
enable = true;
|
|
|
|
passwordAuthentication = true;
|
|
|
|
permitRootLogin = "no";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
allowedTCPPorts = [ 22 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
useDHCP = true;
|
|
|
|
# interfaces.enp3s0.useDHCP = true;
|
|
|
|
|
|
|
|
firewall.enable = true;
|
|
|
|
inherit hostId hostName;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
|
|
system.stateVersion = "20.09";
|
|
|
|
security.pki.certificates = [ (builtins.readFile ../redalder.org.crt) ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|