refactor(options): move options to global scope

This commit is contained in:
2026-02-08 16:07:19 +01:00
parent 5cda61783c
commit 74a32efdd0
4 changed files with 3 additions and 5 deletions
+3 -1
View File
@@ -23,9 +23,11 @@
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
commonModules = [ ./options.nix ];
mkNixosConfig = name: modules: { mkNixosConfig = name: modules: {
"${name}" = nixpkgs.lib.nixosSystem { "${name}" = nixpkgs.lib.nixosSystem {
inherit modules; modules = modules ++ commonModules;
specialArgs = { inherit inputs outputs; }; specialArgs = { inherit inputs outputs; };
}; };
}; };
-2
View File
@@ -1,7 +1,5 @@
{ {
imports = [ imports = [
../options.nix
./git.nix ./git.nix
./fish.nix ./fish.nix
./nixvim ./nixvim
-2
View File
@@ -1,7 +1,5 @@
{ {
imports = [ imports = [
../options.nix
./fish.nix ./fish.nix
./firefox.nix ./firefox.nix
./hyprland.nix ./hyprland.nix
View File