Skip to content

Commit

Permalink
chore(voron): return back to xserver
Browse files Browse the repository at this point in the history
  • Loading branch information
truelecter committed Oct 19, 2023
1 parent 055c12b commit 64c049f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
17 changes: 17 additions & 0 deletions cells/nixos/hosts/voron/_klipper/klipper-screen.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,21 @@
frequency = 50000;
};
};

services.xserver = {
enable = true;
logFile = "/dev/null";

displayManager = {
startx.enable = true;
xserverArgs = ["-keeptty" "-logverbose" "-verbose"];
};

excludePackages = with pkgs; [
xterm
xdg-utils
nixos-icons
xorg.iceauth
];
};
}
11 changes: 7 additions & 4 deletions cells/nixos/hosts/voron/_wifi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
lib,
...
}: {
users.groups.wifi.members = ["klipper-screen" "truelecter"];

networking.wireless = {
enable = true;
interfaces = ["wlan0"];
Expand All @@ -17,7 +19,7 @@
};
environmentFile = config.sops.secrets.xata-password-env.path;
extraConfig = ''
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wifi
country=UA
update_config=1
'';
Expand All @@ -37,9 +39,9 @@
compatible = "brcm,bcm2711";
fragment@0 {
// Despite this being ant1 instead of ant2,
// CM4 will use ant2. This is because
// CM4 will use external antenna. This is because
// ant1 is enabled by default and switching
// GPIO pins causes it to activate ant2
// GPIO pins causes it to activate external antenna
target = <&ant1>;
__overlay__ {
Expand All @@ -51,7 +53,8 @@
target = <&ant2>;
__overlay__ {
gpios = <3 0>;
// output-low is still present here
gpios = <3 1>;
};
};
};
Expand Down

0 comments on commit 64c049f

Please sign in to comment.