mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
# ~/.config/nixcfgs/hosts/polder/default.nix
|
|
{
|
|
config,
|
|
pkgs,
|
|
nix-flatpak,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
# impure build
|
|
/etc/nixos/hardware-configuration.nix
|
|
../../modules/nixos
|
|
];
|
|
system.stateVersion = "25.05";
|
|
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.device = "/dev/sda";
|
|
boot.kernelParams = [ "console=ttyS0,115200n8" "console=tty0" ];
|
|
boot.loader.grub.useOSProber = true;
|
|
services.qemuGuest.enable = true;
|
|
services.spice-vdagentd.enable = true;
|
|
time.timeZone = "Etc/UTC";
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
networking.hostName = "polder";
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "yes";
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
usePredictableInterfaceNames = false;
|
|
interfaces.eth0.ipv4.addresses = [
|
|
{
|
|
address = "158.220.98.103";
|
|
prefixLength = 20;
|
|
}
|
|
];
|
|
defaultGateway = {
|
|
address = "158.220.96.1";
|
|
interface = "eth0";
|
|
};
|
|
nameservers = [
|
|
"1.1.1.1"
|
|
"8.8.8.8"
|
|
"2606:4700:4700::1111"
|
|
"2001:4860:4860::8888"
|
|
];
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 22 ];
|
|
};
|
|
};
|
|
}
|