hyprland: add passwords

This commit is contained in:
makefu 2024-06-22 23:35:33 +02:00
parent 5499ebeaf5
commit e2a7457c2c
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
4 changed files with 93 additions and 9 deletions

View file

@ -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;
};
};

View file

@ -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 =

View file

@ -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

View file

@ -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";
};
};
}