69 lines
1.8 KiB
Nix
69 lines
1.8 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
};
|
|
neovim-nightly-overlay = {
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
|
};
|
|
neovim = {
|
|
url = "git+ssh://gitea@pi1.odie.intranet/odie/neovim-flake";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, flake-utils, home-manager, ... }:
|
|
let
|
|
inherit (self) outputs;
|
|
inputOverlays = [
|
|
inputs.neovim-nightly-overlay.overlays.default
|
|
inputs.neovim.overlays.default
|
|
];
|
|
unstableOverlay = final: _prev: {
|
|
unstable = import inputs.nixpkgs-unstable {
|
|
inherit (final) system;
|
|
config.allowUnfree = true;
|
|
overlays = inputOverlays;
|
|
};
|
|
};
|
|
overlays = [
|
|
unstableOverlay
|
|
] ++ inputOverlays;
|
|
mkPkgs = system:
|
|
import nixpkgs {
|
|
inherit system overlays;
|
|
config.allowUnfree = true;
|
|
};
|
|
in
|
|
rec {
|
|
homeManagerModules = [
|
|
(import ./modules)
|
|
];
|
|
homeConfigurations = {
|
|
"odie-full" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = (mkPkgs "x86_64-linux").unstable;
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = homeManagerModules;
|
|
};
|
|
};
|
|
} // flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = mkPkgs system;
|
|
in
|
|
{
|
|
formatter = pkgs.alejandra;
|
|
devShells = {
|
|
default = pkgs.mkShell {
|
|
name = "home-manager";
|
|
buildInputs = with pkgs; [
|
|
inputs.home-manager.packages.${system}.default
|
|
];
|
|
};
|
|
};
|
|
});
|
|
}
|