{
  description = "Flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    intelfetch.url = "git+https://git.sr.ht/~coasteen/intelfetch";
    home-manager.url = "github:nix-community/home-manager/release-25.05";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { nixpkgs, nixpkgs-unstable, home-manager, intelfetch, ... }: let
    system = "x86_64-linux";
    pkgs = import nixpkgs {
      inherit system;
      config = { allowUnfree = true; };
    };
    pkgsUnstable = import nixpkgs-unstable { inherit system; };
  in {
    nixosConfigurations.gloria = nixpkgs.lib.nixosSystem {
      inherit system;

      modules = [
        (import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; })
        ./configuration/sys/coreutils-configuration.nix
		./configuration/sys/swap.nix
        ./hardware-configuration.nix

        {
          environment.systemPackages = [
            intelfetch.packages.${system}.intelfetch
          ];
        }

        home-manager.nixosModules.home-manager {
          home-manager = {
            useGlobalPkgs = true;
            useUserPackages = true;
            backupFileExtension = "home-backup";

            users.coast = { ... }: {
              imports = [
                ./home-configuration/configuration.nix
                ./home-configuration/apps/sway.nix
                ./home-configuration/apps/zsh.nix
				./home-configuration/apps/alacritty.nix
              ];
            };
          };
        }
      ];
    };
  };
}
