From 285a50ec6ea8904b8a91b8be586b60ff235e5909 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 18 Sep 2023 21:43:11 -0400 Subject: [PATCH] refactor --- nixos/nix.nix | 1 + nixos/server/harden.nix | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/nix.nix b/nixos/nix.nix index a7d8fcf..65c09a8 100644 --- a/nixos/nix.nix +++ b/nixos/nix.nix @@ -27,6 +27,7 @@ extra-platforms = lib.mkIf pkgs.stdenv.isDarwin "aarch64-darwin x86_64-darwin"; # Nullify the registry for purity. flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}''; + trusted-users = [ "root" flake.config.people.myself ]; }; }; } diff --git a/nixos/server/harden.nix b/nixos/server/harden.nix index 1755aa7..c1ab94a 100644 --- a/nixos/server/harden.nix +++ b/nixos/server/harden.nix @@ -28,5 +28,4 @@ }; }; nix.settings.allowed-users = [ "root" "@users" ]; - nix.settings.trusted-users = [ "root" flake.config.people.myself ]; }