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
|
2024-06-27 00:56:27 -04:00
|
|
|
cfg = config.roles.desktop;
|
2024-06-24 12:30:49 -04:00
|
|
|
|
|
|
|
hyprland =
|
|
|
|
config
|
|
|
|
.home-manager
|
|
|
|
.users
|
2024-06-27 00:56:27 -04:00
|
|
|
.${cfg.user}
|
2024-06-24 12:30:49 -04:00
|
|
|
.wayland
|
|
|
|
.windowManager
|
|
|
|
.hyprland
|
|
|
|
.finalPackage;
|
2024-02-10 21:27:29 -05:00
|
|
|
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-06-27 00:56:27 -04:00
|
|
|
../home/theme
|
|
|
|
../home/wpaperd.nix
|
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
|
|
|
|
2024-04-21 14:57:38 -04:00
|
|
|
home.packages = [
|
|
|
|
hyprland
|
|
|
|
pkgs.bun
|
|
|
|
pkgs.dart-sass
|
|
|
|
pkgs.gtk3
|
|
|
|
pkgs.glib
|
|
|
|
];
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-04-21 14:57:38 -04:00
|
|
|
xdg.configFile = {
|
|
|
|
"astal" = {
|
2024-06-27 00:56:27 -04:00
|
|
|
source = ./astal;
|
2024-04-21 14:57:38 -04:00
|
|
|
recursive = true;
|
|
|
|
};
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-04-21 14:57:38 -04:00
|
|
|
"astal/config.js".text =
|
2024-06-09 22:49:30 -04:00
|
|
|
# javascript
|
2024-04-21 14:57:38 -04:00
|
|
|
''
|
|
|
|
import { transpileTypeScript } from './js/utils.js';
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-04-21 14:57:38 -04:00
|
|
|
Utils.execAsync('wpaperd -d');
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-04-21 14:57:38 -04:00
|
|
|
export default (await transpileTypeScript('greeter')).default;
|
|
|
|
'';
|
2024-02-10 21:27:29 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|