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

@ -3,6 +3,7 @@
modules = with self.nixosModules; [
user
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, ... }: {
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
stow
ufetch
@ -31,7 +32,7 @@
clang
gdb
gnumake
libreoffice-stable
libreoffice
ripgrep
jq
nmgui

View file

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