mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
discocss: only generate css when provided
No need to generate a file with empty contents. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -50,6 +50,8 @@ in
|
||||
))
|
||||
];
|
||||
|
||||
xdg.configFile."discocss/custom.css".text = cfg.css;
|
||||
xdg.configFile."discocss/custom.css" = lib.mkIf (cfg.css != "") {
|
||||
text = cfg.css;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user