Merge pull request #136474 from waldheinz/etc-file-source-to-store

nixos/etc: make sure local "source" files are imported to the store
launchpad/nixpkgs/master
Timothy DeHerrera 3 years ago committed by GitHub
commit 8c0e53465c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      nixos/modules/system/etc/etc.nix

@ -6,7 +6,9 @@ with lib;
let
etc' = filter (f: f.enable) (attrValues config.environment.etc);
# if the source is a local file, it should be imported to the store
localToStore = mapAttrs (name: value: if name == "source" then "${value}" else value);
etc' = map localToStore (filter (f: f.enable) (attrValues config.environment.etc));
etc = pkgs.runCommandLocal "etc" {
# This is needed for the systemd module

Loading…
Cancel
Save