
Evergarden for Nix
- Add the flake
{
inputs = {
evergarden.url = "github:everviolet/nix";
};
}
- Add the modules you need
{ inputs, ... }:
{
# you should only import these if you're system type allows for it
imports = [
inputs.evergarden.nixosModules.default
inputs.evergarden.darwinModules.default
inputs.evergarden.homeManagerModules.default
];
}
- Enable the modules you want
{
evergarden = {
enable = true; # enable all modules
variant = "winter";
accent = "red";
# you can also specifically disable modules
alacritty.enable = false;
# enable the cache
cache.enable = true;
};
}
- Add the repo
{
evergarden = builtins.fetchTarball {
url = "https://github.com/everviolet/nix/archive/main.tar.gz";
sha256 = "fill-in-the-sha256-hash";
};
}
- Add the modules you need
{ lib, ... }:
let
# assumeing we have access to the evergarden from the previous step
evgLib = import "${evergarden}/lib/default.nix" { inherit lib; };
in
{
# you should only import these if you're system type allows for it
imports = [
(import "${evergarden}/modules/home-manager/default.nix" { inherit evgLib; })
];
}
- Enable the modules you want
{
evergarden = {
enable = true; # enable all modules
variant = "winter";
accent = "red";
# you can also specifically disable modules
alacritty.enable = false;
# enable the cache
cache.enable = true;
};
}