feat(flake)!: common home-manager settings

Automatically add the flake's overlays to `home-manager`'s `nixpkgs.overlays`
Split up `reo101-shell`
Upgdate `cheetah` to `23.05`
Some formatting
This commit is contained in:
reo101 2023-07-25 23:42:47 +03:00
parent de43011b22
commit bc81e59950
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
9 changed files with 437 additions and 327 deletions

View file

@ -0,0 +1,28 @@
{ inputs, outputs, ... }:
{ lib, pkgs, config, ... }:
{
imports = [ ];
options = { };
config = {
# Add flake inputs to $NIX_PATH
home.sessionVariables = {
NIX_PATH =
builtins.concatStringsSep
":"
(lib.mapAttrsToList
(name: input:
"${name}=${input.sourceInfo.outPath}")
inputs);
};
# Use flake overlays by default
nixpkgs = {
overlays = lib.attrValues outputs.overlays;
config.allowUnfree = true;
};
};
}