feat(dev,base): 添加 mise 全局信任和 Git 跳过 SSL 验证配置
- mise: 信任根目录下所有配置 (trusted_config_paths = ["/"]) - git: 全局禁用 SSL 证书验证 (http.sslVerify = false)
This commit is contained in:
+6
-1
@@ -4,8 +4,9 @@ from decman.plugins.pacman import packages as pacman_packages
|
||||
|
||||
|
||||
class BaseModule(Module):
|
||||
def __init__(self):
|
||||
def __init__(self, user: str):
|
||||
super().__init__("base")
|
||||
self.user = user
|
||||
|
||||
def files(self):
|
||||
return {
|
||||
@@ -16,6 +17,10 @@ class BaseModule(Module):
|
||||
source_file="./system/etc/sudoers.d/10-wheel",
|
||||
permissions=0o440,
|
||||
),
|
||||
f"/home/{self.user}/.config/git/config": File(
|
||||
source_file="./home/.config/git/config",
|
||||
owner=self.user,
|
||||
),
|
||||
}
|
||||
|
||||
@pacman_packages
|
||||
|
||||
Reference in New Issue
Block a user