From c653e89d085976e8115f9b78ab03cf97b4a8d94a Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 08 Jan 2026 14:13:29 +0000 Subject: [PATCH] refactor: drop long deprecated configs --- --- a/modules/meta.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ lib, ... }: -let - inherit (lib.modules) mkRemovedOptionModule; -in -{ - imports = [ - (mkRemovedOptionModule [ "fleetModules" ] "replaced with imports.") - ]; -} --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -2,7 +2,6 @@ ./assertions.nix ./fleetLib.nix ./hosts.nix - ./meta.nix ./nixos.nix ./nixpkgs.nix ./secrets.nix --- a/modules/nixos.nix +++ b/modules/nixos.nix @@ -11,7 +11,6 @@ inherit (lib.attrsets) mapAttrs; inherit (lib.options) mkOption; inherit (lib.types) deferredModule unspecified; - inherit (lib.modules) mkRemovedOptionModule; inherit (lib.strings) escapeNixIdentifier; inherit (fleetLib.options) mkHostsOption; @@ -55,9 +54,6 @@ }; }; config = { - # imports = [ - # (mkRemovedOptionModule ["nixosModules"] "replaced with hosts.*.nixos.imports.") - # ]; nixos = let inherit (hostArgs.config) system; in { @@ -94,8 +90,5 @@ }; }); }; - imports = [ - (mkRemovedOptionModule [ "nixosModules" ] "replaced with nixos.imports.") - ]; config.nixos.imports = import ./nixos/module-list.nix; } --- a/modules/nixos/meta.nix +++ b/modules/nixos/meta.nix @@ -1,17 +1,4 @@ -{ lib, ... }: -let - inherit (lib.modules) mkRemovedOptionModule; -in { - imports = [ - (mkRemovedOptionModule [ "tags" ] - "tags are now defined at the host level, not the nixos system level for fast filtering without evaluating unnecessary hosts." - ) - (mkRemovedOptionModule [ - "network" - ] "network is now defined at the host level, not the nixos system level") - ]; - # Version of environment (fleet scripts such as rollback) already installed on the host config = { environment.etc.FLEET_HOST.text = "1"; --- a/modules/nixpkgs.nix +++ b/modules/nixpkgs.nix @@ -7,7 +7,6 @@ let inherit (lib.options) mkOption literalExpression; inherit (lib.types) path; - inherit (lib.modules) mkRemovedOptionModule; inherit (fleetLib.options) mkHostsOption; inherit (fleetLib.types) listOfOverlay; @@ -43,18 +42,9 @@ default = config.nixpkgs.buildUsing; defaultText = literalExpression "config.nixpkgs.buildUsing"; }; - # imports = [ - # (mkRemovedOptionModule ["nixpkgs" "overlays"] "this option needs to be specified at nixosModules level") - # ]; config.nixos = { inherit _file; nixpkgs.overlays = config.nixpkgs.overlays; - imports = [ - (mkRemovedOptionModule [ - "nixpkgs" - "buildUsing" - ] "this option should be specified at the host level, not the nixosModules level") - ]; }; }; }; -- gitstuff