ags: To derivation
This commit is contained in:
1 parent
290b694877
commit
e46c205fe3
15 files changed
+24
-5
No files matched your search
@@ -4,7 +4,7 @@
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
|
||||
configDir = ./ags;
|
||||
configDir = null;
|
||||
|
||||
extraPackages = with inputs.ags.packages.${pkgs.system}; [
|
||||
battery
|
||||
@@ -17,4 +17,6 @@
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
|
||||
|
||||
xdg.configFile."ags".source = (pkgs.callPackage ../packages/drvs/ags.nix { colors = config.lib.stylix.colors; });
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
$bg: #1e1e2e; // base00
|
||||
$surface0: #313244; // base02
|
||||
$fg: #cdd6f4; // base05
|
||||
$accent: #a6e3a1; // base0B
|
||||
@@ -0,0 +1,21 @@
|
||||
{ stdenv, lib, config, colors, ... }:
|
||||
stdenv.mkDerivation {
|
||||
name = "AGS theme";
|
||||
|
||||
src = ./ags;
|
||||
dontUnpack = true;
|
||||
|
||||
patchPhase = ''
|
||||
echo \$bg: \#${colors.base00}\; > colors.scss
|
||||
echo \$surface0: \#${colors.base02}\; >> colors.scss
|
||||
echo \$fg: \#${colors.base05}\; >> colors.scss
|
||||
echo \$accent: \#${colors.base0B}\; >> colors.scss
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ls
|
||||
mkdir $out
|
||||
cp $src/* $out -r
|
||||
mv colors.scss $out
|
||||
'';
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user