nixos-config/hosts/edison/configuration.nix

56 lines
1.0 KiB
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
2024-05-28 23:04:44 +02:00
./desktop
2023-09-13 23:40:50 +02:00
];
2023-12-25 13:31:43 +01:00
virtualisation.docker.enable = true;
2024-05-28 23:04:44 +02:00
systemd.coredump.enable = true;
2023-12-25 13:31:43 +01:00
2023-09-13 23:40:50 +02:00
networking = {
hostName = "edison";
defaultGateway = "192.168.10.1";
2024-01-15 10:06:10 +01:00
interfaces.enp4s0.useDHCP = false;
interfaces.enp4s0.ipv4.addresses = [
{ address = "192.168.10.170"; prefixLength = 24; }
];
hostId = "8e84b281";
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"; };
2023-09-15 17:12:47 +02:00
environment.systemPackages = with pkgs; [
2024-05-28 23:04:44 +02:00
discord
gimp
2024-01-15 10:06:10 +01:00
gparted
2024-05-28 23:04:44 +02:00
openvpn
pavucontrol
unstable.element-desktop
2024-01-15 10:06:10 +01:00
unstable.hydrus
2023-09-15 17:12:47 +02:00
];
2023-09-13 23:40:50 +02:00
2023-12-25 13:31:43 +01:00
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
2024-05-28 23:04:44 +02:00
"discord"
"nvidia-x11"
"nvidia-settings"
2023-12-25 13:31:43 +01:00
"steam"
"steam-original"
"steam-run"
2023-09-13 23:40:50 +02:00
];
system.stateVersion = "23.05";
}