Skip to content

Commit

Permalink
ags: add package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Mar 30, 2024
1 parent 345c42d commit e8718f3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 25 deletions.
1 change: 0 additions & 1 deletion configs/home/bricked/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
enable = true;
defaultEditor = true;
};
programs.bun.enable = true;

# Music
programs.spotify-player.enable = true;
Expand Down
11 changes: 6 additions & 5 deletions modules/home/ags/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ in {

nativeBuildInputs = with pkgs; [bun sass];
buildPhase = ''
# Copy assets
cp ${nixos-symbolic} ./assets/nixos-symbolic.svg
# Copy assets
cp ${nixos-symbolic} ./assets/nixos-symbolic.svg
# Build sass
sass ./style.scss style.css
# Build bun files
bun install
bun run build
# Build bun files
bun install
bun run build
'';

installPhase = ''
Expand All @@ -33,5 +33,6 @@ in {
'';
};
};
home.packages = with pkgs; [bun sass];
};
}
8 changes: 7 additions & 1 deletion modules/home/ags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
},
"scripts": {
"postinstall": "rm types; ln -s $HOME/.local/share/com.github.Aylur.ags/types types",
"build": "bun build ./config.ts --outfile ./config.js --external \"resource://*\" --external \"gi://*\""
"build": "bun build:bun & bun build:sass",
"build:bun": "bun build ./config.ts --outfile ./config.js --external \"resource://*\" --external \"gi://*\"",
"build:sass": "sass style.scss:style.css",
"watch": "bun watch:bun & bun watch:sass",
"watch:bun": "bun build:bun --watch",
"watch:sass": "bun build:sass --watch",
"start": "ags --config ./config.js"
}
}
17 changes: 0 additions & 17 deletions modules/home/bun/default.nix

This file was deleted.

1 change: 0 additions & 1 deletion modules/home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
./rofi
./kitty
./nixvim
./bun
./librewolf
./fastfetch
./spotify-player
Expand Down

0 comments on commit e8718f3

Please sign in to comment.