niri: disable desktop stuff for server
This commit is contained in:
parent
cddca4ee54
commit
82f7af3856
3 changed files with 120 additions and 107 deletions
|
|
@ -1,27 +1,29 @@
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.cholli =
|
flake.modules.homeManager.cholli =
|
||||||
{ ... }:
|
{ lib, osConfig, ... }:
|
||||||
{
|
{
|
||||||
services.hypridle = {
|
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {
|
||||||
enable = true;
|
services.hypridle = {
|
||||||
settings = {
|
enable = true;
|
||||||
general = {
|
settings = {
|
||||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
general = {
|
||||||
ignore_dbus_inhibit = false;
|
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||||
lock_cmd = "hyprlock-blur";
|
ignore_dbus_inhibit = false;
|
||||||
};
|
lock_cmd = "hyprlock-blur";
|
||||||
|
};
|
||||||
|
|
||||||
listener = [
|
listener = [
|
||||||
{
|
{
|
||||||
timeout = 600;
|
timeout = 600;
|
||||||
on-timeout = "loginctl lock-session";
|
on-timeout = "loginctl lock-session";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 1200;
|
timeout = 1200;
|
||||||
on-timeout = "hyprctl dispatch dpms off";
|
on-timeout = "hyprctl dispatch dpms off";
|
||||||
on-resume = "hyprctl dispatch dpms on";
|
on-resume = "hyprctl dispatch dpms on";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,91 +25,99 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManager.cholli =
|
homeManager.cholli =
|
||||||
{ inputs, pkgs, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
hyprlock-package = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
|
hyprlock-package = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.hyprlock = {
|
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {
|
||||||
enable = true;
|
programs.hyprlock = {
|
||||||
package = hyprlock-package;
|
enable = true;
|
||||||
settings = {
|
package = hyprlock-package;
|
||||||
# inspiration from https://github.com/justinmdickey/publicdots/blob/main/.config/hypr/hyprlock.conf
|
settings = {
|
||||||
background = [
|
# inspiration from https://github.com/justinmdickey/publicdots/blob/main/.config/hypr/hyprlock.conf
|
||||||
{
|
background = [
|
||||||
|
{
|
||||||
|
monitor = "DP-1";
|
||||||
|
path = "/tmp/screenshot1.png";
|
||||||
|
|
||||||
|
blur_passes = 1; # 0 disables blurring
|
||||||
|
blur_size = 7;
|
||||||
|
noise = 1.17e-2;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
monitor = "HDMI-A-1";
|
||||||
|
path = "/tmp/screenshot2.png";
|
||||||
|
|
||||||
|
blur_passes = 2; # 0 disables blurring
|
||||||
|
blur_size = 7;
|
||||||
|
noise = 1.17e-2;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
label = [
|
||||||
|
{
|
||||||
|
monitor = "DP-1";
|
||||||
|
text = "$TIME";
|
||||||
|
color = "rgba(242, 243, 244, 0.75)";
|
||||||
|
font_size = 95;
|
||||||
|
font_family = "JetBrains Mono";
|
||||||
|
position = "0, 300";
|
||||||
|
halign = "center";
|
||||||
|
valign = "center";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
|
||||||
|
monitor = "DP-1";
|
||||||
|
text = ''cmd[update:1000] echo $(date +"%A, %B %d")'';
|
||||||
|
color = "rgba(242, 243, 244, 0.75)";
|
||||||
|
font_size = 22;
|
||||||
|
font_family = "JetBrains Mono";
|
||||||
|
position = "0, 200";
|
||||||
|
halign = "center";
|
||||||
|
valign = "center";
|
||||||
|
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
image = {
|
||||||
monitor = "DP-1";
|
monitor = "DP-1";
|
||||||
path = "/tmp/screenshot1.png";
|
path = "/home/cholli/Pictures/profile.png";
|
||||||
|
|
||||||
blur_passes = 1; # 0 disables blurring
|
position = "0, 50";
|
||||||
blur_size = 7;
|
|
||||||
noise = 1.17e-2;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
monitor = "HDMI-A-1";
|
|
||||||
path = "/tmp/screenshot2.png";
|
|
||||||
|
|
||||||
blur_passes = 2; # 0 disables blurring
|
|
||||||
blur_size = 7;
|
|
||||||
noise = 1.17e-2;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
label = [
|
|
||||||
{
|
|
||||||
monitor = "DP-1";
|
|
||||||
text = "$TIME";
|
|
||||||
color = "rgba(242, 243, 244, 0.75)";
|
|
||||||
font_size = 95;
|
|
||||||
font_family = "JetBrains Mono";
|
|
||||||
position = "0, 300";
|
|
||||||
halign = "center";
|
halign = "center";
|
||||||
valign = "center";
|
valign = "center";
|
||||||
}
|
};
|
||||||
{
|
|
||||||
|
|
||||||
|
input-field = {
|
||||||
monitor = "DP-1";
|
monitor = "DP-1";
|
||||||
text = ''cmd[update:1000] echo $(date +"%A, %B %d")'';
|
size = "200,50";
|
||||||
color = "rgba(242, 243, 244, 0.75)";
|
outline_thickness = 2;
|
||||||
font_size = 22;
|
dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
|
||||||
font_family = "JetBrains Mono";
|
dots_spacing = 0.35; # Scale of dots' absolute size, 0.0 - 1.0
|
||||||
position = "0, 200";
|
dots_center = true;
|
||||||
|
outer_color = "rgba(0, 0, 0, 0)";
|
||||||
|
inner_color = "rgba(0, 0, 0, 0.2)";
|
||||||
|
font_color = "rgb(111, 45, 104)";
|
||||||
|
fade_on_empty = false;
|
||||||
|
rounding = -1;
|
||||||
|
check_color = "rgb(30, 107, 204)";
|
||||||
|
placeholder_text = ''<i><span foreground="##cdd6f4">Input Password...</span></i>'';
|
||||||
|
hide_input = false;
|
||||||
|
position = "0, -100";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
valign = "center";
|
valign = "center";
|
||||||
|
};
|
||||||
|
|
||||||
}
|
general = {
|
||||||
];
|
auth_method = "pam";
|
||||||
|
};
|
||||||
image = {
|
|
||||||
monitor = "DP-1";
|
|
||||||
path = "/home/cholli/Pictures/profile.png";
|
|
||||||
|
|
||||||
position = "0, 50";
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
};
|
|
||||||
|
|
||||||
input-field = {
|
|
||||||
monitor = "DP-1";
|
|
||||||
size = "200,50";
|
|
||||||
outline_thickness = 2;
|
|
||||||
dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
|
|
||||||
dots_spacing = 0.35; # Scale of dots' absolute size, 0.0 - 1.0
|
|
||||||
dots_center = true;
|
|
||||||
outer_color = "rgba(0, 0, 0, 0)";
|
|
||||||
inner_color = "rgba(0, 0, 0, 0.2)";
|
|
||||||
font_color = "rgb(111, 45, 104)";
|
|
||||||
fade_on_empty = false;
|
|
||||||
rounding = -1;
|
|
||||||
check_color = "rgb(30, 107, 204)";
|
|
||||||
placeholder_text = ''<i><span foreground="##cdd6f4">Input Password...</span></i>'';
|
|
||||||
hide_input = false;
|
|
||||||
position = "0, -100";
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
};
|
|
||||||
|
|
||||||
general = {
|
|
||||||
auth_method = "pam";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,29 @@
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.cholli =
|
flake.modules.homeManager.cholli =
|
||||||
{ ... }:
|
{ lib, osConfig, ... }:
|
||||||
let
|
let
|
||||||
picture-path = "/home/cholli/Pictures/firewatch.jpg";
|
picture-path = "/home/cholli/Pictures/firewatch.jpg";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.file = {
|
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {
|
||||||
# https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
|
|
||||||
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
home.file = {
|
||||||
''hyprctl hyprpaper wallpaper "DP-1,${picture-path}"''
|
# https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
|
||||||
];
|
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
|
||||||
|
|
||||||
services.hyprpaper = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
preload = [ picture-path ];
|
|
||||||
wallpaper = "DP-1,${picture-path}";
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
''hyprctl hyprpaper wallpaper "DP-1,${picture-path}"''
|
||||||
|
];
|
||||||
|
|
||||||
|
services.hyprpaper = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
preload = [ picture-path ];
|
||||||
|
wallpaper = "DP-1,${picture-path}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue