confix/hosts/base/configuration.nix

31 lines
532 B
Nix
Raw Permalink Normal View History

2024-01-16 22:43:56 -05:00
# Base configuration.nix
{ config, lib, pkgs, inputs, user, ... }:
let
hostname="nixos";
in
{
imports = [
./hardware-configuration.nix
];
boot = {
loader.grub = {
enable = true;
device = "/dev/vda";
useOSProber = true;
};
# Hardware-configuration edits
kernel.sysctl."net.ipv4.ip_forward" = 1;
};
networking = {
hostName = "${hostname}";
firewall = {
2024-02-21 11:24:20 -05:00
enable = true;
2024-01-16 22:43:56 -05:00
};
};
2024-02-21 11:24:20 -05:00
environment = {
systemPackages = with pkgs; [
cloud-utils
];
};
2024-01-16 22:43:56 -05:00
}