mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
enable gofumpt
This commit is contained in:
parent
a33e8cc43f
commit
887d4b7322
3 changed files with 17 additions and 15 deletions
|
|
@ -3,6 +3,8 @@ inputs.treefmt-nix.lib.evalModule pkgs {
|
|||
projectRootFile = ".git/config";
|
||||
|
||||
programs = {
|
||||
gofumpt.enable = true;
|
||||
|
||||
nixfmt.enable = true;
|
||||
|
||||
deadnix.enable = true;
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ func MountSecretFs(mountpoint string, keysGID int, useTmpfs bool, userMode bool)
|
|||
return nil
|
||||
}
|
||||
|
||||
var fstype = "ramfs"
|
||||
var fsmagic = RamfsMagic
|
||||
fstype := "ramfs"
|
||||
fsmagic := RamfsMagic
|
||||
if useTmpfs {
|
||||
fstype = "tmpfs"
|
||||
fsmagic = TmpfsMagic
|
||||
|
|
|
|||
|
|
@ -70,19 +70,19 @@ type template struct {
|
|||
}
|
||||
|
||||
type manifest struct {
|
||||
Secrets []secret `json:"secrets"`
|
||||
Templates []template `json:"templates"`
|
||||
PlaceholderBySecretName map[string]string `json:"placeholderBySecretName"`
|
||||
SecretsMountPoint string `json:"secretsMountPoint"`
|
||||
SymlinkPath string `json:"symlinkPath"`
|
||||
KeepGenerations int `json:"keepGenerations"`
|
||||
SSHKeyPaths []string `json:"sshKeyPaths"`
|
||||
GnupgHome string `json:"gnupgHome"`
|
||||
AgeKeyFile string `json:"ageKeyFile"`
|
||||
AgeSSHKeyPaths []string `json:"ageSshKeyPaths"`
|
||||
UseTmpfs bool `json:"useTmpfs"`
|
||||
UserMode bool `json:"userMode"`
|
||||
Logging loggingConfig `json:"logging"`
|
||||
Secrets []secret `json:"secrets"`
|
||||
Templates []template `json:"templates"`
|
||||
PlaceholderBySecretName map[string]string `json:"placeholderBySecretName"`
|
||||
SecretsMountPoint string `json:"secretsMountPoint"`
|
||||
SymlinkPath string `json:"symlinkPath"`
|
||||
KeepGenerations int `json:"keepGenerations"`
|
||||
SSHKeyPaths []string `json:"sshKeyPaths"`
|
||||
GnupgHome string `json:"gnupgHome"`
|
||||
AgeKeyFile string `json:"ageKeyFile"`
|
||||
AgeSSHKeyPaths []string `json:"ageSshKeyPaths"`
|
||||
UseTmpfs bool `json:"useTmpfs"`
|
||||
UserMode bool `json:"userMode"`
|
||||
Logging loggingConfig `json:"logging"`
|
||||
}
|
||||
|
||||
type secretFile struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue