Move agenix to a common place
This commit is contained in:
parent
56eaa69cef
commit
8c80954be8
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.agenix.homeManagerModules.default
|
||||||
./common
|
./common
|
||||||
./programs/alacritty
|
./programs/alacritty
|
||||||
./programs/ansible
|
./programs/ansible
|
||||||
|
|
|
@ -46,11 +46,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
# Common configuration
|
# Common configuration
|
||||||
"${inputs.self}/modules"
|
"${inputs.self}/modules"
|
||||||
|
|
||||||
inputs.agenix.nixosModules.age
|
{ az-username = username; }
|
||||||
{
|
|
||||||
environment.systemPackages = [ inputs.agenix.packages.${system}.default ];
|
|
||||||
az-username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
@ -59,9 +55,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit inputs system;
|
inherit inputs system;
|
||||||
};
|
};
|
||||||
age.identityPaths = [ "/home/${username}/.ssh/id_rsa" ];
|
|
||||||
home-manager.users.${username}.imports = [
|
home-manager.users.${username}.imports = [
|
||||||
inputs.agenix.homeManagerModules.default
|
|
||||||
"${inputs.self}/home-manager/profiles/${home-module}.nix"
|
"${inputs.self}/home-manager/profiles/${home-module}.nix"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,11 +53,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
# Common configuration
|
# Common configuration
|
||||||
"${inputs.self}/modules"
|
"${inputs.self}/modules"
|
||||||
|
|
||||||
inputs.agenix.nixosModules.age
|
{ az-username = username; }
|
||||||
{
|
|
||||||
environment.systemPackages = [ inputs.agenix.packages.${system}.default ];
|
|
||||||
az-username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
@ -67,7 +63,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit inputs system;
|
inherit inputs system;
|
||||||
};
|
};
|
||||||
home-manager.users.${username}.imports = [
|
home-manager.users.${username}.imports = [
|
||||||
inputs.agenix.homeManagerModules.default
|
|
||||||
"${inputs.self}/home-manager/profiles/${home-module}.nix"
|
"${inputs.self}/home-manager/profiles/${home-module}.nix"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.agenix.nixosModules.age
|
||||||
./hardware/bluetooth
|
./hardware/bluetooth
|
||||||
./hardware/dvd
|
./hardware/dvd
|
||||||
./hardware/nvidia
|
./hardware/nvidia
|
||||||
|
|
|
@ -7,8 +7,10 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nixPath = "/etc/nixPath";
|
nixPath = "/etc/nixPath";
|
||||||
|
system = pkgs.system;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
age.identityPaths = [ "/home/${config.az-username}/.ssh/id_rsa" ];
|
||||||
# The rough location
|
# The rough location
|
||||||
location = {
|
location = {
|
||||||
latitude = 46.948;
|
latitude = 46.948;
|
||||||
|
@ -83,6 +85,7 @@ in
|
||||||
sudo = "sudo ";
|
sudo = "sudo ";
|
||||||
};
|
};
|
||||||
systemPackages = [
|
systemPackages = [
|
||||||
|
inputs.agenix.packages.${system}.default
|
||||||
pkgs.bottom
|
pkgs.bottom
|
||||||
pkgs.highlight
|
pkgs.highlight
|
||||||
pkgs.killall
|
pkgs.killall
|
||||||
|
|
Loading…
Reference in New Issue