97 lines
2.6 KiB
Nix
Executable file
97 lines
2.6 KiB
Nix
Executable file
{ pkgs, primaryUser, homeDir, flakePath, ... }:
|
|
|
|
## Allows regreet to be bootstrapped by sway
|
|
let
|
|
swayConfig = pkgs.writeText "greetd-sway-config" ''
|
|
exec "${pkgs.regreet}/bin/regreet; swaymsg exit"
|
|
-t warning \
|
|
-m 'What do you want to do?' \
|
|
'';
|
|
in {
|
|
|
|
services = {
|
|
greetd = { # enables greetd native wayland display manager
|
|
enable = true;
|
|
#package = [ ];
|
|
restart = true;
|
|
settings = {
|
|
default_session = {
|
|
command =
|
|
"${pkgs.sway}/bin/sway --config ${swayConfig}"; # lets regreet(greetd) be bootstrapped by sway
|
|
user = "greeter"; # sets user to run under as "greeter"
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
environment = { # adds sway and fish environments to launch from regreet
|
|
etc."greetd/environments".text = ''
|
|
niri
|
|
sway
|
|
fish
|
|
'';
|
|
};
|
|
|
|
## ReGreet specific configuration and theme
|
|
programs.regreet = {
|
|
enable = true;
|
|
#package = [ ];
|
|
|
|
## Appearance
|
|
font = {
|
|
name = "Spleen-32x64";
|
|
size = 16;
|
|
package = pkgs.spleen;
|
|
};
|
|
iconTheme = {
|
|
name = "Flat-Remix-Grey-Darkest";
|
|
package = pkgs.flat-remix-icon-theme;
|
|
};
|
|
cursorTheme = {
|
|
name = "Bibata-Modern-Classic";
|
|
package = pkgs.bibata-cursors;
|
|
};
|
|
theme = {
|
|
name = "Colloid-Dark";
|
|
package = pkgs.colloid-gtk-theme;
|
|
};
|
|
#extraCss = '''';
|
|
settings = {
|
|
# Supposed to be toml, but idk how that works, apparently this is fine ?
|
|
# https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml
|
|
# https://github.com/NixOS/nixpkgs/issues/335082#issuecomment-2293304283
|
|
appearance = { # ... this is ALL appearance ? tf bruh
|
|
greeting_msg = "Welcome !";
|
|
};
|
|
background = {
|
|
path =
|
|
"${flakePath}/home/resources/wallpapers/attunement-HelveticaBlanc.png";
|
|
fit = "Cover";
|
|
};
|
|
GTK = { # why this shit needs to be declared twice i do not know
|
|
application_prefer_dark_theme = true;
|
|
cursor_theme_name = "Bibata-Modern-Classic";
|
|
font_name = "Spleen-32x64 16";
|
|
icon_theme_name = "Flat-Remix-Grey-Darkest";
|
|
theme_name = "Colloid-Dark";
|
|
};
|
|
widget.clock = {
|
|
format = "%a, %D %H:%M"; # Thursday 13/02/24, 01:36
|
|
resolution = "500ms";
|
|
timezone = "Australia/Brisbane";
|
|
label_width = 150; # will need adjustment
|
|
};
|
|
|
|
## Other
|
|
commands = {
|
|
reboot = [ "systemctl" "reboot" ];
|
|
poweroff = [ "systemctl" "poweroff" ];
|
|
};
|
|
env = { GTK_USE_PORTAL = "0"; };
|
|
};
|
|
cageArgs =
|
|
[ "-s" ]; # https://github.com/cage-kiosk/cage/blob/master/cage.1.scd
|
|
|
|
};
|
|
|
|
}
|