add agenix

This commit is contained in:
lucy 2026-10-18 12:15:00 +02:00
commit 9e62e079ae
7 changed files with 34 additions and 3 deletions

View file

@ -4,6 +4,18 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree"; import-tree.url = "github:vic/import-tree";
nix-easyroam = {
url = "github:0x5a4/nix-easyroam";
inputs.nixpkgs.follows = "nixpkgs";
};
nixcord = {
url = "github:4evy/nixcord";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules); outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
} }

View file

@ -3,6 +3,7 @@
modules = with self.nixosModules; [ modules = with self.nixosModules; [
user user
packages packages
/etc/nixos/hardware-configuration.nix
]; ];
}; };
} }

View file

@ -0,0 +1,17 @@
{ ... }: {
flake.nixosModules =
{ config, ... }:
let
main = "age17hvac3hn79mwttel9snw87a20x4vguh7y7ys43xmvlhrl3mqs3wswuzlt6";
in
{
"easyroam.age".publicKeys = [ main ];
age = {
enable = true;
identityPaths = [ "/var/lib/misc/key.age" ];
secrets = {
easyroam.file = ./easyroam.age;
};
};
};
}

Binary file not shown.

View file

@ -1,5 +1,6 @@
{ ... }: { { ... }: {
flake.nixosModules.packages = { pkgs, ... }: { flake.nixosModules.packages = { pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
stow stow
ufetch ufetch
@ -31,7 +32,7 @@
clang clang
gdb gdb
gnumake gnumake
libreoffice-stable libreoffice
ripgrep ripgrep
jq jq
nmgui nmgui

View file

@ -1,9 +1,8 @@
{ ... }: { { ... }: {
flake.nixosModule.user = { pkgs, ... }: { flake.nixosModules.user = { pkgs, ... }: {
users.users."lucy" = { users.users."lucy" = {
isNormalUser = true; isNormalUser = true;
description = "lucy"; description = "lucy";
shell = pkgs.zsh;
extraGroups = [ extraGroups = [
"networkmanager" "networkmanager"
"wheel" "wheel"

1
result Symbolic link
View file

@ -0,0 +1 @@
/nix/store/3lkm1mz19agygph7bmav1qf9k3jx97mx-nixos-vm