Move agenix to a common place

This commit is contained in:
Andreas Zweili 2024-04-22 20:43:14 +02:00
parent 56eaa69cef
commit 8c80954be8
5 changed files with 9 additions and 15 deletions

View File

@ -1,6 +1,7 @@
{ ... }:
{ inputs, ... }:
{
imports = [
inputs.agenix.homeManagerModules.default
./common
./programs/alacritty
./programs/ansible

View File

@ -46,11 +46,7 @@ inputs.nixpkgs.lib.nixosSystem {
# Common configuration
"${inputs.self}/modules"
inputs.agenix.nixosModules.age
{
environment.systemPackages = [ inputs.agenix.packages.${system}.default ];
az-username = username;
}
{ az-username = username; }
inputs.home-manager.nixosModules.home-manager
{
@ -59,9 +55,7 @@ inputs.nixpkgs.lib.nixosSystem {
home-manager.extraSpecialArgs = {
inherit inputs system;
};
age.identityPaths = [ "/home/${username}/.ssh/id_rsa" ];
home-manager.users.${username}.imports = [
inputs.agenix.homeManagerModules.default
"${inputs.self}/home-manager/profiles/${home-module}.nix"
];
}

View File

@ -53,11 +53,7 @@ inputs.nixpkgs.lib.nixosSystem {
# Common configuration
"${inputs.self}/modules"
inputs.agenix.nixosModules.age
{
environment.systemPackages = [ inputs.agenix.packages.${system}.default ];
az-username = username;
}
{ az-username = username; }
inputs.home-manager.nixosModules.home-manager
{
@ -67,7 +63,6 @@ inputs.nixpkgs.lib.nixosSystem {
inherit inputs system;
};
home-manager.users.${username}.imports = [
inputs.agenix.homeManagerModules.default
"${inputs.self}/home-manager/profiles/${home-module}.nix"
];
}

View File

@ -1,6 +1,7 @@
{ ... }:
{ inputs, ... }:
{
imports = [
inputs.agenix.nixosModules.age
./hardware/bluetooth
./hardware/dvd
./hardware/nvidia

View File

@ -7,8 +7,10 @@
}:
let
nixPath = "/etc/nixPath";
system = pkgs.system;
in
{
age.identityPaths = [ "/home/${config.az-username}/.ssh/id_rsa" ];
# The rough location
location = {
latitude = 46.948;
@ -83,6 +85,7 @@ in
sudo = "sudo ";
};
systemPackages = [
inputs.agenix.packages.${system}.default
pkgs.bottom
pkgs.highlight
pkgs.killall