enable gofumpt

This commit is contained in:
Jörg Thalheim 2024-11-17 18:36:35 +01:00
parent a33e8cc43f
commit 887d4b7322
3 changed files with 17 additions and 15 deletions

View file

@ -3,6 +3,8 @@ inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = ".git/config";
programs = {
gofumpt.enable = true;
nixfmt.enable = true;
deadnix.enable = true;

View file

@ -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

View file

@ -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 {