70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{
|
|
description = "NixOs Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-23.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
snowfall-lib = {
|
|
url = "github:snowfallorg/lib";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
snowfall-flake = {
|
|
url = "github:snowfallorg/flake";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
|
|
# The nix way of configuring vim
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim?ref=nixos-23.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Hardware Configuration
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
|
|
# Run unpatched dynamically compiled binaries
|
|
nix-ld = {
|
|
url = "github:Mic92/nix-ld";
|
|
inputs.nixpkgs.follows = "unstable";
|
|
};
|
|
};
|
|
|
|
outputs = inputs: let
|
|
lib = inputs.snowfall-lib.mkLib {
|
|
inherit inputs;
|
|
src = ./.;
|
|
|
|
snowfall = {
|
|
meta = {
|
|
name = "wyrdgard";
|
|
title = "Wyrdgard";
|
|
};
|
|
|
|
namespace = "wyrdgard";
|
|
};
|
|
};
|
|
in
|
|
lib.mkFlake {
|
|
channels-config = {allowUnfree = true;};
|
|
|
|
outputs-builder = channels: {formatter = channels.nixpkgs.alejandra;};
|
|
|
|
overlays = with inputs; [
|
|
snowfall-flake.overlays.default
|
|
];
|
|
|
|
systems.modules.nixos = with inputs; [
|
|
home-manager.nixosModules.home-manager
|
|
nix-ld.nixosModules.nix-ld
|
|
nixvim.nixosModules.nixvim
|
|
];
|
|
};
|
|
}
|