nixos-configs/modules/greetd/astal.nix
matt1432 3f0d4bb691
All checks were successful
Discord / discord commits (push) Has been skipped
feat(greetd): use astal instead of ags
2024-03-24 13:54:33 -04:00

58 lines
1.2 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
../../common/vars
../../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;
'';
};
};
vars = config.vars;
home.stateVersion = "24.05";
};
}