This commit is contained in:
root 2025-11-04 11:31:52 +00:00
parent e856c0dfb1
commit 766f143e51
6 changed files with 23 additions and 28 deletions

View file

@ -6,8 +6,7 @@ let
systems = [system];
all = users ++ systems;
in
{
in {
"bind_pw".publicKeys = all;
"nextcloud-admin-pass".publicKeys = all;
"vaultwarden.env".publicKeys = all;

View file

@ -1,5 +1,4 @@
{ config, ... }:
{
{config, ...}: {
mailserver = {
enable = true;
fqdn = "distrust.network";

View file

@ -1,9 +1,7 @@
{ config, ... }:
let
{config, ...}: let
vaultPort = 8222;
onionUrl = "http://gfoqwlo4nmhcywzzyhfanhkf7hz64lkjayngfyrpbd7ohaucu3q4znqd.onion";
in
{
in {
age.secrets."vaultwarden.env".file = ../secrets/vaultwarden.env;
services.vaultwarden = {

View file

@ -1,10 +1,9 @@
{pkgs, ...}:
let updateScript = pkgs.writeShellScriptBin "rebuild" ''
{pkgs, ...}: let
updateScript = pkgs.writeShellScriptBin "rebuild" ''
#!/bin/sh
nixos-rebuild switch --flake /etc/nixos#distrust --impure
'';
in
{
in {
environment.systemPackages = with pkgs; [vim btop git alejandra statix deadnix] ++ [updateScript];
nix.settings.experimental-features = ["nix-command" "flakes"];