2025-12-25
This commit is contained in:
@@ -8,6 +8,6 @@
|
||||
./sound.nix
|
||||
|
||||
./uwsm.nix
|
||||
./regreet.nix
|
||||
./greeter.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
noto-fonts-color-emoji
|
||||
ibm-plex
|
||||
];
|
||||
fontconfig = {
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
hyprGreetConf = pkgs.writeText "hyprland-greetd.conf" ''
|
||||
monitor = DP-1, 5120x2880@60, 0x0, 2
|
||||
|
||||
monitor = DP-2, disable
|
||||
monitor = DP-3, disable
|
||||
|
||||
exec-once = ${config.programs.regreet.package or pkgs.regreet}/bin/regreet; hyprctl dispatch exit
|
||||
'';
|
||||
in
|
||||
{
|
||||
services.greetd.enable = true;
|
||||
services.greetd.settings.default_session = {
|
||||
command = "${pkgs.hyprland}/bin/Hyprland --config ${hyprGreetConf}";
|
||||
user = "greeter";
|
||||
};
|
||||
|
||||
programs.regreet = {
|
||||
# greetd を Hyprland で動かす
|
||||
enable = true;
|
||||
theme.name = "Adwaita-dark";
|
||||
iconTheme.name = "Papirus-Dark";
|
||||
cursorTheme.name = "Bibata-Modern-Ice";
|
||||
settings = {
|
||||
appearance = {
|
||||
greeting_msg = "Welcome back!";
|
||||
};
|
||||
widget = {
|
||||
clock = {
|
||||
format = "%H:%M";
|
||||
resolution = "100ms";
|
||||
timezone = "Asia/Tokyo";
|
||||
label_width = 150;
|
||||
};
|
||||
};
|
||||
GTK = {
|
||||
application_prefer_dark_theme = true;
|
||||
};
|
||||
background = {
|
||||
path = "/usr/share/wallpaper/arknights-image-01.png";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
settings = {
|
||||
appearance = {
|
||||
greeting_msg = "Welcome back!";
|
||||
};
|
||||
widget = {
|
||||
clock = {
|
||||
format = "%H:%M";
|
||||
resolution = "100ms";
|
||||
timezone = "Asia/Tokyo";
|
||||
label_width = 150;
|
||||
};
|
||||
};
|
||||
GTK = {
|
||||
application_prefer_dark_theme = true;
|
||||
};
|
||||
background = {
|
||||
path = "/usr/share/wallpaper/arknights-image-01.png";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user