From b22481d03a686f59ee2a2dbba5ee4ff7b10c6594 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 17 Jun 2020 18:29:20 +0200 Subject: etc: allow replacing files with known content This enables replacing existing system files like /etc/bashrc by default while keeping the safer behaviour for other files like /etc/passwd, etc. that could potentially cause major problems for the system when replaced. --- modules/lib/write-text.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/lib') diff --git a/modules/lib/write-text.nix b/modules/lib/write-text.nix index 7719a23..ddf4076 100644 --- a/modules/lib/write-text.nix +++ b/modules/lib/write-text.nix @@ -44,6 +44,12 @@ in Path of the source file. ''; }; + + knownSha256Hashes = mkOption { + internal = true; + type = types.listOf types.str; + default = []; + }; }; config = { -- cgit v1.2.3