wip: move various programs to nix

This commit is contained in:
DashieTM 2024-04-16 01:41:58 +02:00
parent 17a2a04b96
commit f4e8c1725a
65 changed files with 2460 additions and 2229 deletions

View file

@ -1,23 +1,49 @@
{pkgs,
config,
lib,
...
{ pkgs
, ...
}: {
# greetd display manager
services.greetd = let
session = {
command = "${pkgs.hyprland}/bin/Hyprland --config /home/dashie/.config/hypr/hyprgreet.conf";
user = "dashie";
services.greetd =
let
session = {
command = "${pkgs.hyprland}/bin/Hyprland --config /home/dashie/.config/hypr/hyprgreet.conf";
user = "dashie";
};
in
{
enable = true;
settings = {
terminal.vt = 1;
default_session = session;
initial_session = session;
};
};
in {
programs.regreet = {
enable = true;
settings = {
terminal.vt = 1;
default_session = session;
initial_session = session;
background = {
fit = "Contain";
};
env = {
QT_QPA_PLATFORMTHEME = "qt5ct";
PATH = "/home/dashie/.cargo/bin:PATH";
};
GTK = {
application_prefer_dark_theme = true;
cursor_theme_name = "Adwaita";
icon_theme_name = "Adwaita";
theme_name = "adw-gtk3";
command = {
reboot = [ "systemctl" "reboot" ];
poweroff = [ "systemctl" "poweroff" ];
};
};
};
};
programs.regreet.enable = true;
# unlock GPG keyring on login
security.pam.services.greetd.enableGnomeKeyring = true;