122 lines
		
	
	
	
		
			3.5 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			122 lines
		
	
	
	
		
			3.5 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  description = "System Configuration Flake";
 | 
						|
  outputs = inputs@{
 | 
						|
    catppuccin,
 | 
						|
    home-manager,
 | 
						|
    lanzaboote,
 | 
						|
    nixpkgs,
 | 
						|
    nixpkgs-xr,
 | 
						|
    nixos-hardware,
 | 
						|
    nixpkgs-quartus,
 | 
						|
    sops-nix,
 | 
						|
    ...
 | 
						|
  } : {
 | 
						|
 | 
						|
    nixosConfigurations = {
 | 
						|
      malachite = nixpkgs.lib.nixosSystem {
 | 
						|
        system = "x86_64-linux";
 | 
						|
        specialArgs = { inherit inputs; };
 | 
						|
        modules = [
 | 
						|
          catppuccin.nixosModules.catppuccin
 | 
						|
          sops-nix.nixosModules.sops
 | 
						|
 | 
						|
          ./hosts/malachite/default.nix
 | 
						|
          ./users/stitchynyan/default.nix
 | 
						|
          nixpkgs-xr.nixosModules.nixpkgs-xr
 | 
						|
 | 
						|
          home-manager.nixosModules.home-manager
 | 
						|
          {
 | 
						|
             home-manager.extraSpecialArgs = {inherit inputs;};
 | 
						|
             home-manager.useGlobalPkgs = true;
 | 
						|
             home-manager.useUserPackages = true;
 | 
						|
             home-manager.users.stitchynyan = {
 | 
						|
               imports = [
 | 
						|
                 catppuccin.homeModules.catppuccin
 | 
						|
                 ./users/stitchynyan/home.nix
 | 
						|
                 ./users/home.nix
 | 
						|
               ];
 | 
						|
             };
 | 
						|
          }
 | 
						|
        ];
 | 
						|
      };
 | 
						|
 | 
						|
      lappy = nixpkgs.lib.nixosSystem {
 | 
						|
        system = "x86_64-linux";
 | 
						|
        specialArgs = { inherit inputs; };
 | 
						|
        modules = [
 | 
						|
          catppuccin.nixosModules.catppuccin
 | 
						|
          lanzaboote.nixosModules.lanzaboote
 | 
						|
          nixos-hardware.nixosModules.framework-12th-gen-intel
 | 
						|
          sops-nix.nixosModules.sops
 | 
						|
 | 
						|
          ./hosts/lappy/default.nix
 | 
						|
          ./users/stitchynyan/default.nix
 | 
						|
 | 
						|
          home-manager.nixosModules.home-manager
 | 
						|
          {
 | 
						|
             home-manager.extraSpecialArgs = {inherit inputs;};
 | 
						|
             home-manager.useGlobalPkgs = true;
 | 
						|
             home-manager.useUserPackages = true;
 | 
						|
             home-manager.users.stitchynyan = {
 | 
						|
               imports = [
 | 
						|
                 catppuccin.homeModules.catppuccin
 | 
						|
                 ./users/stitchynyan/home.nix
 | 
						|
                 ./users/home.nix
 | 
						|
               ];
 | 
						|
             };
 | 
						|
          }
 | 
						|
        ];
 | 
						|
      };
 | 
						|
 | 
						|
      tanzanite = nixpkgs.lib.nixosSystem {
 | 
						|
        system = "x86_64-linux";
 | 
						|
        specialArgs = { inherit inputs; };
 | 
						|
        modules = [
 | 
						|
          catppuccin.nixosModules.catppuccin
 | 
						|
          sops-nix.nixosModules.sops
 | 
						|
 | 
						|
          ./hosts/tanzanite/default.nix
 | 
						|
          ./users/nyadmin/default.nix
 | 
						|
 | 
						|
          home-manager.nixosModules.home-manager
 | 
						|
          {
 | 
						|
             home-manager.extraSpecialArgs = {inherit inputs;};
 | 
						|
             home-manager.useGlobalPkgs = true;
 | 
						|
             home-manager.useUserPackages = true;
 | 
						|
             home-manager.users.nyadmin = {
 | 
						|
               imports = [
 | 
						|
                 catppuccin.homeModules.catppuccin
 | 
						|
                 ./users/nyadmin/home.nix
 | 
						|
                 ./users/home.nix
 | 
						|
               ];
 | 
						|
             };
 | 
						|
          }
 | 
						|
        ];
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
 | 
						|
  inputs = {
 | 
						|
    catppuccin.url = "github:catppuccin/nix";
 | 
						|
    home-manager = {
 | 
						|
      url = "github:nix-community/home-manager/master";
 | 
						|
      inputs.nixpkgs.follows = "nixpkgs";
 | 
						|
    };
 | 
						|
    lanzaboote = {
 | 
						|
      url = "github:nix-community/lanzaboote/v0.4.2";
 | 
						|
      inputs.nixpkgs.follows = "nixpkgs";
 | 
						|
    };
 | 
						|
    mobile-nixos = {
 | 
						|
      url = "github:nixos/mobile-nixos";
 | 
						|
      flake = false;
 | 
						|
    };
 | 
						|
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
 | 
						|
    nixpkgs-xr.url = "github:nix-community/nixpkgs-xr";
 | 
						|
    nixos-hardware.url = "github:Nixos/nixos-hardware/master";
 | 
						|
    nixpkgs-quartus.url = "github:nixos/nixpkgs/nixos-22.05";
 | 
						|
    sops-nix = {
 | 
						|
      url = "github:Mic92/sops-nix";
 | 
						|
      inputs.nixpkgs.follows = "nixpkgs";
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |