!XLCFfvFhUkYwOMLbVx:nixos.org

agenix

373 Members
age-encrypted secrets for NixOS https://github.com/ryantm/agenix/98 Servers

Load older messages


SenderMessageTime
14 Jul 2023
@cole-h:matrix.orgcole-h changed their display name from cole-h to cole-h (back 1 Aug).23:51:20
25 Jul 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:57:13
@vika:fireburn.ruVika (she/her) joined the room.13:10:25
26 Jul 2023
@krustykonez:beeper.comkrustyjonez joined the room.13:02:42
27 Jul 2023
@ribosomerocker:matrix.orgribosomerocker joined the room.03:02:40
@charles:computer.surgeryCharles ⚡️ joined the room.05:36:13
28 Jul 2023
@mokasin:mokasin.deFabian joined the room.13:56:08
29 Jul 2023
@arichtman:matrix.orgarichtman joined the room.03:52:04
30 Jul 2023
@kyub:matrix.orgkyub joined the room.18:01:45
@khaneliman:matrix.orgKhaneliman joined the room.20:03:04
@khaneliman:matrix.orgKhaneliman changed their display name from Austin Horstman to Khaneliman.20:09:53
@khaneliman:matrix.orgKhaneliman set a profile picture.20:12:08
31 Jul 2023
@bddvlpr:matrix.orgbddvlpr joined the room.19:34:58
@bddvlpr:matrix.orgbddvlprHey, quick question. I’m currently using Agenix with its HomeManager module, but would like to have my secrets also accessible outside of HM. Do I import them twice or should I somehow pass them to HM?19:36:11
1 Aug 2023
@charles:computer.surgeryCharles ⚡️ changed their profile picture.01:12:22
@cole-h:matrix.orgcole-h changed their display name from cole-h (back 1 Aug) to cole-h.14:15:19
2 Aug 2023
@l_ul_u:matrix.orgLucien Huber joined the room.09:43:40
@adam:valkor.netadamcstephens left the room.23:43:19
3 Aug 2023
@denkn:denkn.atDenKn changed their profile picture.13:48:34
@cafkafk:nixos.devChristina Sørensen joined the room.06:11:56
5 Aug 2023
@maralorn:maralorn.demaralorn

When I do enable documentation.nixos.includeAllModules with agenix I get:

┃        error: attribute 'users' missing
┃ 
┃        at /nix/store/nwlhw7kzyyryssszhvw2as3gq4ncc1ai-source/modules/age.nix:15:11:
┃ 
┃            14|
┃            15|   users = config.users.users;
┃              |           ^
┃            16|
16:01:53
@maralorn:maralorn.demaralornIs it me or is it agenix?^^16:02:07
@ryantm:matrix.orgryantmWeird.18:40:16
@maralorn:maralorn.demaralornCan anyone else reproduce this? Is there anyone who has the scenic module imported and that docs option on in their system?21:41:07
@maralorn:maralorn.demaralorn* Can anyone else reproduce this? Is there anyone who has the agenix module imported and that docs option on in their system?21:41:23
10 Aug 2023
@metasyntactical:matrix.orgmetasyntactical joined the room.22:41:56
@metasyntactical:matrix.orgmetasyntactical

Hi, I'm trying to add agenix to my newish flakes nixos config and I created the secrets.nix and all the age files and added a reference to a secret as directed in the docs and I now get the following error:

warning: Git tree '/etc/nixos' is dirty
building the system configuration...
warning: Git tree '/etc/nixos' is dirty
error:
       Failed assertions:
       - age.identityPaths must be set.
(use '--show-trace' to show detailed location information)
22:43:30
@metasyntactical:matrix.orgmetasyntacticalI included all of the ssh host and user keys in the secrets.nix file. Does it not see them automatically? Do I have to manually point to each privkey file?22:44:13
@metasyntactical:matrix.orgmetasyntactical

If this helps, here's my flakes.nix:


  description = "my config";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
    home-manager = {
      url = "github:nix-community/home-manager/release-23.05";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    agenix = {
      url = "github:ryantm/agenix";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.darwin.follows = "";
    };
  };

  outputs = { self, nixpkgs, home-manager, agenix, ... }: 
    let 
        system = "x86_64-linux";
        agenixModule = { environment.systemPackages = [ agenix.packages.${system}.default nixpkgs.age-plugin-yubikey ]; };
    in {
      nixosConfigurations = {
        "theseus" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ./machines/theseus.nix  agenix.nixosModules.default  agenixModule ]; };
      };
    };
}
22:45:42
@metasyntactical:matrix.orgmetasyntactical *

If this helps, here's my flakes.nix:


  description = "my config";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
    home-manager = {
      url = "github:nix-community/home-manager/release-23.05";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    agenix = {
      url = "github:ryantm/agenix";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.darwin.follows = "";
    };
  };

  outputs = { self, nixpkgs, home-manager, agenix, ... }: 
    let 
        system = "x86_64-linux";
        agenixModule = { environment.systemPackages = [ agenix.packages.${system}.default ]; };
    in {
      nixosConfigurations = {
        "theseus" = nixpkgs.lib.nixosSystem { inherit system; modules = [ ./machines/theseus.nix  agenix.nixosModules.default  agenixModule ]; };
      };
    };
}
22:59:40

Show newer messages


Back to Room ListRoom Version: 6