Files
nixos-config/flake.nix
T
2026-11-12 13:26:08 +01:00

54 lines
1.0 KiB
Nix

{
description = "leonhard's nix config";
inputs = {
systems.url = "github:nix-systems/default";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim.url = "github:nix-community/nixvim";
};
outputs =
{
self,
systems,
nixpkgs,
...
}@inputs:
let
inherit (nixpkgs) lib;
forAllSystems = lib.genAttrs (import systems);
pkgsFor =
system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
nixosConfigurations = import ./hosts { inherit self inputs; };
homeConfigurations = import ./standalone { inherit self inputs; };
packages = forAllSystems (
system:
import ./pkgs {
pkgs = pkgsFor system;
inherit inputs;
}
);
};
}