diff --git a/i3.nix b/i3.nix index a09f752..86aaecc 100644 --- a/i3.nix +++ b/i3.nix @@ -1,4 +1,4 @@ -{ ... }: { +{ pkgs, ... }: { imports = [ ./firefox.nix ./polybar.nix @@ -15,6 +15,23 @@ }; }; + # Dell Precision Nonsense + home.packages = with pkgs; [ + alsa-utils + ]; + home.file."precision/fixmicrophone" = { + executable = true; + text = '' + # https://github.com/NixOS/nixpkgs/issues/294170 + sudo ln -s /run/current-system/sw/bin/rm /bin + sudo ln -s /run/current-system/sw/bin/mkdir /bin + + # https://discourse.nixos.org/t/dell-xps-13-9320-microphone-not-working/40932/3 + sudo alsactl init + systemctl --user restart pipewire + ''; + }; + programs.browserpass.enable = true; programs.chromium = { enable = true; diff --git a/monitor_configs.nix b/monitor_configs.nix index 8742f1a..10e5eee 100644 --- a/monitor_configs.nix +++ b/monitor_configs.nix @@ -1,5 +1,39 @@ { home-manager, ... }: { home.file = { + "xps/standalone" = { + executable = true; + text = '' + xrandr \ + --output eDP-1 --mode 1920x1200 --primary \ + --output DP-1-1 --off \ + --output DP-1-2 --off \ + --output DP-1-3 --off + i3-msg restart + ''; + }; + "xps/desk" = { + executable = true; + text = '' + xrandr \ + --output eDP-1 --off \ + --output DP-1-1 --mode 1920x1080 --rate 30 --left-of DP-1-2 \ + --output DP-1-2 --mode 3840x2160 --rate 30 --primary \ + --output DP-1-3 --mode 3840x2160 --rate 30 --right-of DP-1-2 + i3-msg restart + ''; + }; + "xps/workbench" = { + executable = true; + text = '' + xrandr \ + --output eDP-1 --off \ + --output DP-1-1 --mode 3840x2160 --rate 30 --left-of DP-1-2 \ + --output DP-1-2 --mode 3840x2160 --rate 30 --primary \ + --output DP-1-3 --mode 1920x1080 --rate 30 --right-of DP-1-2 + i3-msg restart + ''; + }; + "precision/tv" = { executable = true; text = '' @@ -19,16 +53,6 @@ i3-msg restart ''; }; - "xps/desk" = { - executable = true; - text = '' - xrandr \ - --output DP-1-2 --mode 3840x2160 --rate 30 --primary \ - --output DP-1-1 --mode 3840x2160 --rate 30 --right-of DP-1-2 \ - --output eDP-1 --off - i3-msg restart - ''; - }; "precision/work" = { executable = true; text = '' diff --git a/secrets.tar.zst.gpg b/secrets.tar.zst.gpg index f14f7a2..cf753d9 100644 Binary files a/secrets.tar.zst.gpg and b/secrets.tar.zst.gpg differ