From b28c2d924e7bbdfc1792aedd2e761f8b91a7acc2 Mon Sep 17 00:00:00 2001 From: sajenim Date: Mon, 6 Nov 2023 23:53:50 +0000 Subject: [PATCH] refactor --- nixos/viridian/configuration.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/nixos/viridian/configuration.nix b/nixos/viridian/configuration.nix index 086a7dc..0e189d5 100644 --- a/nixos/viridian/configuration.nix +++ b/nixos/viridian/configuration.nix @@ -84,6 +84,20 @@ }; }; + boot = { + loader = { + systemd-boot.enable = true; + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot/efi"; + }; + }; + kernel.sysctl = { + # Allow listening on TCP & UDP ports below 1024 + "net.ipv4.ip_unprivileged_port_start" = 0; + }; + }; + hardware.opengl = { enable = true; extraPackages = with pkgs; [ @@ -118,20 +132,6 @@ }; }; - boot = { - loader = { - systemd-boot.enable = true; - efi = { - canTouchEfiVariables = true; - efiSysMountPoint = "/boot/efi"; - }; - }; - kernel.sysctl = { - # Allow listening on TCP & UDP ports below 1024 - "net.ipv4.ip_unprivileged_port_start" = 0; - }; - }; - # Setup environment environment = { # Symlink /bin/sh to POSIX-Complient shell