nixos-configs/modules/desktop/display-manager/astal.nix
matt1432 35645b93a6
All checks were successful
Discord / discord commits (push) Has been skipped
feat(desktop): wpaperd -> hyprpaper
2024-07-06 03:07:47 -04:00

59 lines
1,006 B
Nix

{
astal,
config,
pkgs,
...
}: let
cfg = config.roles.desktop;
hyprland =
config
.home-manager
.users
.${cfg.user}
.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
../home/hyprpaper.nix
];
programs.astal.enable = true;
home.packages = [
hyprland
pkgs.bun
pkgs.dart-sass
pkgs.gtk3
pkgs.glib
];
xdg.configFile = {
"astal" = {
source = ./astal;
recursive = true;
};
"astal/config.js".text =
# javascript
''
import { transpileTypeScript } from './js/utils.js';
Utils.execAsync('hyprpaper');
export default (await transpileTypeScript('greeter')).default;
'';
};
};
}