treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
+19
-15
@@ -1,29 +1,33 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
cfg = config.home-manager;
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [ ../nixos/common.nix ];
|
||||
|
||||
config = lib.mkMerge [
|
||||
{ home-manager.extraSpecialArgs.darwinConfig = config; }
|
||||
(lib.mkIf (cfg.users != { }) {
|
||||
system.activationScripts.postActivation.text = lib.concatStringsSep "\n"
|
||||
(lib.mapAttrsToList (username: usercfg: ''
|
||||
system.activationScripts.postActivation.text = lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (username: usercfg: ''
|
||||
echo Activating home-manager configuration for ${usercfg.home.username}
|
||||
sudo -u ${usercfg.home.username} --set-home ${
|
||||
pkgs.writeShellScript "activation-${usercfg.home.username}" ''
|
||||
${lib.optionalString (cfg.backupFileExtension != null)
|
||||
"export HOME_MANAGER_BACKUP_EXT=${
|
||||
lib.escapeShellArg cfg.backupFileExtension
|
||||
}"}
|
||||
${lib.optionalString cfg.verbose "export VERBOSE=1"}
|
||||
exec ${usercfg.home.activationPackage}/activate
|
||||
''
|
||||
}
|
||||
'') cfg.users);
|
||||
sudo -u ${usercfg.home.username} --set-home ${pkgs.writeShellScript "activation-${usercfg.home.username}" ''
|
||||
${lib.optionalString (
|
||||
cfg.backupFileExtension != null
|
||||
) "export HOME_MANAGER_BACKUP_EXT=${lib.escapeShellArg cfg.backupFileExtension}"}
|
||||
${lib.optionalString cfg.verbose "export VERBOSE=1"}
|
||||
exec ${usercfg.home.activationPackage}/activate
|
||||
''}
|
||||
'') cfg.users
|
||||
);
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user