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:
parent
994341071a
commit
3b890d9ee5
11 changed files with 729 additions and 729 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue