home-manager: make the hm modules match the nixos ones

This commit is contained in:
Veneficium 2024-11-05 17:45:56 +01:00
parent 4fc501b1e2
commit 32a5ebf118
16 changed files with 256 additions and 98 deletions

View file

@ -1,7 +0,0 @@
{ ... }:
{
programs.bun = {
enable = true;
enableGitIntegration = true;
};
}

View file

@ -1,7 +1,13 @@
{ ... }:
{ config, lib, ... }:
{
programs.fastfetch = {
enable = true;
settings = builtins.fromJSON (builtins.readFile ./config.jsonc);
options.settings.programs.fastfetch = {
enable = lib.mkEnableOption "enable fastfetch";
};
config = lib.mkIf config.settings.programs.fastfetch.enable {
programs.fastfetch = {
enable = true;
settings = builtins.fromJSON (builtins.readFile ./config.jsonc);
};
};
}

View file

@ -1,12 +1,18 @@
{ ... }:
{ config, lib, ... }:
{
programs.git = {
enable = true;
userEmail = "85629831+veneficium42@users.noreply.github.com";
userName = "Veneficium";
extraConfig = {
init.defaultBranch = "main";
credential.credentialStore = "gpg";
options.settings.programs.git = {
enable = lib.mkEnableOption "enable git";
};
config = lib.mkIf config.settings.programs.git.enable {
programs.git = {
enable = true;
userEmail = "85629831+veneficium42@users.noreply.github.com";
userName = "Veneficium";
extraConfig = {
init.defaultBranch = "main";
credential.credentialStore = "gpg";
};
};
};
}

View file

@ -1,7 +1,13 @@
{ ... }:
{ config, lib, ... }:
{
programs.hyfetch = {
enable = true;
#todo add hyfetch config
options.settings.programs.hyfetch = {
enable = lib.mkEnableOption "enables hyfetch";
};
config = lib.mkIf config.settings.programs.hyfetch.enable {
programs.hyfetch = {
enable = true;
#todo add hyfetch config
};
};
}

View file

@ -1,10 +1,22 @@
{ pkgs, ... }:
{
programs.password-store = {
enable = true;
package = pkgs.pass-wayland.withExtensions (exts: [
exts.pass-checkup
exts.pass-audit
]);
config,
lib,
pkgs,
...
}:
{
options.settings.programs.pass = {
enable = lib.mkEnableOption "enable pass";
};
config = lib.mkIf config.settings.programs.pass.enable {
programs.password-store = {
enable = true;
package = pkgs.pass-wayland.withExtensions (exts: [
exts.pass-checkup
exts.pass-audit
]);
};
};
}

View file

@ -1,11 +1,17 @@
{ ... }:
{ config, lib, ... }:
{
programs.starship = {
enable = true;
#enableZshIntegration = true;
enableTransience = true;
enableFishIntegration = true;
options.settings.programs.starship = {
enable = lib.mkEnableOption "enable starship prompt";
};
settings = builtins.fromTOML (builtins.readFile ./starship.toml);
config = lib.mkIf config.settings.programs.starship.enable {
programs.starship = {
enable = true;
#enableZshIntegration = true;
enableTransience = true;
enableFishIntegration = true;
settings = builtins.fromTOML (builtins.readFile ./starship.toml);
};
};
}