This commit is contained in:
parent
54954d6223
commit
54b43e4203
58 changed files with 224 additions and 242 deletions
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.bluetuith;
|
||||
cfg = config.cli.bluetuith;
|
||||
in
|
||||
{
|
||||
options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
options.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.direnv;
|
||||
cfg = config.cli.direnv;
|
||||
in
|
||||
{
|
||||
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||
options.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.fzf;
|
||||
cfg = config.cli.fzf;
|
||||
in
|
||||
{
|
||||
options.features.cli.fzf.enable = mkEnableOption "Enable fzf";
|
||||
options.cli.fzf.enable = mkEnableOption "Enable fzf";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.fzf = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.git;
|
||||
cfg = config.cli.git;
|
||||
in
|
||||
{
|
||||
options.features.cli.git = {
|
||||
options.cli.git = {
|
||||
enable = mkEnableOption "Enable git";
|
||||
|
||||
user = mkOption {
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.node;
|
||||
cfg = config.cli.node;
|
||||
|
||||
inherit (config.xdg) configHome dataHome stateHome;
|
||||
in
|
||||
{
|
||||
options.features.cli.node.enable = mkEnableOption "Enable node";
|
||||
options.cli.node.enable = mkEnableOption "Enable node";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.notes;
|
||||
cfg = config.cli.notes;
|
||||
in
|
||||
{
|
||||
options.features.cli.notes.enable = mkEnableOption "Enable notes";
|
||||
options.cli.notes.enable = mkEnableOption "Enable notes";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
xdg = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.ranger;
|
||||
cfg = config.cli.ranger;
|
||||
in
|
||||
{
|
||||
options.features.cli.ranger.enable = mkEnableOption "Enable ranger";
|
||||
options.cli.ranger.enable = mkEnableOption "Enable ranger";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.ranger.enable = true;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.starship;
|
||||
cfg = config.cli.starship;
|
||||
in
|
||||
{
|
||||
options.features.cli.starship.enable = mkEnableOption "Enable starship";
|
||||
options.cli.starship.enable = mkEnableOption "Enable starship";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.starship =
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.tmux-sessionizer;
|
||||
cfg = config.cli.tmux-sessionizer;
|
||||
in
|
||||
{
|
||||
options.features.cli.tmux-sessionizer = {
|
||||
options.cli.tmux-sessionizer = {
|
||||
enable = mkEnableOption "Enable tmux-sessionizer";
|
||||
|
||||
directories = mkOption {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.tmux;
|
||||
cfg = config.cli.tmux;
|
||||
in
|
||||
{
|
||||
options.features.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||
options.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.tmux = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.zsh;
|
||||
cfg = config.cli.zsh;
|
||||
in
|
||||
{
|
||||
options.features.cli.zsh.enable = mkEnableOption "Enable zsh";
|
||||
options.cli.zsh.enable = mkEnableOption "Enable zsh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.coding.neovim;
|
||||
cfg = config.coding.neovim;
|
||||
in
|
||||
{
|
||||
options.features.coding.neovim.enable = mkEnableOption "Enable neovim";
|
||||
options.coding.neovim.enable = mkEnableOption "Enable neovim";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.neovim =
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.coding.phpactor;
|
||||
cfg = config.coding.phpactor;
|
||||
in
|
||||
{
|
||||
options.features.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
|
||||
options.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.browsers.firefox;
|
||||
cfg = config.desktop.browsers.firefox;
|
||||
in
|
||||
{
|
||||
options.features.desktop.browsers.firefox = {
|
||||
options.desktop.browsers.firefox = {
|
||||
enable = mkEnableOption "Enable firefox";
|
||||
|
||||
homepageUrl = mkOption {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.browsers.qutebrowser;
|
||||
cfg = config.desktop.browsers.qutebrowser;
|
||||
in
|
||||
{
|
||||
options.features.desktop.browsers.qutebrowser.enable =
|
||||
options.desktop.browsers.qutebrowser.enable =
|
||||
mkEnableOption "Enable qutebrowser";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.flameshot;
|
||||
cfg = config.desktop.flameshot;
|
||||
in
|
||||
{
|
||||
options.features.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
|
||||
options.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.flameshot = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.gtk;
|
||||
cfg = config.desktop.gtk;
|
||||
in
|
||||
{
|
||||
options.features.desktop.gtk.enable = mkEnableOption "Enable gtk";
|
||||
options.desktop.gtk.enable = mkEnableOption "Enable gtk";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
gtk = with pkgs; {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.media.handbrake;
|
||||
cfg = config.desktop.media.handbrake;
|
||||
in
|
||||
{
|
||||
options.features.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
|
||||
options.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.media.makemkv;
|
||||
cfg = config.desktop.media.makemkv;
|
||||
in
|
||||
{
|
||||
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||
options.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.media.mpv;
|
||||
cfg = config.desktop.media.mpv;
|
||||
in
|
||||
{
|
||||
options.features.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
|
||||
options.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.mpv = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.docker;
|
||||
cfg = config.cli.docker;
|
||||
in
|
||||
{
|
||||
options.features.cli.docker.enable = mkEnableOption "Enable docker";
|
||||
options.cli.docker.enable = mkEnableOption "Enable docker";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.password-store;
|
||||
cfg = config.cli.password-store;
|
||||
in
|
||||
{
|
||||
options.features.cli.password-store = {
|
||||
options.cli.password-store = {
|
||||
enable = mkEnableOption "Enable pass";
|
||||
|
||||
extensions = mkOption {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.podman;
|
||||
cfg = config.cli.podman;
|
||||
in
|
||||
{
|
||||
options.features.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
options.cli.podman.enable = mkEnableOption "Enable podman";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.bluetooth;
|
||||
cfg = config.core.bluetooth;
|
||||
in
|
||||
{
|
||||
options.features.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
||||
options.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.bluetooth.enable = true;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.openssh;
|
||||
cfg = config.core.openssh;
|
||||
in
|
||||
{
|
||||
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||
options.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.pipewire;
|
||||
cfg = config.core.pipewire;
|
||||
in
|
||||
{
|
||||
options.features.core.pipewire.enable = mkEnableOption "Enable pipewire";
|
||||
options.core.pipewire.enable = mkEnableOption "Enable pipewire";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.pipewire = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.xbanish;
|
||||
cfg = config.core.xbanish;
|
||||
in
|
||||
{
|
||||
options.features.core.xbanish.enable = mkEnableOption "Enable xbanish";
|
||||
options.core.xbanish.enable = mkEnableOption "Enable xbanish";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xbanish.enable = true;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.core.zram;
|
||||
cfg = config.core.zram;
|
||||
in
|
||||
{
|
||||
options.features.core.zram.enable = mkEnableOption "Enable zram";
|
||||
options.core.zram.enable = mkEnableOption "Enable zram";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
zramSwap = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.dconf;
|
||||
cfg = config.desktop.dconf;
|
||||
in
|
||||
{
|
||||
options.features.desktop.dconf.enable = mkEnableOption "Enable dconf";
|
||||
options.desktop.dconf.enable = mkEnableOption "Enable dconf";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.dconf.enable = true;
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.dwm;
|
||||
cfg = config.desktop.dwm;
|
||||
in
|
||||
{
|
||||
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
options.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.fonts;
|
||||
cfg = config.desktop.fonts;
|
||||
in
|
||||
{
|
||||
options.features.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
||||
options.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.media.makemkv;
|
||||
cfg = config.desktop.media.makemkv;
|
||||
in
|
||||
{
|
||||
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||
options.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.kernelModules = [ "sg" ];
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.st;
|
||||
cfg = config.desktop.st;
|
||||
in
|
||||
{
|
||||
options.features.desktop.st.enable = mkEnableOption "Enable st";
|
||||
options.desktop.st.enable = mkEnableOption "Enable st";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.desktop.thunar;
|
||||
cfg = config.desktop.thunar;
|
||||
in
|
||||
{
|
||||
options.features.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||
options.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.thunar = {
|
||||
|
|
|
@ -10,11 +10,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "gitea-actions-runner";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue