about summary refs log blame commit diff
path: root/flake.nix
blob: de8a70146f778d32e9e70a080bc50b51e31bb7cb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
 
                                                       

            
                                                        
 
                    
                                                       

                                         
 

                                                 

                                                           
                                         
 
                                                      




                                        

    
                                                          
     
                                            
                       

                           





                                            










                                            
                                       
                              
                                            


        
{
  description = "My Nix(\"OS\" or \"\") configuration";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    home-manager = {
      url = "github:nix-community/home-manager/master";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    hardware.url = "github:NixOS/nixos-hardware";

    impermanence.url = "github:nix-community/impermanence";

    nur.url = "github:nix-community/NUR";

    nix-index.url = "github:Mic92/nix-index-database";

    wallpapers = {
      url = "github:Baitinq/Wallpapers";
      flake = false;
    };
  };

  outputs = inputs @ { self, nixpkgs, home-manager, ... }:
    {
      nixosConfigurations = import ./hosts {
        isNixOS = true;
        extraModules = [ ];
        isIso = false;
        inherit (nixpkgs) lib;
        inherit inputs nixpkgs home-manager;
      };

      homeConfigurations = import ./hosts {
        isNixOS = false;
        extraModules = [ ];
        isIso = false;
        #no COde duplication here: TODO
        inherit (nixpkgs) lib;
        inherit inputs nixpkgs home-manager;
      };

      isoConfigurations = import ./hosts {
        isNixOS = true;
        extraModules = [ ];
        isIso = true;
        #no COde duplication here: TODO
        inherit (nixpkgs) lib;
        inherit inputs nixpkgs home-manager;
      };
    };
}