From 76ed533bd2a953bbb77fea5fde1d5fc68b4e8fdd Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 11 Jun 2023 17:31:45 +0200 Subject: [PATCH] pre sketchy stuff --- nixos/i3.nix | 8 +++----- nixos/network.nix | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/nixos/i3.nix b/nixos/i3.nix index e64393a..7ee7090 100644 --- a/nixos/i3.nix +++ b/nixos/i3.nix @@ -4,11 +4,6 @@ environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw # Define the i3 window manager configuration services.xserver = { - xrandrHeads = [ - "HDMI-0 --auto --left-of DP-4" - "DP-4 --auto --primary" - ]; - enable = true; desktopManager = { @@ -19,6 +14,9 @@ displayManager.lightdm.enable = true; displayManager.autoLogin.enable = true; displayManager.autoLogin.user = "mans"; + displayManager.setupCommands = '' + ${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --rate 144.00 --size 1920x1080 --right-of HDMI-0 --primary --output HDMI-0 --auto + ''; windowManager.i3 = { enable = true; diff --git a/nixos/network.nix b/nixos/network.nix index 54edd9e..0209f99 100644 --- a/nixos/network.nix +++ b/nixos/network.nix @@ -10,10 +10,10 @@ networking.networkmanager.enable = true; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 22 ]; + # networking.firewall.allowedTCPPorts = [ 22 ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. - # networking.firewall.enable = false; + networking.firewall.enable = false; # Set the hostname