nixcfg/flake.nix

83 lines
2.1 KiB
Nix
Raw Normal View History

2024-01-11 09:18:07 +01:00
{
description = "Harald Hoyer's Nix Configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
# NixPkgs Unstable (nixos-unstable)
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.3.0";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-01-11 09:18:07 +01:00
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-flake.url = "github:notashelf/neovim-flake/v0.5";
neovim-flake.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
2024-01-11 09:18:07 +01:00
};
outputs = inputs:
let
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;
2024-01-11 11:26:46 +01:00
snowfall.namespace = "plusultra";
snowfall = {
meta = {
name = "plusultra";
title = "Plus Ultra";
};
};
2024-01-11 09:18:07 +01:00
};
in
lib.mkFlake {
channels-config = {
allowUnfree = true;
};
homes.users."harald@nix.fedora.fritz.box".modules = with inputs; [
neovim-flake.homeManagerModules.default
];
homes.users."harald@sgx-nixos".modules = with inputs; [
2024-01-11 09:18:07 +01:00
neovim-flake.homeManagerModules.default
];
homes.users."harald@x1".modules = with inputs; [
neovim-flake.homeManagerModules.default
];
2024-01-12 09:52:56 +01:00
homes.users."harald@mpro.fritz.box".modules = with inputs; [
2024-01-11 19:59:19 +01:00
neovim-flake.homeManagerModules.default
];
# homes.modules = with inputs; [
# neovim-flake.homeManagerModules.default
# ];
systems.modules.nixos = with inputs; [
lanzaboote.nixosModules.lanzaboote
home-manager.nixosModules.home-manager
];
2024-01-11 09:18:07 +01:00
outputs-builder = channels: {
formatter = channels.nixpkgs.nixpkgs-fmt;
defaultApp = lib.flake-utils-plus.mkApp { drv = channels.nixpkgs.home-manager; };
};
2024-01-11 09:18:07 +01:00
};
}