From c7df83869ff2bb4fe835a679be529ded3e1cae3d Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 16 May 2021 19:40:12 +0200 Subject: [PATCH] Temporary lockscreen fix --- fstab | 38 ++++++++++++++++++++++++++++++++++++++ home.nix | 1 + modules/screen_locker.nix | 9 +++++++++ modules/sxhkd.nix | 4 ++-- 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 fstab create mode 100644 modules/screen_locker.nix diff --git a/fstab b/fstab new file mode 100644 index 0000000..27f5dbd --- /dev/null +++ b/fstab @@ -0,0 +1,38 @@ +# Static information about the filesystems. +# See fstab(5) for details. + +# +# /dev/nvme0n1p3 @root +UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 / btrfs rw,relatime,ssd,space_cache,compress=lzo,subvolid=256,subvol=/@root,subvol=@root 0 0 + +# /dev/nvme0n1p1 +UUID=2D5C-D6EA /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2 + +# /dev/nvme0n1p2 +UUID=c35f5ed9-5dc6-4924-9e85-da2eedf833f3 none swap defaults 0 0 + +# /dev/nvme0n1p3 @opt +UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 /opt btrfs rw,relatime,ssd,space_cache,compress=lzo,subvol=/@opt,subvol=@opt 0 0 + +# /dev/sda1 @bertof +UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 /home/bertof btrfs rw,relatime,space_cache,compress=lzo,subvolid=33741,subvol=/@bertof,subvol=@bertof 0 0 + +# /dev/sda1 @bertof_images +UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Immagini btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_images,subvol=@bertof_images,x-gvfs-hide 0 0 + +# /dev/sda1 @bertof_videos +UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Video btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_videos,subvol=@bertof_videos,x-gvfs-hide 0 0 + +# /dev/sda1 @bertof_music +UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Musica btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_music,subvol=@bertof_music,x-gvfs-hide 0 0 + +# /dev/sda1 @bertof_downloads +UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Scaricati btrfs rw,relatime,space_cache,compress=lzo,subvol=/@bertof_downloads,subvol=@bertof_downloads,x-gvfs-hide 0 0 + +# /dev/nvme0n1p3 @games +UUID=9b9ae9dd-d889-4457-a7a5-02895db5f213 /home/bertof/Giochi/SSD btrfs rw,relatime,ssd,space_cache,compress=lzo,subvol=/@games,subvol=@games,x-gvfs-hide 0 0 + +# /dev/sda1 @games +UUID=70fc256d-6782-415a-af59-65e6c059194e /home/bertof/Giochi/HDD btrfs rw,relatime,ssd,space_cache,compress=lzo,subvol=/@games,subvol=@games,x-gvfs-hide 0 0 + + diff --git a/home.nix b/home.nix index 28ab2f5..25cdc84 100644 --- a/home.nix +++ b/home.nix @@ -38,6 +38,7 @@ in { ./modules/kakoune.nix ./modules/qogir_theme.nix ./modules/rofi.nix + ./modules/screen_locker.nix ./modules/sxhkd.nix ./modules/terminator.nix ]; diff --git a/modules/screen_locker.nix b/modules/screen_locker.nix new file mode 100644 index 0000000..d8f0108 --- /dev/null +++ b/modules/screen_locker.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: +{ + # home.packages = [ pkgs.betterlockscreen ]; + services.screen-locker = { + enable = true; + lockCmd = "/usr/bin/betterlockscreen -l"; + inactiveInterval = 5; # miutes + }; +} diff --git a/modules/sxhkd.nix b/modules/sxhkd.nix index 9621eee..91c770b 100644 --- a/modules/sxhkd.nix +++ b/modules/sxhkd.nix @@ -10,7 +10,7 @@ terminator rofi bash - betterlockscreen + # betterlockscreen ]; services.sxhkd = let @@ -24,7 +24,7 @@ terminator= "${pkgs.terminator}/bin/terminator"; rofi = "${pkgs.rofi}/bin/rofi"; bash = "${pkgs.bash}/bin/bash"; - betterlockscreen = "${pkgs.betterlockscreen}/bin/betterlockscreen"; + betterlockscreen = "/usr/bin/betterlockscreen"; in { enable = true; keybindings = {