diff --git a/flake.lock b/flake.lock index 7c1cbd4..7581c2b 100644 --- a/flake.lock +++ b/flake.lock @@ -280,6 +280,22 @@ "type": "github" } }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1716655032, + "narHash": "sha256-kQ25DAiCGigsNR/Quxm3v+JGXAEXZ8I7RAF4U94bGzE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "59a450646ec8ee0397f5fa54a08573e8240eb91f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "release-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, "nixvim": { "inputs": { "devshell": "devshell", @@ -347,7 +363,29 @@ "home-manager": "home-manager", "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs", - "nixvim": "nixvim" + "nixvim": "nixvim", + "sops-nix": "sops-nix" + } + }, + "sops-nix": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "nixpkgs-stable": "nixpkgs-stable" + }, + "locked": { + "lastModified": 1716692524, + "narHash": "sha256-sALodaA7Zkp/JD6ehgwc0UCBrSBfB4cX66uFGTsqeFU=", + "owner": "mic92", + "repo": "sops-nix", + "rev": "962797a8d7f15ed7033031731d0bb77244839960", + "type": "github" + }, + "original": { + "owner": "mic92", + "repo": "sops-nix", + "type": "github" } }, "systems": { diff --git a/flake.nix b/flake.nix index 5696250..ea99242 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-compat.follows = "flake-compat"; - inputs.home-manager.follows="home-manager"; + inputs.home-manager.follows = "home-manager"; }; disko = { @@ -36,14 +36,21 @@ inputs.flake-compat.follows = "flake-compat"; }; -# just for follows statements + #https://unmovedcentre.com/technology/2024/03/22/secrets-management.html + sops-nix = { + url = "github:mic92/sops-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + # just for follows statements flake-utils.url = "github:numtide/flake-utils"; - flake-compat.url="github:edolstra/flake-compat"; + flake-compat.url = "github:edolstra/flake-compat"; }; outputs = { self, nixpkgs, + deploy-rs, ... } @ inputs: let inherit (self) outputs; @@ -61,6 +68,10 @@ default = pkgs.mkShell { packages = with pkgs; [ just + deploy-rs.packages.${system}.deploy-rs + age + ssh-to-age + sops ]; }; }