treewide: remove with lib (#6512)
* nixos: remove with lib * nix-darwin: remove with lib * home-manager: remove with lib * modules/accounts: remove with lib * modules/config: remove with lib * modules/i18n: remove with lib * modules/misc: remove with lib * modules: remove with lib * modules/targets: remove with lib * tests/modules/firefox: remove with lib * tests/modules/services: remove with lib
This commit is contained in:
parent
83f4629364
commit
95711f9266
62 changed files with 618 additions and 666 deletions
|
|
@ -1,7 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.home-manager;
|
||||
|
|
@ -9,11 +7,11 @@ let
|
|||
in {
|
||||
imports = [ ../nixos/common.nix ];
|
||||
|
||||
config = mkMerge [
|
||||
config = lib.mkMerge [
|
||||
{ home-manager.extraSpecialArgs.darwinConfig = config; }
|
||||
(mkIf (cfg.users != { }) {
|
||||
system.activationScripts.postActivation.text = concatStringsSep "\n"
|
||||
(mapAttrsToList (username: usercfg: ''
|
||||
(lib.mkIf (cfg.users != { }) {
|
||||
system.activationScripts.postActivation.text = lib.concatStringsSep "\n"
|
||||
(lib.mapAttrsToList (username: usercfg: ''
|
||||
echo Activating home-manager configuration for ${username}
|
||||
sudo -u ${username} --set-home ${
|
||||
pkgs.writeShellScript "activation-${username}" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue