chore: toCSS returns a function

This commit is contained in:
Nydragon 2024-12-30 12:29:04 +01:00
parent 214b7df232
commit e047cc1f13
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
3 changed files with 4 additions and 7 deletions

View file

@ -5,14 +5,11 @@
... ...
}: }:
let let
toCSS = import ./tocss.nix; toCSS = import ./tocss.nix { inherit pkgs; };
in in
lib.mkIf config.programs.waybar.enable { lib.mkIf config.programs.waybar.enable {
programs.waybar = { programs.waybar = {
style = toCSS { style = toCSS ./style.scss;
inherit pkgs;
file = ./style.scss;
};
settings = { settings = {
main = import ./config.nix { inherit pkgs; }; main = import ./config.nix { inherit pkgs; };
}; };

View file

@ -1,4 +1,5 @@
{ pkgs, file, ... }: { pkgs, ... }:
file:
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "toCSS"; name = "toCSS";
buildCommand = '' buildCommand = ''

View file

@ -8,7 +8,6 @@ let
inherit (lib) mkOption; inherit (lib) mkOption;
in in
{ {
systemdHardening = { systemdHardening = {
IPAddressDeny = "any"; IPAddressDeny = "any";
NoNewPrivileges = true; NoNewPrivileges = true;