summaryrefslogtreecommitdiff
path: root/modules/lib
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2020-06-17 18:29:20 +0200
committerDaiderd Jordan <daiderd@gmail.com>2020-06-17 19:23:31 +0200
commitb22481d03a686f59ee2a2dbba5ee4ff7b10c6594 (patch)
tree3c3ab7d187f30a6a5d88d0199ff21f03ae18bd8d /modules/lib
parent2d6479b72e06ae4cbd34562bae753deeef9e24c8 (diff)
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.
Diffstat (limited to 'modules/lib')
-rw-r--r--modules/lib/write-text.nix6
1 files changed, 6 insertions, 0 deletions
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 = {