ags: To derivation
This commit is contained in:
parent
290b694877
commit
e46c205fe3
@ -4,7 +4,7 @@
|
|||||||
programs.ags = {
|
programs.ags = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
configDir = ./ags;
|
configDir = null;
|
||||||
|
|
||||||
extraPackages = with inputs.ags.packages.${pkgs.system}; [
|
extraPackages = with inputs.ags.packages.${pkgs.system}; [
|
||||||
battery
|
battery
|
||||||
@ -17,4 +17,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [ "ags run" ];
|
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
|
|
21
home-manager/packages/drvs/ags.nix
Normal file
21
home-manager/packages/drvs/ags.nix
Normal file
@ -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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user