fully added laptop to nix-secrets.
This commit is contained in:
		
							parent
							
								
									8c552faa1b
								
							
						
					
					
						commit
						6f5169947a
					
				
					 5 changed files with 9 additions and 33 deletions
				
			
		| 
						 | 
					@ -1,22 +0,0 @@
 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  config,
 | 
					 | 
				
			||||||
  pkgs,
 | 
					 | 
				
			||||||
  lib,
 | 
					 | 
				
			||||||
  inputs,
 | 
					 | 
				
			||||||
  ...
 | 
					 | 
				
			||||||
}: let
 | 
					 | 
				
			||||||
  secretsPath = builtins.toString inputs.nix-secrets;
 | 
					 | 
				
			||||||
in {
 | 
					 | 
				
			||||||
  imports = [
 | 
					 | 
				
			||||||
    inputs.sops-nix.homeManagerModules.sops
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  sops = {
 | 
					 | 
				
			||||||
    defaultSopsFile = "${secretsPath}/secrets.yaml";
 | 
					 | 
				
			||||||
    age = {
 | 
					 | 
				
			||||||
      sshKeyPaths = ["${config.home.homeDirectory}/keys/age/master.txt"];
 | 
					 | 
				
			||||||
      keyFile = "/var/lib/sops-nix/key.txt";
 | 
					 | 
				
			||||||
      generateKey = true;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										6
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -240,10 +240,10 @@
 | 
				
			||||||
    "nix-secrets": {
 | 
					    "nix-secrets": {
 | 
				
			||||||
      "flake": false,
 | 
					      "flake": false,
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1717515079,
 | 
					        "lastModified": 1717523958,
 | 
				
			||||||
        "narHash": "sha256-R9oet/t4zJnLKYw5ZPq6WOaKNF+EMejlgr4+Y98FbzY=",
 | 
					        "narHash": "sha256-fZzlvFG7fIGA4GIpMai8fdxeUU/bBxMacdDmDWN+Emk=",
 | 
				
			||||||
        "ref": "refs/heads/main",
 | 
					        "ref": "refs/heads/main",
 | 
				
			||||||
        "rev": "a3bd4bad51a5b753f75dc8ff0c09140331320863",
 | 
					        "rev": "23bdde0f479cdd6039555aee0680878249185715",
 | 
				
			||||||
        "shallow": true,
 | 
					        "shallow": true,
 | 
				
			||||||
        "type": "git",
 | 
					        "type": "git",
 | 
				
			||||||
        "url": "ssh://git@git.venberg.xyz:7920/Gabe/nix-secrets.git"
 | 
					        "url": "ssh://git@git.venberg.xyz:7920/Gabe/nix-secrets.git"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,8 +37,7 @@ inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
        ../configs/home-manager/common.nix
 | 
					        ../configs/home-manager/common.nix
 | 
				
			||||||
        ../configs/home-manager/syncthing.nix
 | 
					        ../configs/home-manager/syncthing.nix
 | 
				
			||||||
        ../configs/home-manager/email.nix
 | 
					        ../configs/home-manager/email.nix
 | 
				
			||||||
        ../../configs/home-manager/tiny-irc.nix
 | 
					        ../configs/home-manager/tiny-irc.nix
 | 
				
			||||||
        ../configs/home-manager/terminal/voice.nix
 | 
					 | 
				
			||||||
        ../configs/home-manager/secrets.nix
 | 
					        ../configs/home-manager/secrets.nix
 | 
				
			||||||
        inputs.sops-nix.homeManagerModules.sops
 | 
					        inputs.sops-nix.homeManagerModules.sops
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								justfile
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								justfile
									
										
									
									
									
								
							| 
						 | 
					@ -3,17 +3,17 @@ default:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
nixos target=`hostname`:
 | 
					nixos target=`hostname`:
 | 
				
			||||||
    git add -AN
 | 
					    git add -AN
 | 
				
			||||||
    nix flake lock --update-input nix-secrets
 | 
					    nix flake update nix-secrets
 | 
				
			||||||
    sudo nixos-rebuild --flake .#{{target}} switch
 | 
					    sudo nixos-rebuild --flake .#{{target}} switch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
home-manager target=(`whoami`+"@"+`hostname`):
 | 
					home-manager target=(`whoami`+"@"+`hostname`):
 | 
				
			||||||
    git add -AN
 | 
					    git add -AN
 | 
				
			||||||
    nix flake lock --update-input nix-secrets
 | 
					    nix flake update nix-secrets
 | 
				
			||||||
    home-manager --flake .#{{target}} switch
 | 
					    home-manager --flake .#{{target}} switch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
check:
 | 
					check:
 | 
				
			||||||
    git add -AN
 | 
					    git add -AN
 | 
				
			||||||
    nix flake lock --update-input nix-secrets
 | 
					    nix flake update nix-secrets
 | 
				
			||||||
    nix flake check --keep-going
 | 
					    nix flake check --keep-going
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bootstrap-home-manager target=(`whoami`+"@"+`hostname`):
 | 
					bootstrap-home-manager target=(`whoami`+"@"+`hostname`):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,9 +5,8 @@
 | 
				
			||||||
  ...
 | 
					  ...
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
  imports = [
 | 
					  imports = [
 | 
				
			||||||
    ../../modules/home-manager/beets.nix
 | 
					    ../../configs/home-manager/beets.nix
 | 
				
			||||||
    ../../modules/home-manager/mpd.nix
 | 
					    ../../configs/home-manager/mpd.nix
 | 
				
			||||||
    ../../modules/home-manager/beets.nix
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  home.packages = with pkgs; (lib.mkIf config.host.gui.enable [
 | 
					  home.packages = with pkgs; (lib.mkIf config.host.gui.enable [
 | 
				
			||||||
    mpdevil
 | 
					    mpdevil
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue