From 286287778a77279c586f8f5d196b7fdf87311055 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Sun, 13 Feb 2022 11:20:30 -0300 Subject: [PATCH] root: use rundird --- dotfiles/fish/wm.fish | 2 +- root/config.yaml | 4 ++++ root/grub | 4 +++- root/hardware.example.yaml | 2 ++ root/pam-local-login | 8 ++++++++ void.freeze | 3 ++- 6 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 root/pam-local-login diff --git a/dotfiles/fish/wm.fish b/dotfiles/fish/wm.fish index 2e3cfd8..d5f16cb 100644 --- a/dotfiles/fish/wm.fish +++ b/dotfiles/fish/wm.fish @@ -44,7 +44,7 @@ function esway end end -if test "$XDG_VTNR" = 1 +if test (tty) = /dev/tty1 and test -z "$DISPLAY$WAYLAND_DISPLAY" esway &> .swaylog diff --git a/root/config.yaml b/root/config.yaml index a6ec58c..21cc4a2 100644 --- a/root/config.yaml +++ b/root/config.yaml @@ -83,6 +83,10 @@ dotfiles: actions: - grub_install + pam: + src: pam-local-login + dst: /etc/pam.d/system-local-login + # mkinitcpio: # src: mkinitcpio.conf # dst: /etc/mkinitcpio.conf diff --git a/root/grub b/root/grub index fe91a2e..cb4aede 100644 --- a/root/grub +++ b/root/grub @@ -7,10 +7,12 @@ GRUB_TIMEOUT=1 GRUB_HIDDEN_TIMEOUT=1 GRUB_RECORDFAIL_TIMEOUT=$GRUB_HIDDEN_TIMEOUT -GRUB_DISTRIBUTOR="Artix" +GRUB_DISTRIBUTOR="Void" GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX=" \ + quiet loglevel=3 rd.udev.log_level=3 \ + rd.vconsole.keymap={{@@ key_layout @@}} \ {%@@ if phisical_uuid @@%} rd.luks.uuid={{@@ phisical_uuid @@}} \ root=UUID={{@@ root_uuid @@}} \ diff --git a/root/hardware.example.yaml b/root/hardware.example.yaml index 319dd33..879f4be 100644 --- a/root/hardware.example.yaml +++ b/root/hardware.example.yaml @@ -2,6 +2,8 @@ variables: plymouth: false zram: false + key_layout: colemak + # set to false if root_uuid == phisical_uuid phisical_uuid: ####RUN#### sudo blkid /dev/sda2 -s UUID -o value root_uuid: ####RUN#### sudo blkid /dev/mapper/main -s UUID -o value diff --git a/root/pam-local-login b/root/pam-local-login new file mode 100644 index 0000000..35bb618 --- /dev/null +++ b/root/pam-local-login @@ -0,0 +1,8 @@ +#%PAM-1.0 + +auth include system-login +account include system-login +password include system-login +session include system-login + +-session optional pam_rundird.so diff --git a/void.freeze b/void.freeze index 6484a9b..87c802b 100644 --- a/void.freeze +++ b/void.freeze @@ -32,7 +32,6 @@ docker-20.10.12_1 docker-compose-2.2.3_1 dust-0.7.5_1 efibootmgr-17_6 -elogind-246.9.2_3 elogind-devel-246.9.2_3 engrampa-1.26.0_1 entr-5.1_1 @@ -168,7 +167,9 @@ ranger-1.9.3_3 rclone-1.57.0_1 recode-3.6_10 ripgrep-13.0.0_1 +rofi-1.7.3_1 rsync-3.2.3_3 +rundird-0.2.0_1 rust-analyzer-2021.08.30_1 rustup-1.24.3_1 sassc-3.6.2_1