From af801472bca8817f82af47e27a0e72d566abd873 Mon Sep 17 00:00:00 2001 From: Mohamed Chrayed Date: Tue, 3 Mar 2026 21:01:15 +0100 Subject: [PATCH] refactor --- .../hosts/computer-mo/nixos-configurations.nix | 15 ++++----------- modules/platform/mkhost.nix | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/modules/hosts/computer-mo/nixos-configurations.nix b/modules/hosts/computer-mo/nixos-configurations.nix index 5b631e2..5b3d355 100644 --- a/modules/hosts/computer-mo/nixos-configurations.nix +++ b/modules/hosts/computer-mo/nixos-configurations.nix @@ -1,13 +1,6 @@ -{ inputs, ... }: -let - system = "x86_64-linux"; - host = "computer-mo"; - - mkHost = inputs.self.lib.mkHost; -in -{ - flake.nixosConfigurations.${host} = mkHost { - inherit system host; - extraModules = [ inputs.self.nixosModules.${host} ]; +{ inputs, ... }: { + flake.nixosConfigurations."computer-mo" = inputs.self.lib.mkHost { + system = "x86_64-linux"; + host = "computer-mo"; }; } diff --git a/modules/platform/mkhost.nix b/modules/platform/mkhost.nix index d9068da..c3ddd4e 100644 --- a/modules/platform/mkhost.nix +++ b/modules/platform/mkhost.nix @@ -9,6 +9,6 @@ config.allowUnfree = true; }; }; - modules = extraModules; + modules = [ inputs.self.nixosModules.${host} ] ++ extraModules; }; }