mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:59:23 +08:00
Compare commits
1 Commits
0211a71cfa
...
test-bindm
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f6bb9f6db |
@@ -132,16 +132,23 @@ inputs:
|
|||||||
home.file = inputs.lib.mkMerge (builtins.map (file: { "${file}".enable = false; })
|
home.file = inputs.lib.mkMerge (builtins.map (file: { "${file}".enable = false; })
|
||||||
[ ".zshrc" ".zshenv" ".profile" ".bashrc" ".bash_profile" ]);
|
[ ".zshrc" ".zshenv" ".profile" ".bashrc" ".bash_profile" ]);
|
||||||
}];
|
}];
|
||||||
systemd.mounts = builtins.concatLists (builtins.map
|
fileSystems = inputs.lib.mkMerge (builtins.map
|
||||||
(user: builtins.map
|
(user: inputs.lib.mkMerge (builtins.map
|
||||||
(file:
|
(file:
|
||||||
{
|
{
|
||||||
what = "${inputs.config.home-manager.users.${user}.home.file.${file}.source}";
|
"/home/${user}/${file}" =
|
||||||
where = "/home/${user}/${file}";
|
{
|
||||||
options = "bind";
|
device = "${inputs.config.home-manager.users.${user}.home.file.${file}.source}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
[ ".zshrc" ".zshenv" ".profile" ".bashrc" ".bash_profile" ])
|
[ ".zshrc" ".zshenv" ".profile" ".bashrc" ".bash_profile" ]))
|
||||||
|
user.users);
|
||||||
|
users.users = inputs.lib.mkMerge (builtins.map
|
||||||
|
(user: { ${user}.home = "/home/${user}"; })
|
||||||
|
user.users);
|
||||||
|
home-manager.users = inputs.lib.mkMerge (builtins.map
|
||||||
|
(user: { ${user}.home.homeDirectory = "/home/${user}"; })
|
||||||
user.users);
|
user.users);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user