devShell stuff and sops

This commit is contained in:
Gerg-L 2024-07-09 13:26:18 -04:00
parent 4856ba7e81
commit 12cf6b2371
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
3 changed files with 2 additions and 4 deletions

2
.envrc
View file

@ -1 +1 @@
use flake use flake .#

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
lib, lib,
sops-nix, sops-nix,
@ -9,7 +8,6 @@
imports = [ sops-nix.nixosModules.sops ]; imports = [ sops-nix.nixosModules.sops ];
options.local.sops.disable = lib.mkEnableOption ""; options.local.sops.disable = lib.mkEnableOption "";
config = lib.mkIf (!config.local.sops.disable) { config = lib.mkIf (!config.local.sops.disable) {
environment.systemPackages = [ pkgs.sops ];
sops = { sops = {
defaultSopsFile = "${self'}/hosts/${config.networking.hostName}/secrets.yaml"; defaultSopsFile = "${self'}/hosts/${config.networking.hostName}/secrets.yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];

View file

@ -19,7 +19,7 @@ lib.gerg-utils (s: unstable.legacyPackages.${s}) {
formatter = pkgs: inputs.self.packages.${pkgs.stdenv.system}.lint; 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"; packages = lib.mkPackages "${self}/packages";
} }