add agenix cli command

This commit is contained in:
Andreas Zweili 2022-03-16 14:46:33 +01:00
parent edd17411c2
commit 6e4b951381
5 changed files with 30 additions and 6 deletions

View File

@ -1,5 +1,25 @@
{
"nodes": {
"agenix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1646845404,
"narHash": "sha256-JENXFCI2HVqi0whBzt7MAW9PX3ziEaYqBhMux+4g+VM=",
"owner": "ryantm",
"repo": "agenix",
"rev": "764c975e74bce2f89a5106b68ec48e2b586f893c",
"type": "github"
},
"original": {
"owner": "ryantm",
"repo": "agenix",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -70,6 +90,7 @@
},
"root": {
"inputs": {
"agenix": "agenix",
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",

View File

@ -21,6 +21,7 @@
outputs =
inputs@{ self
, agenix
, nixpkgs
, nixpkgs-unstable
, nixos-hardware
@ -77,7 +78,7 @@
configurationNix
# Common configuration
./modules/common-x86
(import ./modules/common-x86 {inherit custom inputs pkgs system;})
home-manager.nixosModules.home-manager
{

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ inputs, pkgs, system, ... }:
{
environment.systemPackages = with pkgs; [
@ -14,6 +14,7 @@
unzip
vim
wget
inputs.agenix.defaultPackage."${system}"
];
environment.shellAliases = {
format-modules = "nixpkgs-fmt **/*.nix";

View File

@ -1,7 +1,7 @@
{ inputs, custom, pkgs, ... }:
{ inputs, custom, pkgs, system, ... }:
{
imports = [
"${inputs.self}/modules/common"
(import "${inputs.self}/modules/common" {inherit inputs custom pkgs system;})
];
# Use the systemd-boot EFI boot loader.

View File

@ -1,7 +1,8 @@
{ inputs, custom, pkgs, ... }:
{ inputs, custom, pkgs, system, ... }:
{
imports = [
"${inputs.self}/modules/cli"
(import "${inputs.self}/modules/cli" { inherit inputs pkgs system; })
inputs.agenix.nixosModule
];
# The rough location