greeter config

This commit is contained in:
Keisuke Hirata 2026-01-10 18:21:38 +09:00
parent 69aefb5297
commit 0762ccc9bc
6 changed files with 43 additions and 11 deletions

View File

@ -25,11 +25,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1767437240, "lastModified": 1767606757,
"narHash": "sha256-OA0dBHhccdupFXp+/eaFfb8K1dQxk61in4aF5ITGVX8=", "narHash": "sha256-lCl9QyHHHG/lKkpZu9nhJ5ri30FUD66VWNMJp167wPY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1cfa305fba94468f665de1bd1b62dddf2e0cb012", "rev": "c4eabb884b01366f25c3f80823b12dd595ed603a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -55,11 +55,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1767116409, "lastModified": 1767379071,
"narHash": "sha256-5vKw92l1GyTnjoLzEagJy5V5mDFck72LiQWZSOnSicw=", "narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cad22e7d996aea55ecab064e84834289143e44a0", "rev": "fb7944c166a3b630f177938e478f0378e64ce108",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -50,6 +50,11 @@ let
"dconf write /org/gnome/desktop/interface/font-name 'Noto Sans Medium 11'" "dconf write /org/gnome/desktop/interface/font-name 'Noto Sans Medium 11'"
"dconf write /org/gnome/desktop/interface/monospace-font-name 'Noto Sans Mono Medium 11'" "dconf write /org/gnome/desktop/interface/monospace-font-name 'Noto Sans Mono Medium 11'"
]; ];
env = [
"XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_TYPE,wayland"
"XDG_SESSION_DESKTOP,Hyprland"
];
ecosystem.no_update_news = true; ecosystem.no_update_news = true;
@ -246,9 +251,6 @@ in
GTK_BACKEND = "wayland"; GTK_BACKEND = "wayland";
QT_QPA_PLATFORM = "wayland;xcb"; QT_QPA_PLATFORM = "wayland;xcb";
QT_QPA_PLATFORMTHEME = "qt5ct"; QT_QPA_PLATFORMTHEME = "qt5ct";
XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_DESKTOP = "Hyprland";
}; };
}; };
} }

View File

@ -6,6 +6,7 @@
wlrobs wlrobs
obs-backgroundremoval obs-backgroundremoval
obs-pipewire-audio-capture obs-pipewire-audio-capture
obs-shaderfilter
]; ];
}; };
} }

View File

@ -15,6 +15,7 @@
fishPlugins.z fishPlugins.z
bc bc
jq jq
tree
socat socat
acpi acpi
btrfs-progs btrfs-progs

View File

@ -1,10 +1,11 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
config.boot.kernelPackages.v4l2loopback
v4l-utils v4l-utils
ffmpeg ffmpeg
]; ];
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options v4l2loopback devices=2 video_nr=0,1 card_label="Scrcpy Source,OBS VirtualCamera" exclusive_caps=1 options v4l2loopback devices=2 video_nr=0,1 card_label="OBS Virtual Camera,Scrcpy Source" exclusive_caps=1
''; '';
} }

View File

@ -1,11 +1,34 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
rosePineHyprcursor = pkgs.callPackage ../../home-manager/hyprland/rose-pine-hyprcursor.nix { };
hyprGreetConf = pkgs.writeText "hyprland-greetd.conf" '' hyprGreetConf = pkgs.writeText "hyprland-greetd.conf" ''
monitor = DP-1, 5120x2880@60, 0x0, 2 monitor = DP-1, 5120x2880@60, 0x0, 2
monitor = DP-2, disable monitor = DP-2, disable
monitor = DP-3, disable monitor = DP-3, disable
env = HYPRCURSOR_THEME,rose-pine-hyprcursor
env = HYPRCURSOR_SIZE,24
env = XCURSOR_SIZE,24
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland"
general {
border_size = 0
}
animations {
enabled = false
}
misc {
force_default_wallpaper = false
disable_hyprland_logo = true
disable_splash_rendering = true
}
exec-once = ${config.programs.regreet.package or pkgs.regreet}/bin/regreet; hyprctl dispatch exit exec-once = ${config.programs.regreet.package or pkgs.regreet}/bin/regreet; hyprctl dispatch exit
''; '';
in in
@ -16,6 +39,10 @@ in
user = "greeter"; user = "greeter";
}; };
environment.systemPackages = [
rosePineHyprcursor
];
programs.regreet = { programs.regreet = {
# greetd を Hyprland で動かす # greetd を Hyprland で動かす
enable = true; enable = true;