mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
modules/home: Remove standalone hm compatibility layer
This commit is contained in:
parent
e0c8bb401b
commit
d54e079db8
5 changed files with 22 additions and 22 deletions
|
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}@moduleArgs:
|
||||
}:
|
||||
{
|
||||
options.custom.de.hyprland.enable = lib.mkEnableOption "" // {
|
||||
default = moduleArgs.osConfig.custom.de.hyprland.enable or false;
|
||||
default = osConfig.custom.de.hyprland.enable;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.custom.de.hyprland.enable {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
pkgs-unstable,
|
||||
lib,
|
||||
...
|
||||
}@moduleArgs:
|
||||
}:
|
||||
let
|
||||
cfg = config.custom.programs.hyprlock;
|
||||
in
|
||||
|
|
@ -11,7 +12,7 @@ in
|
|||
options.custom.programs.hyprlock = {
|
||||
enable = lib.mkEnableOption "";
|
||||
fprintAuth = lib.mkEnableOption "" // {
|
||||
default = moduleArgs.osConfig.services.fprintd.enable or false;
|
||||
default = osConfig.services.fprintd.enable;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +1,16 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
self,
|
||||
lib,
|
||||
...
|
||||
}@moduleArgs:
|
||||
let
|
||||
cfg = config.custom.programs.ssh;
|
||||
in
|
||||
}:
|
||||
{
|
||||
options.custom.programs.ssh = {
|
||||
enable = lib.mkEnableOption "";
|
||||
hostName = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = moduleArgs.osConfig.networking.hostName or "";
|
||||
};
|
||||
publicKeyPath = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "${self}/users/${config.home.username}/@${cfg.hostName}/keys/ssh.pub";
|
||||
default = "${self}/users/${config.home.username}/@${osConfig.networking.hostName}/keys/ssh.pub";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,12 @@
|
|||
{ config, lib, ... }@moduleArgs:
|
||||
{
|
||||
config,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.custom.services.syncthing.enable = lib.mkEnableOption "" // {
|
||||
default = moduleArgs.osConfig.custom.services.syncthing.enable or false;
|
||||
default = osConfig.custom.services.syncthing.enable;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.custom.services.syncthing.enable {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
config,
|
||||
osConfig,
|
||||
inputs,
|
||||
self,
|
||||
lib,
|
||||
...
|
||||
}@moduleArgs:
|
||||
}:
|
||||
let
|
||||
cfg = config.custom.sops;
|
||||
in
|
||||
|
|
@ -13,18 +14,16 @@ in
|
|||
|
||||
options.custom.sops = {
|
||||
enable = lib.mkEnableOption "";
|
||||
hostName = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = moduleArgs.osConfig.networking.hostName or "";
|
||||
};
|
||||
agePublicKey = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default =
|
||||
"${self}/users/${config.home.username}/@${cfg.hostName}/keys/age.pub" |> lib.readFile |> lib.trim;
|
||||
"${self}/users/${config.home.username}/@${osConfig.networking.hostName}/keys/age.pub"
|
||||
|> lib.readFile
|
||||
|> lib.trim;
|
||||
};
|
||||
secretsFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "${self}/users/${config.home.username}/@${cfg.hostName}/secrets.json";
|
||||
default = "${self}/users/${config.home.username}/@${osConfig.networking.hostName}/secrets.json";
|
||||
};
|
||||
secrets = lib.mkOption {
|
||||
type = lib.types.anything;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue