{ description = "Mike's Flake"; inputs = { nixpkgs.url = "nixpkgs/nixos-24.11"; nixpkgs-unstable.url = "nixpkgs/nixos-unstable"; chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; nur.url = "github:nix-community/NUR"; nix-alien.url = "github:thiagokokada/nix-alien"; zen-browser.url = "github:eRgo35/zen-browser-flake"; rosepine-kvantum.url = "github:eRgo35/RosePine-Kvantum"; hyprsunset.url = "github:hyprwm/hyprsunset"; hyprsysteminfo.url = "github:/hyprwm/hyprsysteminfo"; hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent"; rust-overlay = { url = "github:oxalica/rust-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; hyprland = { type = "git"; url = "https://github.com/hyprwm/Hyprland"; submodules = true; }; hyprland-plugins = { url = "github:hyprwm/hyprland-plugins"; inputs.hyprland.follows = "hyprland"; }; split-monitor-workspaces = { url = "github:Duckonaut/split-monitor-workspaces"; inputs.hyprland.follows = "hyprland"; # <- make sure this line is present for the plugin to work as intended }; lanzaboote = { url = "github:nix-community/lanzaboote/v0.4.1"; inputs.nixpkgs.follows = "nixpkgs"; inputs.pre-commit-hooks-nix.follows = ""; }; home-manager = { url = "github:nix-community/home-manager/release-24.11"; inputs.nixpkgs.follows = "nixpkgs"; }; spicetify-nix = { url = "github:Gerg-L/spicetify-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; stylix = { url = "github:danth/stylix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, home-manager, ... } @ inputs: let inherit (self) outputs; systems = [ "x86_64-linux" "aarch64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs systems; in { # Your custom packages # Accessible through 'nix build', 'nix shell', etc packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); # Formatter for your nix files, available through 'nix fmt' # Other options beside 'alejandra' include 'nixpkgs-fmt' formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); # Your custom packages and modifications, exported as overlays overlays = import ./overlays {inherit inputs;}; # Reusable nixos modules you might want to export # These are usually stuff you would upstream into nixpkgs nixosModules = import ./modules/nixos; # Reusable home-manager modules you might want to export # These are usually stuff you would upstream into home-manager homeManagerModules = import ./modules/home-manager; # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { zion = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs outputs;}; modules = [ # > Our main nixos configuration file < ./hosts/zion/configuration.nix ]; }; thor = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs outputs;}; modules = [ # > Our main nixos configuration file < ./hosts/thor/configuration.nix ]; }; server = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs outputs;}; modules = [ # > Our main nixos configuration file < ./hosts/server/configuration.nix ]; }; }; # Standalone home-manager configuration entrypoint # Available through 'home-manager --flake .#your-username@your-hostname' homeConfigurations = { "mike@zion" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = {inherit inputs outputs;}; modules = [ # > Our main home-manager configuration file < ./home-manager/home.nix ]; }; "mike@thor" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = {inherit inputs outputs;}; modules = [ # > Our main home-manager configuration file < ./home-manager/home.nix ]; }; "mike@server" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = {inherit inputs outputs;}; modules = [ # > Our main home-manager configuration file < ./home-manager/home.nix ]; }; }; }; }