snowflake/flake.nix

130 lines
3.6 KiB
Nix
Raw Normal View History

2022-12-06 01:24:54 -05:00
{
2023-03-06 05:35:45 -05:00
description = "snowflake";
2023-04-23 17:45:37 -04:00
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.pre-commit-hooks.flakeModule
./hosts
2024-04-16 21:05:49 -04:00
./hosts/deploy.nix
./home/profiles
];
systems = ["x86_64-linux"];
perSystem = {
config,
pkgs,
...
}: {
pre-commit = {
2024-04-16 21:04:07 -04:00
check.enable = true;
settings = {
excludes = ["flake.lock"];
hooks = {
stylua.enable = true;
statix.enable = true;
alejandra.enable = true;
deadnix = {
enable = true;
excludes = ["overlays.nix"];
};
prettier = {
enable = true;
files = "\\.(js|ts|md|json)$";
2024-04-17 14:53:48 -04:00
settings = {
trailing-comma = "none";
};
};
};
2024-02-01 17:49:02 -05:00
};
};
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;
};
};
2024-04-17 14:53:48 -04:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-05-12 23:53:17 -04:00
### hypr
2024-12-11 15:52:21 -05:00
hyprland = {
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-17 14:53:48 -04:00
hypridle.url = "github:hyprwm/hypridle";
2024-12-11 15:52:21 -05:00
hyprlock = {
url = "github:hyprwm/hyprlock";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprutils.follows = "hyprutils";
};
hyprpicker = {
url = "github:hyprwm/hyprpicker";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprutils.follows = "hyprutils";
};
hyprpaper = {
url = "github:hyprwm/hyprpaper";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprutils.follows = "hyprutils";
};
hyprsunset = {
url = "github:hyprwm/hyprsunset";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprutils.follows = "hyprutils";
};
hyprutils = {
url = "github:hyprwm/hyprutils";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-25 01:42:54 -05:00
xdg-portal-hyprland = {
url = "github:hyprwm/xdg-desktop-portal-hyprland";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprutils.follows = "hyprutils";
};
2024-04-17 14:53:48 -04:00
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
2024-05-12 23:53:17 -04:00
### other stuff
2024-04-17 14:53:48 -04:00
nix-gaming.url = "github:fufexan/nix-gaming";
nur.url = "github:nix-community/NUR";
yazi.url = "github:sxyazi/yazi";
helix.url = "github:helix-editor/helix";
2024-04-17 14:53:48 -04:00
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
atuin.url = "github:atuinsh/atuin";
flake-parts.url = "github:hercules-ci/flake-parts";
2024-04-23 14:52:32 -04:00
stylix.url = "github:danth/stylix";
2024-04-26 17:21:31 -04:00
eww.url = "github:elkowar/eww";
2024-05-12 23:53:17 -04:00
anyrun.url = "github:Kirottu/anyrun";
2024-10-08 09:31:17 -04:00
botoh.url = "git+https://git.flake.sh/notohh/botoh";
2024-12-16 22:39:46 -05:00
conduwuit.url = "github:girlbossceo/conduwuit";
2024-04-17 14:53:48 -04:00
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";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-04-17 14:53:48 -04:00
};
2022-12-06 01:24:54 -05:00
}