remove age
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
blake.enable = true;
|
||||
};
|
||||
|
||||
# age
|
||||
#config.age.keyFile = "/home/blake/.nix/.keyring/age/keys.txt";
|
||||
|
||||
# passwordless rebuild
|
||||
security.sudo.extraRules = [
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user