From 5bf105b94f3c63bc738b788b2b651985eed96c11 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sat, 29 Mar 2025 12:54:20 +0100 Subject: dynamic nodes --- nodes/work/configuration.nix | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 nodes/work/configuration.nix (limited to 'nodes/work/configuration.nix') diff --git a/nodes/work/configuration.nix b/nodes/work/configuration.nix new file mode 100644 index 0000000..6d970b2 --- /dev/null +++ b/nodes/work/configuration.nix @@ -0,0 +1,55 @@ +{ lib, pkgs, inputs, ... }: +{ + imports = [ + inputs.home-manager.nixosModules.home-manager + inputs.agenix.nixosModules.default + inputs.disko.nixosModules.disko + inputs.update-systemd-resolved.nixosModules.update-systemd-resolved + + ../../modules/core + ../../modules/hyprland.nix + + ./hardware-configuration.nix + ./home-manager.nix + ./networking.nix + ./secrets.nix + ]; + + system.stateVersion = "24.05"; # Do NOT change before reading configuration.nix + + users.users.jras.extraGroups = [ "networkmanager" "docker" ]; + security.sudo.wheelNeedsPassword = lib.mkForce true; + + time.timeZone = "Europe/Amsterdam"; + + virtualisation.docker = { + enable = true; + enableOnBoot = true; + }; + + virtualisation.virtualbox = { + host.enable = true; + host.enableKvm = false; + }; + + users.extraGroups.vboxusers.members = [ "jras" ]; + + + hardware.bluetooth.enable = true; + hardware.bluetooth.powerOnBoot = true; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + services.libinput.mouse.accelProfile = "flat"; + services.libinput.mouse.accelSpeed = "-5"; + services.upower.enable = true; + + services.xserver.xkb = { + layout = "us"; + variant = ""; + }; + + programs.gnupg.agent.enable = true; + programs.gnupg.agent.pinentryPackage = pkgs.pinentry-gnome3; +} -- cgit v1.2.3