diff --git a/flake.nix b/flake.nix index 75c1d0f..2d1c88b 100644 --- a/flake.nix +++ b/flake.nix @@ -23,9 +23,11 @@ system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; + commonModules = [ ./options.nix ]; + mkNixosConfig = name: modules: { "${name}" = nixpkgs.lib.nixosSystem { - inherit modules; + modules = modules ++ commonModules; specialArgs = { inherit inputs outputs; }; }; }; diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index acd9e70..98bbcbe 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -1,7 +1,5 @@ { imports = [ - ../options.nix - ./git.nix ./fish.nix ./nixvim diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 0dfad01..fc9ade2 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -1,7 +1,5 @@ { imports = [ - ../options.nix - ./fish.nix ./firefox.nix ./hyprland.nix diff --git a/modules/options.nix b/options.nix similarity index 100% rename from modules/options.nix rename to options.nix