refactor(flake): split NixOS Home Manager configs

Create a NixOS-specific Home Manager configuration and a reusable shared
configuration that can be imported and also used by other configurations,
such as WSL2.
This commit is contained in:
Oliver Davies 2023-08-08 20:15:31 +01:00
parent 994341071a
commit 3b890d9ee5
11 changed files with 729 additions and 729 deletions

View file

@ -1,5 +1,7 @@
{ inputs, username }:
{ desktop }:
let
configuration = import ./configuration.nix;
hardware-configuration = import ./hardware-configuration.nix;
@ -8,7 +10,7 @@ inputs.nixpkgs.lib.nixosSystem {
modules = [
inputs.home-manager.nixosModules.home-manager {
home-manager = {
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs desktop username; };
useGlobalPkgs = true;
useUserPackages = true;
users."${username}" = import ./home-manager.nix;