2023-08-13 19:34:14 +00:00
|
|
|
|
|
|
|
# prevents default audio devices from changing when connecting to audio dock
|
|
|
|
setup-pulseaudio:
|
|
|
|
sudo sed -i 's/^load-module module-switch-on-connect$/# load-module module-switch-on-connect/g' /etc/pulse/default.pa
|
|
|
|
pulseaudio -k
|
|
|
|
|
|
|
|
# add vfat to MODULES in /etc/mkinitcpio.conf
|
|
|
|
# add `cryptkey=UUID=<uuid>:vfat:/keyfile` to boot line in bootloader
|
|
|
|
# - use lsblk -o NAME,UUID to get UUID
|
|
|
|
install-rm-keyfile:
|
|
|
|
sudo cp ./base/rm-keyfile.service /etc/systemd/system
|
2023-12-16 14:51:15 +00:00
|
|
|
sudo systemctl enable rm-keyfile.service
|
2023-08-13 19:34:14 +00:00
|
|
|
|
|
|
|
install-pamd:
|
|
|
|
drv=$$(nix-instantiate -E '((import ./pkgs.nix).stable {}).i3lock'); \
|
|
|
|
store=$$(nix-store --realise $$drv); \
|
|
|
|
sudo cp $$store"/etc/pam.d/i3lock" /etc/pam.d/i3lock
|
|
|
|
|
|
|
|
install-loadout:
|
|
|
|
@if [ -z "$(HOSTNAME)" ]; then echo "USAGE: make HOSTNAME=... install-loadout"; exit 1; fi
|
2023-12-20 21:37:36 +00:00
|
|
|
nix-env -v -i loadout -f default.nix --arg hostConfig "import ./config/$(HOSTNAME).nix"
|
2023-08-13 19:34:14 +00:00
|
|
|
|
|
|
|
install-fonts:
|
|
|
|
@if [ -z "$(HOSTNAME)" ]; then echo "USAGE: make HOSTNAME=... install-loadout"; exit 1; fi
|
|
|
|
mkdir -p ~/.local/share/fonts/
|
|
|
|
p=$$(nix-build --no-out-link --arg hostConfig ./config/$(HOSTNAME).nix -A fonts); \
|
|
|
|
cp -rL $$p/share/fonts ~/.local/share/fonts/loadout
|
|
|
|
chmod o+w -R ~/.local/share/fonts/loadout
|
|
|
|
fc-cache
|
|
|
|
|
2023-12-17 20:47:54 +00:00
|
|
|
install-tmpfiles:
|
|
|
|
mkdir -p ~/.config/user-tmpfiles.d
|
|
|
|
cp base/tmpfiles.conf ~/.config/user-tmpfiles.d/loadout.conf
|
2023-12-18 14:15:57 +00:00
|
|
|
systemd-tmpfiles --user --create # run now to create anything which needs it
|
2023-12-17 20:47:54 +00:00
|
|
|
systemctl --user enable systemd-tmpfiles-setup.service
|
|
|
|
systemctl --user enable --now systemd-tmpfiles-clean.timer
|
2023-08-13 19:34:14 +00:00
|
|
|
|
2023-12-17 20:47:54 +00:00
|
|
|
|
|
|
|
install: setup-pulseaudio install-pamd install-rm-keyfile install-fonts install-tmpfiles install-loadout
|