rename plusultra to metacfg
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
b22607a4df
commit
04f08d679e
48 changed files with 149 additions and 149 deletions
modules/home
cli-apps
bash
bat
fish
home-manager
neovim
starship
tmux
host
tools
user
|
@ -6,10 +6,10 @@
|
|||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.plusultra.cli-apps.bash;
|
||||
cfg = config.metacfg.cli-apps.bash;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.bash = {
|
||||
options.metacfg.cli-apps.bash = {
|
||||
enable = mkEnableOption "BASH shell";
|
||||
};
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.plusultra; let
|
||||
cfg = config.plusultra.cli-apps.bat;
|
||||
with lib.metacfg; let
|
||||
cfg = config.metacfg.cli-apps.bat;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.bat = {
|
||||
options.metacfg.cli-apps.bat = {
|
||||
enable = mkEnableOption "bat";
|
||||
};
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.plusultra.cli-apps.fish;
|
||||
cfg = config.metacfg.cli-apps.fish;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.fish = {
|
||||
options.metacfg.cli-apps.fish = {
|
||||
enable = mkEnableOption "FISH shell";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
inherit (lib.plusultra) enabled;
|
||||
inherit (lib.metacfg) enabled;
|
||||
|
||||
cfg = config.plusultra.cli-apps.home-manager;
|
||||
cfg = config.metacfg.cli-apps.home-manager;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.home-manager = {
|
||||
options.metacfg.cli-apps.home-manager = {
|
||||
enable = mkEnableOption "home-manager";
|
||||
};
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.plusultra.cli-apps.neovim;
|
||||
cfg = config.metacfg.cli-apps.neovim;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.neovim = {
|
||||
options.metacfg.cli-apps.neovim = {
|
||||
enable = mkEnableOption "Neovim";
|
||||
};
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.plusultra.cli-apps.starship;
|
||||
cfg = config.metacfg.cli-apps.starship;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.starship = {
|
||||
options.metacfg.cli-apps.starship = {
|
||||
enable = mkEnableOption "starship";
|
||||
};
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.plusultra; let
|
||||
cfg = config.plusultra.cli-apps.tmux;
|
||||
with lib.metacfg; let
|
||||
cfg = config.metacfg.cli-apps.tmux;
|
||||
in
|
||||
{
|
||||
options.plusultra.cli-apps.tmux = {
|
||||
options.metacfg.cli-apps.tmux = {
|
||||
enable = mkEnableOption "Tmux";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
let
|
||||
inherit (lib) types;
|
||||
inherit (lib.plusultra) mkOpt;
|
||||
inherit (lib.metacfg) mkOpt;
|
||||
in
|
||||
{
|
||||
options.plusultra.host = {
|
||||
options.metacfg.host = {
|
||||
name = mkOpt (types.nullOr types.str) host "The host name.";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.plusultra.tools.alacritty;
|
||||
cfg = config.metacfg.tools.alacritty;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.alacritty = {
|
||||
options.metacfg.tools.alacritty = {
|
||||
enable = mkEnableOption "alacritty";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.tools.direnv;
|
||||
with lib.metacfg;
|
||||
let cfg = config.metacfg.tools.direnv;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.direnv = with types; {
|
||||
options.metacfg.tools.direnv = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
let
|
||||
inherit (lib) types mkEnableOption mkIf;
|
||||
inherit (lib.plusultra) mkOpt enabled;
|
||||
inherit (lib.metacfg) mkOpt enabled;
|
||||
|
||||
cfg = config.plusultra.tools.git;
|
||||
user = config.plusultra.user;
|
||||
cfg = config.metacfg.tools.git;
|
||||
user = config.metacfg.user;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.git = {
|
||||
options.metacfg.tools.git = {
|
||||
enable = mkEnableOption "Git";
|
||||
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
||||
userEmail = mkOpt types.str user.email "The email to configure git with.";
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.tools.jetbrains;
|
||||
with lib.metacfg;
|
||||
let cfg = config.metacfg.tools.jetbrains;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.jetbrains = with types; {
|
||||
options.metacfg.tools.jetbrains = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable jetbrains.";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
let
|
||||
inherit (lib) types mkEnableOption mkIf;
|
||||
cfg = config.plusultra.tools.ssh;
|
||||
cfg = config.metacfg.tools.ssh;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.ssh = {
|
||||
options.metacfg.tools.ssh = {
|
||||
enable = mkEnableOption "SSH";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
let
|
||||
inherit (lib) types mkIf mkDefault mkMerge;
|
||||
inherit (lib.plusultra) mkOpt;
|
||||
inherit (lib.metacfg) mkOpt;
|
||||
|
||||
cfg = config.plusultra.user;
|
||||
cfg = config.metacfg.user;
|
||||
|
||||
is-linux = pkgs.stdenv.isLinux;
|
||||
is-darwin = pkgs.stdenv.isDarwin;
|
||||
|
@ -18,7 +18,7 @@ let
|
|||
"/home/${cfg.name}";
|
||||
in
|
||||
{
|
||||
options.plusultra.user = {
|
||||
options.metacfg.user = {
|
||||
enable = mkOpt types.bool false "Whether to configure the user account.";
|
||||
name = mkOpt (types.nullOr types.str) config.snowfallorg.user.name "The user account.";
|
||||
|
||||
|
@ -33,11 +33,11 @@ in
|
|||
assertions = [
|
||||
{
|
||||
assertion = cfg.name != null;
|
||||
message = "plusultra.user.name must be set";
|
||||
message = "metacfg.user.name must be set";
|
||||
}
|
||||
{
|
||||
assertion = cfg.home != null;
|
||||
message = "plusultra.user.home must be set";
|
||||
message = "metacfg.user.home must be set";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue