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:
parent
de43011b22
commit
bc81e59950
9 changed files with 437 additions and 327 deletions
28
modules/home-manager/nix-general/default.nix
Normal file
28
modules/home-manager/nix-general/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue