nixos-config/hosts/edison/configuration.nix

38 lines
800 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-09-13 23:40:50 +02:00
{
imports =
[
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
./desktop.nix
2023-09-13 23:40:50 +02:00
];
networking = {
hostName = "edison";
defaultGateway = "192.168.10.1";
nameservers = [ "192.168.11.100" "1.1.1.1" ];
# Networking / Wi-Fi is configured with NM for now. TODO
networkmanager.enable = true;
2023-09-13 23:40:50 +02:00
};
console.keyMap = "us";
2023-09-13 23:40:50 +02:00
# sops.defaultSopsFile = ../../secrets/edison/edison.yaml;
environment.variables = { EDITOR = "vim"; };
# environment.systemPackages = with pkgs; [
# ];
2023-09-13 23:40:50 +02:00
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
2023-09-13 23:40:50 +02:00
];
networking.firewall.allowedTCPPorts = [ 22 ];
system.stateVersion = "23.05";
}