mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
f3fd89af54
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ pkgs, lib, config, ... }:
|
|
let
|
|
homeCfgs = config.home-manager.users;
|
|
homePaths = lib.mapAttrsToList (n: v: "${v.home.path}/share") homeCfgs;
|
|
extraDataPaths = lib.concatStringsSep ":" homePaths;
|
|
vars = ''XDG_DATA_DIRS="$XDG_DATA_DIRS:${extraDataPaths}"'';
|
|
|
|
sway-kiosk = command: "${pkgs.sway}/bin/sway --config ${pkgs.writeText "kiosk.config" ''
|
|
output * bg #000000 solid_color
|
|
exec "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"
|
|
xwayland disable
|
|
input "type:touchpad" {
|
|
tap enabled
|
|
}
|
|
exec '${vars} ${command} -l debug; ${pkgs.sway}/bin/swaymsg exit'
|
|
''}";
|
|
|
|
misterioCfg = homeCfgs.misterio;
|
|
in
|
|
{
|
|
users.extraUsers.greeter.packages = [
|
|
misterioCfg.gtk.theme.package
|
|
misterioCfg.gtk.iconTheme.package
|
|
];
|
|
|
|
programs.regreet = {
|
|
enable = true;
|
|
settings = {
|
|
GTK = {
|
|
icon_theme_name = "ePapirus";
|
|
theme_name = misterioCfg.gtk.theme.name;
|
|
};
|
|
background = {
|
|
path = misterioCfg.wallpaper;
|
|
fit = "Cover";
|
|
};
|
|
};
|
|
};
|
|
services.greetd = {
|
|
enable = true;
|
|
settings.default_session.command = sway-kiosk (lib.getExe config.programs.regreet.package);
|
|
};
|
|
}
|