{ description = "snowflake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; hyprland.url = "github:hyprwm/Hyprland"; ags.url = "github:Aylur/ags"; nix-gaming.url = "github:fufexan/nix-gaming"; attic.url = "github:zhaofengli/attic"; nur.url = "github:nix-community/NUR"; yazi.url = "github:sxyazi/yazi"; helix.url = "github:helix-editor/helix"; pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; wezterm.url = "github:notohh/wezterm?dir=nix&ref=nix-add-overlay"; hypridle.url = "github:hyprwm/hypridle"; hyprlock.url = "github:hyprwm/hyprlock"; hyprpicker.url = "github:hyprwm/hyprpicker"; hyprcursor.url = "github:hyprwm/hyprcursor"; xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; atuin.url = "github:atuinsh/atuin"; flake-parts.url = "github:hercules-ci/flake-parts"; hyprland-plugins = { url = "github:hyprwm/hyprland-plugins"; inputs.hyprland.follows = "hyprland"; }; deploy-rs = { url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; }; sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; nix-index-database = { url = "github:Mic92/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; }; anyrun = { url = "github:Kirottu/anyrun"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} { imports = [ inputs.pre-commit-hooks.flakeModule ./hosts ./hosts/deploy.nix ./home/profiles ]; systems = ["x86_64-linux"]; perSystem = { config, pkgs, ... }: { pre-commit = { settings = { excludes = ["flake.lock"]; hooks = { stylua.enable = true; eslint.enable = true; statix.enable = true; alejandra.enable = true; deadnix = { enable = true; excludes = ["overlays.nix"]; }; prettier = { enable = true; files = "\\.(js|ts|md|json)$"; }; }; }; }; devShells.default = pkgs.mkShell { name = "snowflake"; shellHook = config.pre-commit.installationScript; packages = with pkgs; [ git sops alejandra yaml-language-server lua-language-server ]; }; formatter = pkgs.alejandra; }; }; }