mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
a6572e0d4e
Signed-off-by: Magic_RB <magic_rb@redalder.org>
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ hostName }:
|
|
inputs: {
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
../nixos-modules/default.nix
|
|
({ pkgs, config, ... }:
|
|
{
|
|
magic_rb = {
|
|
grub = {
|
|
enable = true;
|
|
efi.enable = true;
|
|
devices = [ "nodev" ];
|
|
};
|
|
|
|
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 hostName;
|
|
};
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
system.stateVersion = "20.09";
|
|
security.pki.certificates = [ (builtins.readFile ../redalder.org.crt) ];
|
|
})
|
|
];
|
|
|
|
}
|