Update various bits and bobs

This commit is contained in:
Lauren Lagarde 2024-12-31 22:52:27 -06:00
parent 833d7e689f
commit 6b35ee1fea
3 changed files with 52 additions and 11 deletions

19
i3.nix
View File

@ -1,4 +1,4 @@
{ ... }: { { pkgs, ... }: {
imports = [ imports = [
./firefox.nix ./firefox.nix
./polybar.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.browserpass.enable = true;
programs.chromium = { programs.chromium = {
enable = true; enable = true;

View File

@ -1,5 +1,39 @@
{ home-manager, ... }: { { home-manager, ... }: {
home.file = { 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" = { "precision/tv" = {
executable = true; executable = true;
text = '' text = ''
@ -19,16 +53,6 @@
i3-msg restart 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" = { "precision/work" = {
executable = true; executable = true;
text = '' text = ''

Binary file not shown.