refactor(options): move options to global scope
This commit is contained in:
@@ -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; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../options.nix
|
|
||||||
|
|
||||||
./git.nix
|
./git.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./nixvim
|
./nixvim
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../options.nix
|
|
||||||
|
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user