difftreelog
refactor drop long deprecated configs
in: trunk
5 files changed
modules/meta.nixdiffbeforeafterbothno changes
modules/module-list.nixdiffbeforeafterboth2 ./assertions.nix2 ./assertions.nix3 ./fleetLib.nix3 ./fleetLib.nix4 ./hosts.nix4 ./hosts.nix5 ./meta.nix6 ./nixos.nix5 ./nixos.nix7 ./nixpkgs.nix6 ./nixpkgs.nix8 ./secrets.nix7 ./secrets.nixmodules/nixos.nixdiffbeforeafterboth11 inherit (lib.attrsets) mapAttrs;11 inherit (lib.attrsets) mapAttrs;12 inherit (lib.options) mkOption;12 inherit (lib.options) mkOption;13 inherit (lib.types) deferredModule unspecified;13 inherit (lib.types) deferredModule unspecified;14 inherit (lib.modules) mkRemovedOptionModule;15 inherit (lib.strings) escapeNixIdentifier;14 inherit (lib.strings) escapeNixIdentifier;16 inherit (fleetLib.options) mkHostsOption;15 inherit (fleetLib.options) mkHostsOption;171655 };54 };56 };55 };57 config = {56 config = {58 # imports = [59 # (mkRemovedOptionModule ["nixosModules"] "replaced with hosts.*.nixos.imports.")60 # ];61 nixos = let 57 nixos = let 62 inherit (hostArgs.config) system;58 inherit (hostArgs.config) system;63 in {59 in {94 };90 };95 });91 });96 };92 };97 imports = [98 (mkRemovedOptionModule [ "nixosModules" ] "replaced with nixos.imports.")99 ];100 config.nixos.imports = import ./nixos/module-list.nix;93 config.nixos.imports = import ./nixos/module-list.nix;101}94}10295modules/nixos/meta.nixdiffbeforeafterboth1{ lib, ... }:2let3 inherit (lib.modules) mkRemovedOptionModule;4in5{1{6 imports = [7 (mkRemovedOptionModule [ "tags" ]8 "tags are now defined at the host level, not the nixos system level for fast filtering without evaluating unnecessary hosts."9 )10 (mkRemovedOptionModule [11 "network"12 ] "network is now defined at the host level, not the nixos system level")13 ];1415 # Version of environment (fleet scripts such as rollback) already installed on the host2 # Version of environment (fleet scripts such as rollback) already installed on the host16 config = {3 config = {modules/nixpkgs.nixdiffbeforeafterboth7let7let8 inherit (lib.options) mkOption literalExpression;8 inherit (lib.options) mkOption literalExpression;9 inherit (lib.types) path;9 inherit (lib.types) path;10 inherit (lib.modules) mkRemovedOptionModule;11 inherit (fleetLib.options) mkHostsOption;10 inherit (fleetLib.options) mkHostsOption;12 inherit (fleetLib.types) listOfOverlay;11 inherit (fleetLib.types) listOfOverlay;131243 default = config.nixpkgs.buildUsing;42 default = config.nixpkgs.buildUsing;44 defaultText = literalExpression "config.nixpkgs.buildUsing";43 defaultText = literalExpression "config.nixpkgs.buildUsing";45 };44 };46 # imports = [47 # (mkRemovedOptionModule ["nixpkgs" "overlays"] "this option needs to be specified at nixosModules level")48 # ];49 config.nixos = {45 config.nixos = {50 inherit _file;46 inherit _file;51 nixpkgs.overlays = config.nixpkgs.overlays;47 nixpkgs.overlays = config.nixpkgs.overlays;52 imports = [53 (mkRemovedOptionModule [54 "nixpkgs"55 "buildUsing"56 ] "this option should be specified at the host level, not the nixosModules level")57 ];58 };48 };59 };49 };60 };50 };