My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[flake] remove hyprlock

dish 369b9367 bbe9ec38

+11 -104
-1
homeModules/wayland/hyprland/default.nix
··· 13 13 imports = [ 14 14 ./services.nix 15 15 ./hypridle.nix 16 - ./hyprlock.nix 17 16 ]; 18 17 config = { 19 18 catppuccin.hyprland.enable = c.enable;
+3 -1
homeModules/wayland/hyprland/hypridle.nix
··· 11 11 enable = false; 12 12 settings = { 13 13 general = { 14 - lock_cmd = "hyprlock"; 14 + lock_cmd = "loginctl lock-session"; 15 + before_sleep_cmd = "loginctl lock-session"; 16 + after_sleep_cmd = "hyprctl dispatch dpms on"; 15 17 }; 16 18 }; 17 19 };
-93
homeModules/wayland/hyprland/hyprlock.nix
··· 1 - { 2 - config, 3 - lib, 4 - ... 5 - }: 6 - let 7 - cfg = config.wayland.windowManager.hyprland; 8 - in 9 - { 10 - config.catppuccin.hyprlock.enable = cfg.enable; 11 - config.catppuccin.hyprlock.useDefaultConfig = false; 12 - config.programs.hyprlock = lib.mkIf cfg.enable { 13 - enable = true; 14 - settings = { 15 - general = { 16 - hide_cursor = true; 17 - immediate_render = true; 18 - text_trim = true; 19 - }; 20 - }; 21 - extraConfig = '' 22 - $accent = $mauve 23 - $accentAlpha = $mauveAlpha 24 - $font = Blex Mono Nerd Font 25 - 26 - # BACKGROUND 27 - background { 28 - monitor = 29 - path = $HOME/bgs/wallpapers/xenia/chimmie_valentine_xenia.png 30 - blur_passes = 1 31 - color = $base 32 - } 33 - 34 - # TIME 35 - label { 36 - monitor = 37 - text = $TIME 38 - color = $text 39 - font_size = 90 40 - font_family = $font 41 - position = -30, 0 42 - halign = right 43 - valign = top 44 - } 45 - 46 - # DATE 47 - label { 48 - monitor = 49 - text = cmd[update:43200000] date +"%A, %d %B %Y" 50 - color = $text 51 - font_size = 25 52 - font_family = $font 53 - position = -30, -150 54 - halign = right 55 - valign = top 56 - } 57 - 58 - # USER AVATAR 59 - image { 60 - monitor = 61 - path = $HOME/.face 62 - size = 100 63 - border_color = $accent 64 - position = 0, 75 65 - halign = center 66 - valign = center 67 - } 68 - 69 - # INPUT FIELD 70 - input-field { 71 - monitor = 72 - size = 300, 60 73 - outline_thickness = 4 74 - dots_size = 0.2 75 - dots_spacing = 0.2 76 - dots_center = true 77 - outer_color = $accent 78 - inner_color = $surface0 79 - font_color = $text 80 - fade_on_empty = false 81 - placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span> 82 - hide_input = false 83 - check_color = $accent 84 - fail_color = $red 85 - fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> 86 - capslock_color = $yellow 87 - position = 0, -47 88 - halign = center 89 - valign = center 90 - } 91 - ''; 92 - }; 93 - }
+8 -8
nixosModules/homes/thehedgehog-zaphod/caelestia-shell.json
··· 163 163 "timeouts": [ 164 164 { 165 165 "idleAction": "lock", 166 - "timeout": 180 166 + "timeout": 420 167 167 }, 168 168 { 169 169 "idleAction": "dpms off", 170 170 "returnAction": "dpms on", 171 - "timeout": 300 171 + "timeout": 600 172 172 }, 173 173 { 174 - "idleAction": ["systemctl", "suspend-then-hibernate"], 175 - "timeout": 600 174 + "idleAction": ["systemctl", "suspend"], 175 + "timeout": 900 176 176 } 177 177 ] 178 178 } ··· 221 221 "name": "Lock" 222 222 }, 223 223 { 224 - "command": ["systemctl", "suspend-then-hibernate"], 224 + "command": ["systemctl", "suspend"], 225 225 "dangerous": false, 226 - "description": "Suspend then hibernate", 226 + "description": "Suspend", 227 227 "enabled": true, 228 228 "icon": "bedtime", 229 229 "name": "Sleep" ··· 284 284 }, 285 285 "session": { 286 286 "commands": { 287 - "hibernate": ["systemctl", "hibernate"], 287 + "hibernate": ["systemctl", "suspend"], 288 288 "logout": ["loginctl", "terminate-user", ""], 289 289 "reboot": ["systemctl", "reboot"], 290 290 "shutdown": ["systemctl", "poweroff"] 291 291 }, 292 292 "dragThreshold": 30, 293 293 "enabled": true, 294 - "vimKeybinds": false 294 + "vimKeybinds": true 295 295 }, 296 296 "sidebar": { 297 297 "dragThreshold": 80,
-1
nixosModules/programs/hyprland/default.nix
··· 15 15 enable = true; 16 16 xwayland.enable = true; 17 17 }; 18 - programs.hyprlock.enable = cfg.enable; 19 18 }; 20 19 }