nix-da/flake.nix

61 lines
1.3 KiB
Nix

{
description = "Nydragon's NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";
rofi-obsidian = {
url = "github:nydragon/rofi-obsidian";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./hosts
./parts
];
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem =
{ pkgs, ... }:
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
pre-commit
nixfmt-rfc-style
nodePackages.prettier
typos
];
shellHook = ''
${pkgs.pre-commit}/bin/pre-commit install -f
'';
};
};
};
}