mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
meta(home-manager): Remove dependency on extraSpecialArgs
Makes copy/pasting easier and removes non-standard arguments in home-manager modules.
This commit is contained in:
parent
4b5d240ebd
commit
21cd3e96da
@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
nix-config,
|
nixosConfig,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (nixosConfig._module.specialArgs) nix-config;
|
||||||
|
|
||||||
inherit (config.home) homeDirectory;
|
inherit (config.home) homeDirectory;
|
||||||
inherit (config.lib.stylix.colors.withHashtag) base00 base05;
|
inherit (config.lib.stylix.colors.withHashtag) base00 base05;
|
||||||
inherit (nix-config.packages.${pkgs.system}) fluent-icons;
|
inherit (nix-config.packages.${pkgs.system}) fluent-icons;
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
nix-config,
|
nixosConfig,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (nixosConfig._module.specialArgs) nix-config;
|
||||||
|
|
||||||
phosh-backgrounds = nix-config.packages.${pkgs.system}.phosh-backgrounds.override {
|
phosh-backgrounds = nix-config.packages.${pkgs.system}.phosh-backgrounds.override {
|
||||||
color = config.lib.stylix.colors.base00;
|
color = config.lib.stylix.colors.base00;
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
nix-config,
|
nixosConfig,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (nixosConfig._module.specialArgs) nix-config;
|
||||||
|
|
||||||
inherit (lib) mkForce;
|
inherit (lib) mkForce;
|
||||||
inherit (nix-config.packages.${pkgs.system}) osu-backgrounds;
|
inherit (nix-config.packages.${pkgs.system}) osu-backgrounds;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
nix-config,
|
nixosConfig,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
@ -7,6 +7,8 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (nixosConfig._module.specialArgs) nix-config;
|
||||||
|
|
||||||
inherit (lib) singleton;
|
inherit (lib) singleton;
|
||||||
inherit (builtins) toJSON;
|
inherit (builtins) toJSON;
|
||||||
inherit (nix-config.packages.${pkgs.system}) dunst-scripts;
|
inherit (nix-config.packages.${pkgs.system}) dunst-scripts;
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
nix-config,
|
|
||||||
nixosConfig,
|
nixosConfig,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (nixosConfig._module.specialArgs) nix-config;
|
||||||
|
|
||||||
inherit (lib) mkIf singleton;
|
inherit (lib) mkIf singleton;
|
||||||
inherit (nix-config.packages.${pkgs.system}) friendlyfox;
|
inherit (nix-config.packages.${pkgs.system}) friendlyfox;
|
||||||
|
|
||||||
|
@ -187,10 +187,6 @@ in
|
|||||||
|
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit nix-config;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.vmVariant = {
|
virtualisation.vmVariant = {
|
||||||
|
Loading…
Reference in New Issue
Block a user