Refactoring, add wine

This commit is contained in:
Lauren Lagarde 2025-03-13 22:25:46 -05:00
parent 290c6d1c31
commit 8e85199a56
7 changed files with 150 additions and 120 deletions

View file

@ -0,0 +1,54 @@
{ ... }: {
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
'';
};
"precision/home" = {
executable = true;
text = ''
xrandr \
--output DP-4-3 --mode 3840x2160 --rate 30 --primary \
--output DP-4-1 --mode 3840x2160 --rate 30 --right-of DP-4-3 \
--output eDP-1 --off
i3-msg restart
'';
};
"precision/office" = {
executable = true;
text = ''
xrandr \
--output DP-2-2 --mode 3840x2160 --rate 30 --primary \
--output DP-2-1 --mode 3840x2160 --rate 30 --right-of DP-2-2 \
--output eDP-1 --off
i3-msg restart
'';
};
"precision/standalone" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --mode 1920x1200 --primary \
--output DP-4 --off \
--output DP-2-1 --off \
--output DP-2-2 --off \
--output DP-4-1 --off \
--output DP-4-3 --off
i3-msg restart
'';
};
};
}