From a0277b8d265af4ad40d190f86a40cd25ac0fb344 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 21 Nov 2025 20:27:27 +0100 Subject: [PATCH] refactor: update flake file and install home-manager in standalone mode --- flake.nix | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index 275ef53..fbdd0fa 100644 --- a/flake.nix +++ b/flake.nix @@ -16,20 +16,30 @@ }; - outputs = { self, nixpkgs, home-manager, ... }@inputs: { - - # nixos system config - nixosConfigurations.default = nixpkgs.lib.nixosSystem { + outputs = { self, nixpkgs, home-manager, ... }: + let + lib = nixpkgs.lib; system = "x86_64-linux"; - specialArgs = {inherit inputs;}; - - modules = [ - # import host specific configs - ./hosts/default/configuration.nix - # import host specific hardware configs - ./hosts/default/hardware-configuration.nix - ]; + pkgs = nixpkgs.legacyPackages.${system}; + in { + # nixos system config + nixosConfigurations = { + default = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + # import host specific configs + ./hosts/default/configuration.nix + # import host specific hardware configs + ./hosts/default/hardware-configuration.nix + ]; + }; }; + # home-manager config + homeConfigurations = { + aaron = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ ./hosts/default/home.nix ]; + }; + }; }; - }