mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
devShell stuff and sops
This commit is contained in:
parent
4856ba7e81
commit
12cf6b2371
3 changed files with 2 additions and 4 deletions
2
.envrc
2
.envrc
|
|
@ -1 +1 @@
|
|||
use flake
|
||||
use flake .#
|
||||
|
|
|
|||
|
|
@ -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" ];
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue