remove age

This commit is contained in:
2025-10-04 19:58:50 -05:00
parent c544f62d70
commit 5ad51ef57c
4 changed files with 1 additions and 31 deletions

View File

@@ -9,15 +9,13 @@
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";
};
outputs = { self, nixpkgs, home-manager, agenix, ... }: {
outputs = { self, nixpkgs, home-manager, ... }: {
nixosConfigurations.snowbelle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/snowbelle/configuration.nix
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager = {
@@ -33,7 +31,6 @@
system = "x86_64-linux";
modules = [
./hosts/vaniville/configuration.nix
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager = {

View File

@@ -29,8 +29,6 @@
blake.enable = true;
};
# age
#config.age.keyFile = "/home/blake/.nix/.keyring/age/keys.txt";
# passwordless rebuild
security.sudo.extraRules = [

View File

@@ -1,23 +0,0 @@
{ config, lib, pkgs, ... }:
let
# Central list of secrets
secret_names = [
"tailscale_authkey"
];
# Map the list into age.secrets definitions
secrets = builtins.listToAttrs (map
(name: {
name = name;
value.file = ../../secrets/${name}.age;
})
secret_names);
in {
options.secrets.enable = lib.mkEnableOption "Enable system secrets";
config = lib.mkIf config.modules.secrets.enable {
age.keyFile = "/home/blake/.keyring/age/keys.txt";
age.secrets = secrets;
};
}

View File

@@ -3,7 +3,6 @@
{
imports = [
./ssh.nix
./age.nix
./docker.nix
./tailscale.nix
./syncthing.nix
@@ -11,7 +10,6 @@
];
modules.system.ssh.enable = lib.mkDefault true;
modules.secrets.enable = lib.mkDefault true;
modules.system.docker.enable = lib.mkDefault true;
modules.system.tailscale.enable = lib.mkDefault true;
modules.system.syncthing.enable = lib.mkDefault true;