|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
{ lib, inputs, nixpkgs, home-manager, user, ... }:
|
|
|
|
|
{ lib, inputs, nixpkgs, home-manager, user, configDir, ... }:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
system = "x86_64-linux";
|
|
|
|
@ -10,6 +10,7 @@ let
|
|
|
|
|
hmImports = [
|
|
|
|
|
(import ./home.nix)
|
|
|
|
|
];
|
|
|
|
|
hmArgs = { inherit user configDir; };
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
desktop = lib.nixosSystem {
|
|
|
|
@ -26,7 +27,7 @@ in
|
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
|
home-manager = {
|
|
|
|
|
useUserPackages = true;
|
|
|
|
|
extraSpecialArgs = { inherit user; };
|
|
|
|
|
extraSpecialArgs = hmArgs;
|
|
|
|
|
users.${user} = {
|
|
|
|
|
imports = hmImports ++ [
|
|
|
|
|
(import ./desktop/home.nix)
|
|
|
|
@ -55,7 +56,7 @@ in
|
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
|
home-manager = {
|
|
|
|
|
useUserPackages = true;
|
|
|
|
|
extraSpecialArgs = { inherit user; };
|
|
|
|
|
extraSpecialArgs = hmArgs;
|
|
|
|
|
users.${user} = {
|
|
|
|
|
imports = hmImports ++ [
|
|
|
|
|
(import ./thinkpads/home.nix)
|
|
|
|
@ -80,7 +81,7 @@ in
|
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
|
home-manager = {
|
|
|
|
|
useUserPackages = true;
|
|
|
|
|
extraSpecialArgs = { inherit user; };
|
|
|
|
|
extraSpecialArgs = hmArgs;
|
|
|
|
|
users.${user} = {
|
|
|
|
|
imports = hmImports ++ [
|
|
|
|
|
(import ./thinkpads/home.nix)
|
|
|
|
|