test
This commit is contained in:
		
							parent
							
								
									2cce56dbd9
								
							
						
					
					
						commit
						e708d48fbd
					
				
					 2 changed files with 12 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,7 @@
 | 
			
		|||
      username = "frostphoenix";
 | 
			
		||||
    in
 | 
			
		||||
    {
 | 
			
		||||
      # overlays.default = selfPkgs.overlay;
 | 
			
		||||
      overlays.default = selfPkgs.overlay;
 | 
			
		||||
      nixosConfigurations = import ./modules/core/default.nix {
 | 
			
		||||
        inherit self nixpkgs inputs username;
 | 
			
		||||
      };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,14 +1,12 @@
 | 
			
		|||
{
 | 
			
		||||
  systems = ["x86_64-linux"];
 | 
			
		||||
 | 
			
		||||
  perSystem = {
 | 
			
		||||
    pkgs,
 | 
			
		||||
    inputs',
 | 
			
		||||
    ...
 | 
			
		||||
  }: {
 | 
			
		||||
    packages = {
 | 
			
		||||
      # instant repl with automatic flake loading
 | 
			
		||||
      _2048 = pkgs.callPackage ./2048 {};
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
rec{
 | 
			
		||||
  overlay = final: prev:
 | 
			
		||||
    let
 | 
			
		||||
      dirContents = builtins.readDir ../pkgs;
 | 
			
		||||
      genPackage = name: {
 | 
			
		||||
        inherit name;
 | 
			
		||||
        value = final.callPackage (../pkgs + "/${name}") { };
 | 
			
		||||
      };
 | 
			
		||||
      names = builtins.attrNames dirContents;
 | 
			
		||||
    in
 | 
			
		||||
    builtins.listToAttrs (map genPackage names);
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue