dotfiles/nix/systems/oci-nixos.nix
Magic_RB 4be1e7d019
Switch tweedledum and tweedledee from sshd to openssh
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:39 +02:00

57 lines
1.2 KiB
Nix

{ hostName, hostId }:
inputs: {
system = "x86_64-linux";
modules = [
../nixos-modules/default.nix
({ pkgs, config, ... }:
{
magic_rb = {
grub = {
enable = true;
efi.enable = false;
devices = [ "/dev/disk/by-id/scsi-360646ec4d8e14b45b588dcafaf0b511b" ];
};
pins = {
inherit (inputs)
nixpkgs
nixpkgs-unstable
nixpkgs-master
home-manager
nixng
fenix;
};
overlays = inputs.self.overlays;
hardware."${hostName}" = true;
flakes.enable = true;
};
services.openssh = {
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) ];
})
];
}