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