2024-02-10 21:27:29 -05:00
|
|
|
{
|
2024-03-24 13:54:33 -04:00
|
|
|
astal,
|
2024-02-10 21:27:29 -05:00
|
|
|
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
|
2024-03-11 12:23:15 -04:00
|
|
|
../../home/theme
|
2024-02-10 21:27:29 -05:00
|
|
|
];
|
|
|
|
|
2024-03-24 13:54:33 -04:00
|
|
|
programs.astal.enable = true;
|
2024-02-10 21:27:29 -05:00
|
|
|
|
|
|
|
home = {
|
|
|
|
packages = [
|
|
|
|
hyprland
|
|
|
|
pkgs.bun
|
2024-03-06 15:44:25 -05:00
|
|
|
pkgs.dart-sass
|
2024-02-10 21:27:29 -05:00
|
|
|
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-02-10 21:27:29 -05:00
|
|
|
|
2024-03-24 13:54:33 -04:00
|
|
|
".config/astal" = {
|
|
|
|
source = ../ags/astal;
|
2024-02-10 21:27:29 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
|
2024-03-24 13:54:33 -04:00
|
|
|
".config/astal/config.js".text =
|
2024-02-10 21:27:29 -05:00
|
|
|
/*
|
|
|
|
javascript
|
|
|
|
*/
|
|
|
|
''
|
|
|
|
import { transpileTypeScript } from './js/utils.js';
|
|
|
|
|
|
|
|
export default (await transpileTypeScript('greeter')).default;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|