refactor(ags): migrate to options module

This commit is contained in:
Michael Thomas 2024-06-27 08:10:44 -04:00
parent e23da5d12c
commit 7ed2e62180
4 changed files with 47 additions and 32 deletions

45
nixos/ags/home.nix Normal file
View File

@ -0,0 +1,45 @@
{
inputs,
pkgs,
lib,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.my.ags;
in {
imports = [inputs.ags.homeManagerModules.default];
options.my.ags = {
enable = mkEnableOption "ags";
};
config = mkIf cfg.enable {
programs.ags = {
enable = true;
extraPackages = with pkgs; [
bun
which
fzf
# inputs.matugen.packages.${system}.default
slurp
wf-recorder
wl-clipboard
wayshot
swappy
hyprpicker
pavucontrol
networkmanager
gtk3
];
};
home.packages = with pkgs; [
brightnessctl
fd
dart-sass
swww
];
};
}

View File

@ -17,6 +17,7 @@ in {
};
config = mkIf cfg.enable {
my.ags.enable = true;
my.wofi.enable = true;
home.packages = with pkgs; [
@ -47,6 +48,7 @@ in {
};
exec-once = [
"hyprctl setcursor Adwaita 24"
"ags"
"swaybg -i /home/michael/Photos/wallpaper.jpg"
"hypridle"
];

View File

@ -1,6 +1,5 @@
{
imports = [
../../modules/ags
../../modules/dev.nix
../../modules/firefox.nix
../../modules/fonts.nix

View File

@ -1,31 +0,0 @@
{
inputs,
pkgs,
...
}: {
imports = [inputs.ags.homeManagerModules.default];
programs.ags = {
enable = true;
extraPackages = with pkgs; [
bun
which
dart-sass
fd
fzf
brightnessctl
swww
# inputs.matugen.packages.${system}.default
slurp
wf-recorder
wl-clipboard
wayshot
swappy
hyprpicker
pavucontrol
networkmanager
gtk3
];
};
}