Move agenix to a common place
This commit is contained in:
parent
56eaa69cef
commit
8c80954be8
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.agenix.homeManagerModules.default
|
||||
./common
|
||||
./programs/alacritty
|
||||
./programs/ansible
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.agenix.nixosModules.age
|
||||
./hardware/bluetooth
|
||||
./hardware/dvd
|
||||
./hardware/nvidia
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue