diff options
author | sefidel <contact@sefidel.net> | 2024-01-25 23:17:48 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-01-25 23:17:48 +0900 |
commit | 5c66657929eb515622e5882d7a7d84a5b0a41d09 (patch) | |
tree | aedd7794503dc7a0721f4daca36664b58a386b79 | |
parent | e11f13779db48127a1e6d5e1376beffae2f60d65 (diff) | |
download | nixrc-5c66657929eb515622e5882d7a7d84a5b0a41d09.tar.gz nixrc-5c66657929eb515622e5882d7a7d84a5b0a41d09.zip |
feat(nixos/kanata): configure nextcloud
-rw-r--r-- | nixos/kanata/configuration.nix | 7 | ||||
-rw-r--r-- | nixos/kanata/secrets/secrets.yaml | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/nixos/kanata/configuration.nix b/nixos/kanata/configuration.nix index 417e5f4..e19ee25 100644 --- a/nixos/kanata/configuration.nix +++ b/nixos/kanata/configuration.nix @@ -95,7 +95,7 @@ in powerManagement.cpuFreqGovernor = "ondemand"; sops.secrets.zfs-smol-key = { }; - # sops.secrets.nextcloud-admin-pass = { }; + sops.secrets.nextcloud-admin-pass = { owner = "nextcloud"; }; boot.kernel.sysctl."net.ipv4.ip_forward" = 1; boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1; @@ -112,6 +112,11 @@ in modules = { services.blocky.enable = true; + + services.nextcloud = { + enable = true; + secrets.admin-pass = config.sops.secrets.nextcloud-admin-pass.path; + }; }; # This option defines the first version of NixOS you have installed on this particular machine, diff --git a/nixos/kanata/secrets/secrets.yaml b/nixos/kanata/secrets/secrets.yaml index efe1b0f..91a3595 100644 --- a/nixos/kanata/secrets/secrets.yaml +++ b/nixos/kanata/secrets/secrets.yaml @@ -2,6 +2,7 @@ initrd-ssh-host-rsa-key: ENC[AES256_GCM,data:gSkUM4GGij4u+qdpjfA3JBtOhLpvhvXALmy initrd-ssh-host-ed25519-key: ENC[AES256_GCM,data:eD8UZZ6FnqT5tP+y1xDrtjKjl/DQLXEQs/a4snHoHKHbyNmH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fTrm7JoE9KadDKx2O4WLI=,tag:ofln+SgrhJm8BpKnVSngoQ==,type:str] sops: kms: [] gcp_kms: [] @@ -26,8 +27,8 @@ sops: YkRGS2ZBbm1keWpUQUFOWDRtTWZVa0EKc+lKEP0L/yoFLx6p1zbWfifPWc7Y9Qqh qccODSyHqzwdriHLxXuw9SCnF+SeA721te6+pDVhJj8vqv2UqHiATw== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-01-22T18:40:17Z" - mac: ENC[AES256_GCM,data:Bja0XWa7S/PeA+61AYWLyDkJyY7RUOakJl4xhtvWp854Ku5wTRM5hsAbdpvAeKRvNN9EoJI1ljeUihRXY3e1jlD3yElH7p9Bfs1Gb6J4rQ+hODf/vvCwVyyVhXFCU6PHjUhFiTuAyQdY9VecOTZj4Jx603DzoGU0VYvpXp9k7EU=,iv:u6pdlF7Fkw1khrZVvi/bMa3HRAcyXkPWYc0RO0PCSaQ=,tag:c3KRwyZHoIoX8BwvCuGypw==,type:str] + lastmodified: "2024-01-24T12:28:05Z" + mac: ENC[AES256_GCM,data:1rW3YkvwbHiupjT62XxQwLEEGo1dMJkSbFUOaLqMXaVxmCebMWkQLWh72xr+VPF4MVU8vgz9GVmZap2uQ3/y+xkkrshaUIvDM2iznTrAIKyK8I5jSvZYqz9zxRBd8SGrPvZXzwCziDAEgfiAO7Yz5N5Z7KopEREN0XmtjDb4uMk=,iv:EVRCIeyQI8Lz+wkB42nz++Z2AkONs6pd9gylCdogUOc=,tag:YhCLF0/mYKxuO6SoQlmoGw==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.8.1 |