Something went wrong. Try again.
My Nix configuration. Enter at your own risk.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210{ inputs.auto-cpufreq.url = "github:AdnanHodzic/auto-cpufreq"; inputs.auto-cpufreq.inputs.nixpkgs.follows = "nixpkgs";
inputs.badjuju.url = "git+https://github.com/icorbrey-contrib/badjuju?ref=icorbrey/helix-plugin"; inputs.badjuju.flake = false;
inputs.claude-code.url = "github:sadjow/claude-code-nix"; inputs.claude-code.inputs.nixpkgs.follows = "nixpkgs";
inputs.dms.url = "github:AvengeMedia/DankMaterialShell/stable"; inputs.dms.inputs.nixpkgs.follows = "nixpkgs";
inputs.dsearch.url = "github:AvengeMedia/danksearch"; inputs.dsearch.inputs.nixpkgs.follows = "nixpkgs";
inputs.helix.url = "git+https://tangled.org/isaaccorbrey.com/burin"; inputs.helix.inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.url = "github:nix-community/home-manager"; inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
inputs.jj-mesh.url = "github:baptiste0928/jj-mesh"; inputs.jj-mesh.inputs.nixpkgs.follows = "nixpkgs";
inputs.lazyjira.url = "github:textfuel/lazyjira"; inputs.lazyjira.inputs.nixpkgs.follows = "nixpkgs";
inputs.llm-agents.url = "github:numtide/llm-agents.nix";
inputs.nix-colorizer.url = "github:nutsalhan87/nix-colorizer";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.noita-entangled-worlds.url = "github:IntQuant/noita_entangled_worlds/v1.6.6"; inputs.noita-entangled-worlds.inputs.nixpkgs.follows = "nixpkgs";
inputs.nur.url = "github:nix-community/NUR";
inputs.omp.url = "github:can1357/oh-my-pi"; inputs.omp.inputs.nixpkgs.follows = "nixpkgs";
inputs.rose.url = "git+https://tangled.org/isaaccorbrey.com/rose"; inputs.rose.inputs.nixpkgs.follows = "nixpkgs";
inputs.tuicr.url = "github:agavra/tuicr"; inputs.tuicr.inputs.nixpkgs.follows = "nixpkgs";
inputs."zen-browser".url = "github:youwen5/zen-browser-flake"; inputs."zen-browser".inputs.nixpkgs.follows = "nixpkgs";
outputs = { home-manager, claude-code, nixpkgs, ... } @ inputs: let inherit (nixpkgs) lib;
systems = lib.filter (system: lib.hasSuffix "-linux" system || lib.hasSuffix "-darwin" system) lib.systems.flakeExposed;
forAllSystems = lib.genAttrs systems;
overlaysFor = system: import ./overlays.nix { inherit inputs system; };
nixpkgsModule = system: { nixpkgs = { overlays = overlaysFor system; hostPlatform = lib.mkDefault system;
config.allowUnfree = true; }; };
cacheModule = let mkTrust = sub: keys: { extra-trusted-public-keys = lib.toList keys; extra-substituters = lib.toList sub; }; in { nix.settings = lib.mkMerge [ (mkTrust "https://nix-community.cachix.org" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ) ]; };
pkgsFor = system: import nixpkgs { inherit system; overlays = overlaysFor system;
config.allowUnfree = true; };
utils = import ./utils.nix { inherit lib; };
specialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs utils; };
mkHomeConfiguration = { modules, system, }: home-manager.lib.homeManagerConfiguration { pkgs = pkgsFor system; inherit extraSpecialArgs modules; };
mkNixosConfiguration = { modules, system, }: nixpkgs.lib.nixosSystem { modules = modules ++ [ (nixpkgsModule system) cacheModule ]; inherit specialArgs; };
homeHosts = { "icorbrey@elysium" = { system = "x86_64-linux"; modules = [ inputs.dms.homeModules.dank-material-shell inputs.dsearch.homeModules.default ./hosts/elysium/home/icorbrey.nix ]; };
"icorbrey@zephyr" = { system = "x86_64-linux"; modules = [ inputs.dms.homeModules.dank-material-shell inputs.dsearch.homeModules.default ./hosts/zephyr/home/icorbrey.nix ]; };
"icorbrey@hestia" = { system = "aarch64-linux"; modules = [ inputs.dms.homeModules.dank-material-shell inputs.dsearch.homeModules.default ./hosts/hestia/home/icorbrey.nix ]; };
"isaac_corbrey@isaac-corbrey-l" = { system = "aarch64-darwin"; modules = [./hosts/isaac-corbrey-l/home/isaac_corbrey.nix]; };
"icorbrey@csusf200" = { system = "x86_64-linux"; modules = [./hosts/csusf200/home/icorbrey.nix]; }; };
nixosHosts = { elysium = { system = "x86_64-linux"; modules = [ ./hosts/elysium/configuration.nix ]; };
zephyr = { system = "x86_64-linux"; modules = [ ./hosts/zephyr/configuration.nix ]; };
hestia = { system = "aarch64-linux"; modules = [ ./hosts/hestia/configuration.nix ]; }; }; in { devShells = forAllSystems (system: import ./shell.nix { pkgs = pkgsFor system; });
homeConfigurations = lib.mapAttrs (_: mkHomeConfiguration) homeHosts;
nixosConfigurations = lib.mapAttrs (_: mkNixosConfiguration) nixosHosts; };}