mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-05 16:33:12 +00:00
activationScripts: rewrite /etc/nixos with configuration source
This commit is contained in:
parent
c63b6b808c
commit
3f573e3dc3
|
@ -2,7 +2,6 @@
|
|||
{
|
||||
imports = [
|
||||
./variables-module.nix
|
||||
./files.nix
|
||||
./volumes.nix
|
||||
./users.nix
|
||||
./letsencrypt/acme.nix
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
nixos-config-source: { config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.selfprivacy;
|
||||
dnsCredentialsTemplates = {
|
||||
|
@ -29,6 +29,10 @@ in
|
|||
nixos-lustrate = ''
|
||||
rm -rf /old-root
|
||||
'';
|
||||
selfprivacy-nixos-configuration-source = ''
|
||||
rm -rf /etc/nixos/{*,.[!.]*}
|
||||
cp -r --no-preserve=all ${nixos-config-source}/ -T /etc/nixos/
|
||||
'';
|
||||
cloudflareCredentials = ''
|
||||
mkdir -p /var/lib/cloudflare
|
||||
chmod 0440 /var/lib/cloudflare
|
||||
|
|
Loading…
Reference in a new issue