Restart with snowfall

This commit is contained in:
2025-08-17 12:35:32 +08:00
parent a5ae2a4d93
commit 2599d9ddfa
3 changed files with 256 additions and 43 deletions

View File

@@ -1,28 +1,35 @@
{
description = "Yadunand's Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
{
lib = {
users = import ./users.nix;
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "snowfall";
};
}
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.nixd ];
};
}
);
channels-config = {
allowUnfree = true;
};
};
}