Try to pass inputs into home-manager

This commit is contained in:
Artemis Tosini 2021-11-21 18:53:51 +00:00
parent 4c66a618ed
commit 2824907ab6
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
3 changed files with 7 additions and 8 deletions

View file

@ -20,19 +20,16 @@
};
};
outputs = { self, nixpkgs, home-manager, rustybar, private, wip-pinebook-pro }:
outputs = { self, nixpkgs, home-manager, rustybar, private, wip-pinebook-pro, ... } @ inputs:
let
defaultModules = [
({ pkgs, ... }: {
nixpkgs.overlays = [ rustybar.overlay ];
})
private.nixosModules.base
home-manager.nixosModules.home-manager
];
makeSystem = conf: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
{
specialArgs = {
inherit rustybar;
inherit inputs;
};
}
conf);

View file

@ -1,4 +1,4 @@
{ ... }:
{ inputs, ... }:
{
home-manager = {
@ -6,6 +6,7 @@
useGlobalPkgs = true;
};
home-manager.users.artemis = {
extraSpecialArgs.inputs = inputs;
imports = [
./git.nix
./mpv.nix

View file

@ -1,5 +1,6 @@
{ pkgs, lib, config, ... }:
{ pkgs, lib, config, inputs, ... }:
let
rustybar = inputs.rustybar.defaultPackage."${pkgs.system}";
cfg = config.wayland.windowManager.sway;
mod = cfg.config.modifier;
extraWorkspaces = {
@ -88,7 +89,7 @@ in
window.titlebar = true;
bars = [{
statusCommand = "${pkgs.rustybar}/bin/rustybar";
statusCommand = "${rustybar}/bin/rustybar";
position = "top";
fonts = cfg.config.fonts;
colors = {