mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 21:23:38 +00:00
039f786e60
- Change generation behavior to always generate a configuration file and pass it explicitly to fnott, it enforces the module to be hermetic instead of offloading the configuration selection to heuristics. - Various style changes. - Fix issue where fnott would abort due to an invalid config file when both the configFile and settings options are unset. - Remove the empty-settings test as a configuration file is now already generated. Suggested-by: Robert Helgesson <robert@rycee.net>
16 lines
345 B
Nix
16 lines
345 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
services.fnott = {
|
|
enable = true;
|
|
package = pkgs.writeScriptBin "dummy-foot" "" // { outPath = "@fnott@"; };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/fnott.service \
|
|
${./systemd-user-service-expected.service}
|
|
'';
|
|
};
|
|
}
|