flocon/flake.nix

65 lines
1.9 KiB
Nix
Raw Normal View History

2024-08-25 19:58:12 +00:00
{
description = "nezia's nixos configuration";
outputs = {
self,
nixpkgs,
systems,
treefmt-nix,
...
} @ inputs: let
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
treefmtEval = eachSystem (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
in {
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = [
pkgs.alejandra
pkgs.git
];
2024-08-25 19:58:12 +00:00
};
});
formatter = eachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
nixosModules = import ./modules;
nixosConfigurations = import ./hosts {inherit self inputs;};
};
inputs = {
2024-10-22 14:40:57 +00:00
# nix related
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-10-22 14:40:57 +00:00
systems.url = "github:nix-systems/default-linux";
nixos-hardware.url = "github:NixOS/nixos-hardware";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-22 14:40:57 +00:00
nix-index-db = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-22 14:40:57 +00:00
# other
ags.url = "github:Aylur/ags";
basix.url = "github:notashelf/basix";
2024-10-22 14:40:57 +00:00
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {url = "github:sodiboo/niri-flake";};
2024-10-22 14:40:57 +00:00
nvf.url = "github:notashelf/nvf";
plasma-manager = {
url = "github:nix-community/plasma-manager";
2024-10-19 22:05:19 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2024-10-22 14:40:57 +00:00
inputs.home-manager.follows = "home-manager";
2024-10-19 22:05:19 +00:00
};
2024-10-22 14:40:57 +00:00
treefmt-nix.url = "github:numtide/treefmt-nix";
wezterm = {
url = "github:wez/wezterm/main?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-08-25 19:58:12 +00:00
}