hm: move to standalone installation

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2024-07-11 04:53:41 -03:00
parent 2bd877e2c9
commit eaabdb3f31
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -11,34 +11,26 @@
}; };
outputs = outputs =
{ { home-manager, nixpkgs, ... }@inputs:
self,
home-manager,
nixpkgs,
...
}@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in in
{ {
nixosConfigurations."nixos" = nixosConfigurations."nixos" =
let let
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [ ./nixos.nix ];
./nixos.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.wizardlink = import ./home-manager.nix;
}
];
in in
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; }; nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
formatter."${system}" = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style; homeConfigurations.wizardlink = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = inputs;
modules = [ ./home-manager.nix ];
};
formatter."${system}" = pkgs.nixfmt-rfc-style;
}; };
} }