summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormediocregopher <mediocregopher@gmail.com>2023-08-13 21:34:14 +0200
committermediocregopher <mediocregopher@gmail.com>2023-08-13 21:35:17 +0200
commit1957081c122fe231eb6120192489dd979d214317 (patch)
treeb8cd0812ec3c0452d54cb789ba938e6f0c0e8278 /Makefile
parentef8da74f1ae38d9eceb68846fe9ef402c8e30fcf (diff)
Update branch with all changes which could be brought in from private branches
For a while I was keeping a private branch where there were a lot of non-public things included, and that became the de-facto branch while this one lagged. This one is now up-to-date, all private stuff is dealt with via config files which are not committed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9af26eb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+
+# 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
+ sudo systemctl daemon-reload
+
+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
+ nix-env -i loadout -f default.nix --arg hostConfig "import ./config/$(HOSTNAME).nix"
+
+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
+
+install-keyboard:
+ sudo cp ./base/00-keyboard.conf /etc/X11/xorg.conf.d/00-keyboard.conf
+
+install: setup-pulseaudio install-pamd install-rm-keyfile install-fonts install-keyboard install-loadout