mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
home-manager: extract common configuration from module
This commit is contained in:
parent
10865a1545
commit
395a489532
2 changed files with 8 additions and 7 deletions
|
|
@ -49,6 +49,7 @@
|
|||
extraSpecialArgs.hostname = hostname;
|
||||
sharedModules = [{home.stateVersion = lib.mkDefault config.system.stateVersion;}];
|
||||
users.leana.imports = [
|
||||
self.homeModules.commonModules
|
||||
self.homeModules.${"named-" + hostname}
|
||||
or (
|
||||
builtins.trace "No named home-manager configuration supplied for named system config `${hostname}', defaulting to common modules."
|
||||
|
|
@ -144,6 +145,7 @@
|
|||
useUserPackages = true;
|
||||
extraSpecialArgs.hostname = hostname;
|
||||
users.leana.imports = [
|
||||
self.homeModules.commonModules
|
||||
self.homeModules.${"named-" + hostname}
|
||||
or (
|
||||
builtins.trace "No named home-manager configuration supplied for named nix-darwin config `${hostname}', defaulting to common modules."
|
||||
|
|
@ -160,6 +162,8 @@
|
|||
sharedModules = {hostname, ...}: [
|
||||
{programs.home-manager.enable = true;}
|
||||
nixpkgsConfig
|
||||
|
||||
self.homeModules.commonModules
|
||||
self.homeModules.${"named-" + hostname}
|
||||
or (
|
||||
builtins.trace "No named home-manager configuration supplied for named home-manager config `${hostname}', defaulting to common modules."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue