add agenix
This commit is contained in:
parent
191cb91501
commit
9e62e079ae
7 changed files with 34 additions and 3 deletions
17
modules/system/agenix/agenix.nix
Normal file
17
modules/system/agenix/agenix.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
modules/system/agenix/easyroam.age
Normal file
BIN
modules/system/agenix/easyroam.age
Normal file
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue