diff --git a/2configs/gui/hyprland/autostart.nix b/2configs/gui/hyprland/autostart.nix new file mode 100644 index 0000000..c047713 --- /dev/null +++ b/2configs/gui/hyprland/autostart.nix @@ -0,0 +1,11 @@ +{ config, ... }: +let + mainUser = config.krebs.build.user.name; +in { + services.displayManager.sddm.enable = true; + services.displayManager.sddm.wayland.enable = true; + services.displayManager.autoLogin = { + enable = true; + user = mainUser; + }; +}; diff --git a/2configs/gui/hyprland/default.nix b/2configs/gui/hyprland/default.nix index 6145282..4ba8f81 100644 --- a/2configs/gui/hyprland/default.nix +++ b/2configs/gui/hyprland/default.nix @@ -4,9 +4,11 @@ let in { imports = [ ./kitty.nix - ./flameshot.nix + ./passwords.nix + ./autostart.nix ]; - # programs.hyprland.enable = true; + # autostart + programs.hyprland.enable = true; security.pam.services.hyprlock = {}; # security.pam.services.swaylock = {}; @@ -14,14 +16,69 @@ in { home.packages = with pkgs; [ dolphin wofi + grimblast # screenshot ]; programs.hyprlock.enable = true; + programs.hyprlock.settings = + { + general = { + disable_loading_bar = false; + grace = 10; + hide_cursor = true; + no_fade_in = false; + }; + + background = [ + { + path = "screenshot"; + blur_passes = 3; + blur_size = 8; + } + ]; + + input-field = [ + { + size = "200, 50"; + position = "0, -80"; + monitor = ""; + dots_center = true; + fade_on_empty = false; + font_color = "rgb(202, 211, 245)"; + inner_color = "rgb(91, 96, 120)"; + outer_color = "rgb(24, 25, 38)"; + outline_thickness = 5; + placeholder_text = ''Password...''; + shadow_passes = 2; + } + ]; + }; # programs.swaylock.enable = true; - services.hypridle.enable = true; + services.hypridle = { + enable = true; + settings = { + general = { + after_sleep_cmd = "hyprctl dispatch dpms on"; + ignore_dbus_inhibit = false; + lock_cmd = "hyprlock"; + }; + + listener = [ + { + timeout = 900; + on-timeout = "hyprlock"; + } + { + timeout = 1200; + on-timeout = "hyprctl dispatch dpms off"; + on-resume = "hyprctl dispatch dpms on"; + } + ]; + }; + }; programs.waybar.enable = true; - programs.waybar.systemd.enable = true; + # programs.waybar.systemd.enable = true; services.network-manager-applet.enable = true; home.pointerCursor = { @@ -34,10 +91,10 @@ in { wayland.windowManager.hyprland = { - enable = true; - extraConfig = builtins.readFile ./hyprland.conf; - xwayland.enable = true; - systemd.enable = true; + #enable = true; + # extraConfig = builtins.readFile ./hyprland.conf; + # xwayland.enable = true; + # systemd.enable = true; # settings = { # bind = diff --git a/2configs/gui/hyprland/hyprland.conf b/2configs/gui/hyprland/hyprland.conf index f8b7e16..b4a94b3 100644 --- a/2configs/gui/hyprland/hyprland.conf +++ b/2configs/gui/hyprland/hyprland.conf @@ -45,7 +45,9 @@ $menu = wofi --show drun # Or execute your favorite apps at launch like this: # exec-once = $terminal -# exec-once = nm-applet & +exec-once = nm-applet & +exec-once = waybar & +exec-once = flameshot & # exec-once = waybar & hyprpaper & firefox diff --git a/2configs/gui/hyprland/passwords.nix b/2configs/gui/hyprland/passwords.nix new file mode 100644 index 0000000..55d5ef4 --- /dev/null +++ b/2configs/gui/hyprland/passwords.nix @@ -0,0 +1,14 @@ +{ pkgs, config, ... }: +let + mainUser = config.krebs.build.user.name; +in { + # Terminal + home-manager.users.${mainUser} = { + services.ssh-agent.enable = true; + programs.rbw = { + enable = true; + settings.base_url = "bw.euer.krebsco.de"; + settings.email = "makefu@x"; + }; + }; +}