Avoid importing the same file multiple times

This commit is contained in:
Leonardo Eugênio 2023-01-23 00:35:40 -03:00
parent 59c60cf9b2
commit 794613626e
18 changed files with 21 additions and 20 deletions

View file

@ -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.