52 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  inputs,
 | 
						|
  myLib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
inputs.home-manager.lib.homeManagerConfiguration {
 | 
						|
  pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
 | 
						|
  extraSpecialArgs = {inherit inputs myLib;};
 | 
						|
  modules = [
 | 
						|
    ({
 | 
						|
      config,
 | 
						|
      pkgs,
 | 
						|
      lib,
 | 
						|
      ...
 | 
						|
    }: {
 | 
						|
      # machine specific options
 | 
						|
      user = {
 | 
						|
        enable-speech = true;
 | 
						|
        git = {
 | 
						|
          profile = {
 | 
						|
            name = "Gabe Venberg";
 | 
						|
            email = "gabevenberg@gmail.com";
 | 
						|
          };
 | 
						|
          workProfile = {
 | 
						|
            enable = true;
 | 
						|
            email = "gabriel.venberg@assistme.io";
 | 
						|
          };
 | 
						|
        };
 | 
						|
      };
 | 
						|
 | 
						|
      targets.genericLinux.enable = true;
 | 
						|
      home.username = "gabe";
 | 
						|
      home.homeDirectory = /home/gabe;
 | 
						|
      imports = [
 | 
						|
        ../roles/home-manager/terminal.nix
 | 
						|
        ../roles/home-manager/music.nix
 | 
						|
        ../configs/home-manager/common.nix
 | 
						|
        ../configs/home-manager/email.nix
 | 
						|
        ../configs/home-manager/tiny-irc.nix
 | 
						|
        ../configs/home-manager/secrets.nix
 | 
						|
        inputs.sops-nix.homeManagerModules.sops
 | 
						|
      ];
 | 
						|
 | 
						|
      sops = lib.mkIf (inputs ? nix-secrets) {
 | 
						|
        secrets = {
 | 
						|
          gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
 | 
						|
          irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
 | 
						|
        };
 | 
						|
      };
 | 
						|
    })
 | 
						|
  ];
 | 
						|
}
 |