mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-07 07:09:15 +00:00
use home-manager shorthand module
This commit is contained in:
parent
d76c538e02
commit
a2811e91b4
2 changed files with 63 additions and 53 deletions
|
|
@ -3,14 +3,23 @@ let
|
||||||
sources = import ../sources.nix;
|
sources = import ../sources.nix;
|
||||||
|
|
||||||
hostname = "tungsten";
|
hostname = "tungsten";
|
||||||
|
username = "leana";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit (lib.modules) mkAliasOptionModule;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
#
|
||||||
|
# Shorthands
|
||||||
|
#
|
||||||
|
(mkAliasOptionModule ["me"] ["users" "users" username])
|
||||||
|
(mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
||||||
|
|
||||||
#
|
#
|
||||||
# hostname
|
# hostname
|
||||||
#
|
#
|
||||||
|
|
@ -93,7 +102,9 @@ in
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
sharedModules = [{home.stateVersion = lib.mkDefault config.system.stateVersion;}];
|
sharedModules = [{home.stateVersion = lib.mkDefault config.system.stateVersion;}];
|
||||||
users.leana.imports = [
|
};
|
||||||
|
|
||||||
|
hm.imports = [
|
||||||
#
|
#
|
||||||
# hostname
|
# hostname
|
||||||
#
|
#
|
||||||
|
|
@ -143,7 +154,6 @@ in
|
||||||
(sources.agenix + "/modules/age-home.nix")
|
(sources.agenix + "/modules/age-home.nix")
|
||||||
((import sources.wired-notify).homeManagerModules.default)
|
((import sources.wired-notify).homeManagerModules.default)
|
||||||
];
|
];
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -166,7 +176,7 @@ in
|
||||||
two_pwd.file = "${../secrets/two_pwd.age}";
|
two_pwd.file = "${../secrets/two_pwd.age}";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.leana = {
|
hm = {
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
sshconfig = {
|
sshconfig = {
|
||||||
file = "${../secrets/sshconfig.age}";
|
file = "${../secrets/sshconfig.age}";
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ in
|
||||||
two_pwd.file = "${../secrets/two_pwd.age}";
|
two_pwd.file = "${../secrets/two_pwd.age}";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.leana = {
|
hm = {
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
sshconfig = {
|
sshconfig = {
|
||||||
file = "${../secrets/sshconfig.age}";
|
file = "${../secrets/sshconfig.age}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue