Avoid importing the same file multiple times
This commit is contained in:
parent
59c60cf9b2
commit
794613626e
18 changed files with 21 additions and 20 deletions
|
@ -1,6 +1,4 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let inherit (import ./variables.nix) desktop;
|
||||
in {
|
||||
{ config, pkgs, lib, inputs, ... }: {
|
||||
imports = [
|
||||
./controller.nix
|
||||
./waybar.nix
|
||||
|
@ -30,9 +28,10 @@ in {
|
|||
./zathura.nix
|
||||
./man.nix
|
||||
./mpd.nix
|
||||
./sway.nix
|
||||
inputs.hyprland.homeManagerModules.default
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
] ++ lib.optional (desktop == "sway") ./sway.nix;
|
||||
];
|
||||
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue