nixos-configs/modules/greetd/astal.nix
matt1432 9698b40420
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: switch all mentions of flake dir to $FLAKE and fix vars readonly
2024-03-26 15:32:48 -04:00

54 lines
1.1 KiB
Nix

{
astal,
config,
pkgs,
...
}: let
inherit (config.vars) mainUser;
hyprland = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.finalPackage;
in {
# Add home folder for home-manager to work
users.users.greeter = {
home = "/var/lib/greeter";
createHome = true;
};
home-manager.users.greeter = {
imports = [
astal.homeManagerModules.default
../../home/theme
];
programs.astal.enable = true;
home = {
packages = [
hyprland
pkgs.bun
pkgs.dart-sass
pkgs.swww
pkgs.gtk3
pkgs.glib
];
file = {
".config/astal/.wallpaper".source = "${pkgs.dracula-theme}/wallpapers/waves.png";
".config/astal" = {
source = ../ags/astal;
recursive = true;
};
".config/astal/config.js".text =
/*
javascript
*/
''
import { transpileTypeScript } from './js/utils.js';
export default (await transpileTypeScript('greeter')).default;
'';
};
};
};
}