commit 6ef413cb2f00a99aef03b869d787429ffebcec2e
parent 99f4044adb706f1969a20a0c60964d6d48a639ad
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 9 Aug 2023 20:57:40 +0200
Try another way to read file
Diffstat:
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/flake.nix b/flake.nix
@@ -60,8 +60,6 @@
# These are usually stuff you would upstream into home-manager
homeManagerModules = import ./modules/home-manager;
- sops = sops-nix.nixosModules.sops;
-
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
@@ -69,7 +67,7 @@
specialArgs = { inherit inputs outputs; };
modules = [
# > Our main nixos configuration file <
- sops
+ sops-nix.nixosModules.sops
./nixos/worker-1/configuration.nix
];
};
@@ -83,7 +81,6 @@
extraSpecialArgs = { inherit inputs outputs; };
modules = [
# > Our main home-manager configuration file <
- sops
./home-manager/home.nix
];
};
diff --git a/home-manager/home.nix b/home-manager/home.nix
@@ -51,7 +51,7 @@
# home.packages = with pkgs; [ steam ];
home.file.".ssh/allowed_signers".text =
- "* ${builtins.readFile config.sops.secrets."ssh/root/id_ed25519_pub".path}";
+ "* ${builtins.readFile ~/.ssh/id_ed25519.pub}";
# Enable home-manager and git
programs = {