nixos-configs/modules/greetd/astal.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

{
2024-03-24 13:54:33 -04:00
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 = [
2024-03-24 13:54:33 -04:00
astal.homeManagerModules.default
../../home/theme
];
2024-03-24 13:54:33 -04:00
programs.astal.enable = true;
home = {
packages = [
hyprland
pkgs.bun
pkgs.dart-sass
pkgs.swww
pkgs.gtk3
pkgs.glib
];
file = {
2024-03-24 13:54:33 -04:00
".config/astal/.wallpaper".source = "${pkgs.dracula-theme}/wallpapers/waves.png";
2024-03-24 13:54:33 -04:00
".config/astal" = {
source = ../ags/astal;
recursive = true;
};
2024-03-24 13:54:33 -04:00
".config/astal/config.js".text =
/*
javascript
*/
''
import { transpileTypeScript } from './js/utils.js';
export default (await transpileTypeScript('greeter')).default;
'';
};
};
};
}