blob: be0d723fc63a36b2397c3cb70e8e24dfec21720a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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 enable rm-keyfile.service
install-loadout:
@if [ -z "$(HOSTNAME)" ]; then echo "USAGE: make HOSTNAME=... install-loadout"; exit 1; fi
nix-env -v --show-trace -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-tmpfiles:
mkdir -p ~/.config/user-tmpfiles.d
cp base/tmpfiles.conf ~/.config/user-tmpfiles.d/loadout.conf
systemd-tmpfiles --user --create # run now to create anything which needs it
systemctl --user enable systemd-tmpfiles-setup.service
systemctl --user enable --now systemd-tmpfiles-clean.timer
install-ssh-env:
mkdir -p ~/.ssh
cp base/ssh_environment ~/.ssh/environment
install-xorg-conf:
sudo mkdir -p /etc/X11/xorg.conf.d/
sudo cp awesome/xorg.conf /etc/X11/xorg.conf.d/99-loadout.conf
install: setup-pulseaudio install-rm-keyfile install-fonts install-tmpfiles install-ssh-env install-xorg-conf install-loadout
|