mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01: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:
parent
aa10fe094b
commit
f72f660976
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue