home: refactor common files
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -14,8 +14,7 @@
 | 
				
			|||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  imports = [
 | 
					  imports = [
 | 
				
			||||||
    ./natto/emacs.nix
 | 
					     ./programs/emacs
 | 
				
			||||||
   # ./natto/wayland.nix
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  xdg.mime.enable = true;
 | 
					  xdg.mime.enable = true;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,8 +1,9 @@
 | 
				
			|||||||
{ self, inputs, globalArgs, ... }:
 | 
					{ self, inputs, globalArgs, ... }:
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  common = [
 | 
					  common = [
 | 
				
			||||||
    ./common/zsh.nix
 | 
					    { programs.home-manager.enable = true; }
 | 
				
			||||||
    ./common/programs.nix
 | 
					    ./common/zsh
 | 
				
			||||||
 | 
					    ./common/direnv
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  mkPkgs = system: import inputs.nixpkgs {
 | 
					  mkPkgs = system: import inputs.nixpkgs {
 | 
				
			||||||
@@ -23,7 +24,8 @@ in
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      nattoModules = [
 | 
					      nattoModules = [
 | 
				
			||||||
        ./natto
 | 
					        ./natto
 | 
				
			||||||
        ./modules/fonts
 | 
					        ./common/fonts
 | 
				
			||||||
 | 
					        ./common/emacs
 | 
				
			||||||
        ./common/laptop.nix
 | 
					        ./common/laptop.nix
 | 
				
			||||||
        inputs.agenix.homeManagerModules.default
 | 
					        inputs.agenix.homeManagerModules.default
 | 
				
			||||||
      ] ++ common;
 | 
					      ] ++ common;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,33 +37,6 @@
 | 
				
			|||||||
    dunst
 | 
					    dunst
 | 
				
			||||||
    zenity
 | 
					    zenity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Programming and dev stuff
 | 
					 | 
				
			||||||
    (texlive.combine {
 | 
					 | 
				
			||||||
      inherit (texlive)
 | 
					 | 
				
			||||||
        scheme-small
 | 
					 | 
				
			||||||
        babel
 | 
					 | 
				
			||||||
        lm
 | 
					 | 
				
			||||||
        graphics-def
 | 
					 | 
				
			||||||
        url
 | 
					 | 
				
			||||||
        mhchem
 | 
					 | 
				
			||||||
        wrapfig
 | 
					 | 
				
			||||||
        capt-of
 | 
					 | 
				
			||||||
        minted
 | 
					 | 
				
			||||||
        fvextra
 | 
					 | 
				
			||||||
        xstring
 | 
					 | 
				
			||||||
        catchfile
 | 
					 | 
				
			||||||
        framed
 | 
					 | 
				
			||||||
        upquote
 | 
					 | 
				
			||||||
        pdfsync
 | 
					 | 
				
			||||||
        tocloft
 | 
					 | 
				
			||||||
        enumitem
 | 
					 | 
				
			||||||
        multirow
 | 
					 | 
				
			||||||
        adjustbox
 | 
					 | 
				
			||||||
        titlesec
 | 
					 | 
				
			||||||
        tcolorbox;
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    python3Packages.pygments
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # Misc
 | 
					    # Misc
 | 
				
			||||||
    anki
 | 
					    anki
 | 
				
			||||||
    tor-browser-bundle-bin
 | 
					    tor-browser-bundle-bin
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,6 +25,7 @@
 | 
				
			|||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    password-store.enable = true;
 | 
				
			||||||
    go.enable = true;
 | 
					    go.enable = true;
 | 
				
			||||||
    foot = {
 | 
					    foot = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user