added sops tools in prep for using secrets.
This commit is contained in:
		
							parent
							
								
									c51bc50d88
								
							
						
					
					
						commit
						322788aa3a
					
				
					 2 changed files with 53 additions and 4 deletions
				
			
		
							
								
								
									
										40
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										40
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -280,6 +280,22 @@
 | 
				
			||||||
        "type": "github"
 | 
					        "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": {
 | 
					    "nixvim": {
 | 
				
			||||||
      "inputs": {
 | 
					      "inputs": {
 | 
				
			||||||
        "devshell": "devshell",
 | 
					        "devshell": "devshell",
 | 
				
			||||||
| 
						 | 
					@ -347,7 +363,29 @@
 | 
				
			||||||
        "home-manager": "home-manager",
 | 
					        "home-manager": "home-manager",
 | 
				
			||||||
        "nixos-wsl": "nixos-wsl",
 | 
					        "nixos-wsl": "nixos-wsl",
 | 
				
			||||||
        "nixpkgs": "nixpkgs",
 | 
					        "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": {
 | 
					    "systems": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
					@ -21,7 +21,7 @@
 | 
				
			||||||
      url = "github:nix-community/nixvim";
 | 
					      url = "github:nix-community/nixvim";
 | 
				
			||||||
      inputs.nixpkgs.follows = "nixpkgs";
 | 
					      inputs.nixpkgs.follows = "nixpkgs";
 | 
				
			||||||
      inputs.flake-compat.follows = "flake-compat";
 | 
					      inputs.flake-compat.follows = "flake-compat";
 | 
				
			||||||
      inputs.home-manager.follows="home-manager";
 | 
					      inputs.home-manager.follows = "home-manager";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    disko = {
 | 
					    disko = {
 | 
				
			||||||
| 
						 | 
					@ -36,14 +36,21 @@
 | 
				
			||||||
      inputs.flake-compat.follows = "flake-compat";
 | 
					      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-utils.url = "github:numtide/flake-utils";
 | 
				
			||||||
    flake-compat.url="github:edolstra/flake-compat";
 | 
					    flake-compat.url = "github:edolstra/flake-compat";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  outputs = {
 | 
					  outputs = {
 | 
				
			||||||
    self,
 | 
					    self,
 | 
				
			||||||
    nixpkgs,
 | 
					    nixpkgs,
 | 
				
			||||||
 | 
					    deploy-rs,
 | 
				
			||||||
    ...
 | 
					    ...
 | 
				
			||||||
  } @ inputs: let
 | 
					  } @ inputs: let
 | 
				
			||||||
    inherit (self) outputs;
 | 
					    inherit (self) outputs;
 | 
				
			||||||
| 
						 | 
					@ -61,6 +68,10 @@
 | 
				
			||||||
        default = pkgs.mkShell {
 | 
					        default = pkgs.mkShell {
 | 
				
			||||||
          packages = with pkgs; [
 | 
					          packages = with pkgs; [
 | 
				
			||||||
            just
 | 
					            just
 | 
				
			||||||
 | 
					            deploy-rs.packages.${system}.deploy-rs
 | 
				
			||||||
 | 
					            age
 | 
				
			||||||
 | 
					            ssh-to-age
 | 
				
			||||||
 | 
					            sops
 | 
				
			||||||
          ];
 | 
					          ];
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue