mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: Add host polder and refractor modules
This commit is contained in:
parent
1b99070718
commit
3756bbfb45
38 changed files with 284 additions and 172 deletions
57
nixcfgs/hosts/polder/default.nix
Normal file
57
nixcfgs/hosts/polder/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# ~/.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 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue