feat: add agenix for secrets management

This commit is contained in:
ryan4yin
2023-05-21 00:56:37 +08:00
parent 32d6353cdc
commit 6710f34e50
15 changed files with 303 additions and 56 deletions

View File

@@ -5,7 +5,9 @@
fileSystems."/home/ryan/SMB-Downloads" = {
device = "//192.168.5.194/Downloads";
fsType = "cifs";
options = ["vers=3.0,uid=1000,gid=100,dir_mode=0755,file_mode=0755,mfsymlinks,credentials=/etc/nixos/.smb_credentials,nofail"];
options = [
"vers=3.0,uid=1000,gid=100,dir_mode=0755,file_mode=0755,mfsymlinks,credentials=${config.age.secrets.smb-credentials.path},nofail"
];
};
}

View File

@@ -21,17 +21,19 @@
# Use `config.nur.repos.<user>.<package-name>` in NixOS Module for packages from the NUR.
nur.nixosModules.nur
./cifs-mount.nix
../../modules/system.nix
../../modules/hyprland.nix
#../../modules/i3.nix
../../modules/fcitx5
../../modules/nur-packages.nix
../../modules/fhs-fonts.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/fcitx5
../../modules/fhs-fonts.nix
../../modules/hyprland.nix
#../../modules/i3.nix
../../modules/nur-packages.nix
../../modules/system.nix
../../modules/user_group.nix
../../secrets
];
# Bootloader.

View File

@@ -20,16 +20,18 @@
# Use `config.nur.repos.<user>.<package-name>` in NixOS Module for packages from the NUR.
nur.nixosModules.nur
../../modules/system.nix
../../modules/hyprland.nix
#../../modules/i3.nix
../../modules/fcitx5
../../modules/nur-packages.nix
../../modules/fhs-fonts.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/fcitx5
../../modules/fhs-fonts.nix
../../modules/hyprland.nix
#../../modules/i3.nix
../../modules/nur-packages.nix
../../modules/system.nix
../../modules/user_group.nix
../../secrets
];
# Bootloader.