From 12cf6b23716d794adbe43421ec3aea70b6803989 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Tue, 9 Jul 2024 13:26:18 -0400 Subject: [PATCH] devShell stuff and sops --- .envrc | 2 +- modules/sops.nix | 2 -- outputs.nix | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.envrc b/.envrc index 3550a30..bc49353 100644 --- a/.envrc +++ b/.envrc @@ -1 +1 @@ -use flake +use flake .# diff --git a/modules/sops.nix b/modules/sops.nix index fe94cb5..954bf5e 100644 --- a/modules/sops.nix +++ b/modules/sops.nix @@ -1,5 +1,4 @@ { - pkgs, config, lib, sops-nix, @@ -9,7 +8,6 @@ imports = [ sops-nix.nixosModules.sops ]; options.local.sops.disable = lib.mkEnableOption ""; config = lib.mkIf (!config.local.sops.disable) { - environment.systemPackages = [ pkgs.sops ]; sops = { defaultSopsFile = "${self'}/hosts/${config.networking.hostName}/secrets.yaml"; age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; diff --git a/outputs.nix b/outputs.nix index c1d38db..c2f9b06 100644 --- a/outputs.nix +++ b/outputs.nix @@ -19,7 +19,7 @@ lib.gerg-utils (s: unstable.legacyPackages.${s}) { formatter = pkgs: inputs.self.packages.${pkgs.stdenv.system}.lint; - devShells = pkgs: { default = pkgs.mkShell { packages = [ pkgs.sops pkgs.hello ]; }; }; + devShells = pkgs: { default = pkgs.mkShellNoCC { packages = [ pkgs.sops ]; }; }; packages = lib.mkPackages "${self}/packages"; }