mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +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;
|
||||
|
||||
hostname = "tungsten";
|
||||
username = "leana";
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
inherit (lib.modules) mkAliasOptionModule;
|
||||
in {
|
||||
imports = [
|
||||
#
|
||||
# Shorthands
|
||||
#
|
||||
(mkAliasOptionModule ["me"] ["users" "users" username])
|
||||
(mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
||||
|
||||
#
|
||||
# hostname
|
||||
#
|
||||
|
|
@ -93,7 +102,9 @@ in
|
|||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
sharedModules = [{home.stateVersion = lib.mkDefault config.system.stateVersion;}];
|
||||
users.leana.imports = [
|
||||
};
|
||||
|
||||
hm.imports = [
|
||||
#
|
||||
# hostname
|
||||
#
|
||||
|
|
@ -143,7 +154,6 @@ in
|
|||
(sources.agenix + "/modules/age-home.nix")
|
||||
((import sources.wired-notify).homeManagerModules.default)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
#
|
||||
|
|
@ -166,7 +176,7 @@ in
|
|||
two_pwd.file = "${../secrets/two_pwd.age}";
|
||||
};
|
||||
|
||||
home-manager.users.leana = {
|
||||
hm = {
|
||||
age.secrets = {
|
||||
sshconfig = {
|
||||
file = "${../secrets/sshconfig.age}";
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ in
|
|||
two_pwd.file = "${../secrets/two_pwd.age}";
|
||||
};
|
||||
|
||||
home-manager.users.leana = {
|
||||
hm = {
|
||||
age.secrets = {
|
||||
sshconfig = {
|
||||
file = "${../secrets/sshconfig.age}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue