Update config and option names for modules
This commit is contained in:
parent
fe508bd127
commit
bb9b77e2f8
54 changed files with 122 additions and 120 deletions
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [ ../common ];
|
imports = [ ../common ];
|
||||||
|
|
||||||
homeManagerModules = {
|
features = {
|
||||||
cli = {
|
cli = {
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
repos = extraConfig.XDG_REPOS_DIR;
|
repos = extraConfig.XDG_REPOS_DIR;
|
||||||
in
|
in
|
||||||
options.homeManagerModules.cli.tmux-sessionizer.directories.default
|
options.features.cli.tmux-sessionizer.directories.default
|
||||||
++ [
|
++ [
|
||||||
repos
|
repos
|
||||||
"${repos}/*"
|
"${repos}/*"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [ ../common ];
|
imports = [ ../common ];
|
||||||
|
|
||||||
homeManagerModules = {
|
features = {
|
||||||
cli.zsh.enable = true;
|
cli.zsh.enable = true;
|
||||||
|
|
||||||
desktop.media = {
|
desktop.media = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [ ../common ];
|
imports = [ ../common ];
|
||||||
|
|
||||||
homeManagerModules = {
|
features = {
|
||||||
cli = {
|
cli = {
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [ ../common ];
|
imports = [ ../common ];
|
||||||
|
|
||||||
homeManagerModules = {
|
features = {
|
||||||
cli = {
|
cli = {
|
||||||
bluetuith.enable = true;
|
bluetuith.enable = true;
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
repos = extraConfig.XDG_REPOS_DIR;
|
repos = extraConfig.XDG_REPOS_DIR;
|
||||||
in
|
in
|
||||||
options.homeManagerModules.cli.tmux-sessionizer.directories.default
|
options.features.cli.tmux-sessionizer.directories.default
|
||||||
++ [
|
++ [
|
||||||
repos
|
repos
|
||||||
"${repos}/*"
|
"${repos}/*"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
./modules/wiki.nix
|
./modules/wiki.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixosModules = {
|
features = {
|
||||||
cli = {
|
cli = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
password-store.enable = true;
|
password-store.enable = true;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
../../users/eric.nix
|
../../users/eric.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixosModules = {
|
features = {
|
||||||
core = {
|
core = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
zram.enable = true;
|
zram.enable = true;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../common
|
../common
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./homelab.nix
|
||||||
./modules
|
./modules
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./services
|
./services
|
||||||
|
@ -15,31 +16,10 @@
|
||||||
../../users/opdavies.nix
|
../../users/opdavies.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixosModules = {
|
features = {
|
||||||
core.openssh.enable = true;
|
core.openssh.enable = true;
|
||||||
cli.podman.enable = true;
|
cli.podman.enable = true;
|
||||||
desktop.dconf.enable = true;
|
desktop.dconf.enable = true;
|
||||||
|
|
||||||
homelab = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
baseDomain = "oliverdavies.uk";
|
|
||||||
|
|
||||||
services = {
|
|
||||||
audiobookshelf.enable = true;
|
|
||||||
|
|
||||||
forgejo = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
cloudflared.tunnelId = "e1514105-327f-4984-974e-e2fbaca76466";
|
|
||||||
};
|
|
||||||
|
|
||||||
immich.enable = true;
|
|
||||||
jellyfin.enable = true;
|
|
||||||
paperless.enable = true;
|
|
||||||
uptime-kuma.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logind.lidSwitchExternalPower = "ignore";
|
services.logind.lidSwitchExternalPower = "ignore";
|
||||||
|
|
22
hosts/nixedo/homelab.nix
Normal file
22
hosts/nixedo/homelab.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
features.homelab = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
baseDomain = "oliverdavies.uk";
|
||||||
|
|
||||||
|
services = {
|
||||||
|
audiobookshelf.enable = true;
|
||||||
|
|
||||||
|
forgejo = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
cloudflared.tunnelId = "e1514105-327f-4984-974e-e2fbaca76466";
|
||||||
|
};
|
||||||
|
|
||||||
|
immich.enable = true;
|
||||||
|
jellyfin.enable = true;
|
||||||
|
paperless.enable = true;
|
||||||
|
uptime-kuma.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,11 +4,11 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.${service};
|
cfg = homelab.services.${service};
|
||||||
homelab = config.nixosModules.homelab;
|
homelab = config.features.homelab;
|
||||||
service = "audiobookshelf";
|
service = "audiobookshelf";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
|
@ -26,7 +26,7 @@ in
|
||||||
useACMEHost = homelab.baseDomain;
|
useACMEHost = homelab.baseDomain;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString cfg.port}";
|
proxyPass = "http://localhost:${toString config.services.${service}.port}";
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab = {
|
options.features.homelab = {
|
||||||
enable = mkEnableOption "Enable homelab services and configuration";
|
enable = mkEnableOption "Enable homelab services and configuration";
|
||||||
|
|
||||||
baseDomain = mkOption {
|
baseDomain = mkOption {
|
||||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.${service};
|
cfg = homelab.services.${service};
|
||||||
homelab = config.nixosModules.homelab;
|
homelab = config.features.homelab;
|
||||||
service = "forgejo";
|
service = "forgejo";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
cloudflared.tunnelId = mkOption {
|
cloudflared.tunnelId = mkOption {
|
||||||
|
|
|
@ -9,11 +9,11 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.${service};
|
cfg = homelab.services.${service};
|
||||||
homelab = config.nixosModules.homelab;
|
homelab = config.features.homelab;
|
||||||
service = "immich";
|
service = "immich";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.${service};
|
cfg = homelab.services.${service};
|
||||||
homelab = config.nixosModules.homelab;
|
homelab = config.features.homelab;
|
||||||
service = "jellyfin";
|
service = "jellyfin";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.paperless;
|
cfg = homelab.services.paperless;
|
||||||
homelab = config.nixosModules.homelab;
|
homelab = config.features.homelab;
|
||||||
service = "paperless";
|
service = "paperless";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
|
|
|
@ -9,12 +9,12 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.${service};
|
cfg = homelab.services.${service};
|
||||||
homelab = config.homelab;
|
homelab = config.features.homelab;
|
||||||
opts = options.services.${service};
|
opts = options.services.${service};
|
||||||
service = "homepage-dashboard";
|
service = "homepage-dashboard";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = homelab.services.${service};
|
cfg = homelab.services.${service};
|
||||||
homelab = config.nixosModules.homelab;
|
homelab = config.features.homelab;
|
||||||
service = "uptime-kuma";
|
service = "uptime-kuma";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.homelab.services.${service} = {
|
options.features.homelab.services.${service} = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
enable = mkEnableOption "Enable ${service}";
|
||||||
|
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
../../users/opdavies.nix
|
../../users/opdavies.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixosModules = {
|
features = {
|
||||||
cli.password-store = {
|
cli.password-store = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
../../users/opdavies.nix
|
../../users/opdavies.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixosModules = {
|
features = {
|
||||||
core = {
|
core = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
zram.enable = true;
|
zram.enable = true;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.redshift;
|
cfg = config.features.redshift;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.redshift.enable = mkEnableOption "Enable redshift";
|
options.features.redshift.enable = mkEnableOption "Enable redshift";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
location = {
|
location = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.bluetuith;
|
cfg = config.features.cli.bluetuith;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.direnv;
|
cfg = config.features.cli.direnv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.direnv.enable = mkEnableOption "Enable direnv";
|
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.fzf;
|
cfg = config.features.cli.fzf;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.fzf.enable = mkEnableOption "Enable fzf";
|
options.features.cli.fzf.enable = mkEnableOption "Enable fzf";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.git;
|
cfg = config.features.cli.git;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.git = {
|
options.features.cli.git = {
|
||||||
enable = mkEnableOption "Enable git";
|
enable = mkEnableOption "Enable git";
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.node;
|
cfg = config.features.cli.node;
|
||||||
|
|
||||||
inherit (config.xdg) configHome dataHome stateHome;
|
inherit (config.xdg) configHome dataHome stateHome;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.node.enable = mkEnableOption "Enable node";
|
options.features.cli.node.enable = mkEnableOption "Enable node";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''
|
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.notes;
|
cfg = config.features.cli.notes;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.notes.enable = mkEnableOption "Enable notes";
|
options.features.cli.notes.enable = mkEnableOption "Enable notes";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
xdg = {
|
xdg = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.ranger;
|
cfg = config.features.cli.ranger;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.ranger.enable = mkEnableOption "Enable ranger";
|
options.features.cli.ranger.enable = mkEnableOption "Enable ranger";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.ranger.enable = true;
|
programs.ranger.enable = true;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.starship;
|
cfg = config.features.cli.starship;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.starship.enable = mkEnableOption "Enable starship";
|
options.features.cli.starship.enable = mkEnableOption "Enable starship";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.starship =
|
programs.starship =
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.tmux-sessionizer;
|
cfg = config.features.cli.tmux-sessionizer;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.tmux-sessionizer = {
|
options.features.cli.tmux-sessionizer = {
|
||||||
enable = mkEnableOption "Enable tmux-sessionizer";
|
enable = mkEnableOption "Enable tmux-sessionizer";
|
||||||
|
|
||||||
directories = mkOption {
|
directories = mkOption {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.tmux;
|
cfg = config.features.cli.tmux;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.tmux.enable = mkEnableOption "Enable tmux";
|
options.features.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.cli.zsh;
|
cfg = config.features.cli.zsh;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.cli.zsh.enable = mkEnableOption "Enable zsh";
|
options.features.cli.zsh.enable = mkEnableOption "Enable zsh";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.coding.neovim;
|
cfg = config.features.coding.neovim;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.coding.neovim.enable = mkEnableOption "Enable neovim";
|
options.features.coding.neovim.enable = mkEnableOption "Enable neovim";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.neovim =
|
programs.neovim =
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.coding.phpactor;
|
cfg = config.features.coding.phpactor;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
|
options.features.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.browsers.firefox;
|
cfg = config.features.desktop.browsers.firefox;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.browsers.firefox = {
|
options.features.desktop.browsers.firefox = {
|
||||||
enable = mkEnableOption "Enable firefox";
|
enable = mkEnableOption "Enable firefox";
|
||||||
|
|
||||||
homepageUrl = mkOption {
|
homepageUrl = mkOption {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.browsers.qutebrowser;
|
cfg = config.features.desktop.browsers.qutebrowser;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.browsers.qutebrowser.enable =
|
options.features.desktop.browsers.qutebrowser.enable =
|
||||||
mkEnableOption "Enable qutebrowser";
|
mkEnableOption "Enable qutebrowser";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.flameshot;
|
cfg = config.features.desktop.flameshot;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
|
options.features.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.flameshot = {
|
services.flameshot = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.gtk;
|
cfg = config.features.desktop.gtk;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.gtk.enable = mkEnableOption "Enable gtk";
|
options.features.desktop.gtk.enable = mkEnableOption "Enable gtk";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
gtk = with pkgs; {
|
gtk = with pkgs; {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.media.handbrake;
|
cfg = config.features.desktop.media.handbrake;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
|
options.features.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.media.makemkv;
|
cfg = config.features.desktop.media.makemkv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeManagerModules.desktop.media.mpv;
|
cfg = config.features.desktop.media.mpv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeManagerModules.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
|
options.features.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.mpv = {
|
programs.mpv = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.cli.docker;
|
cfg = config.features.cli.docker;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.cli.docker.enable = mkEnableOption "Enable docker";
|
options.features.cli.docker.enable = mkEnableOption "Enable docker";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.cli.password-store;
|
cfg = config.features.cli.password-store;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.cli.password-store = {
|
options.features.cli.password-store = {
|
||||||
enable = mkEnableOption "Enable pass";
|
enable = mkEnableOption "Enable pass";
|
||||||
|
|
||||||
extensions = mkOption {
|
extensions = mkOption {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.cli.podman;
|
cfg = config.features.cli.podman;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.cli.podman.enable = mkEnableOption "Enable podman";
|
options.features.cli.podman.enable = mkEnableOption "Enable podman";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.core.bluetooth;
|
cfg = config.features.core.bluetooth;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
options.features.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.core.openssh;
|
cfg = config.features.core.openssh;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.core.openssh.enable = mkEnableOption "Enable openssh";
|
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.core.pipewire;
|
cfg = config.features.core.pipewire;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.core.pipewire.enable = mkEnableOption "Enable pipewire";
|
options.features.core.pipewire.enable = mkEnableOption "Enable pipewire";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.core.xbanish;
|
cfg = config.features.core.xbanish;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.core.xbanish.enable = mkEnableOption "Enable xbanish";
|
options.features.core.xbanish.enable = mkEnableOption "Enable xbanish";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.xbanish.enable = true;
|
services.xbanish.enable = true;
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.core.zram;
|
cfg = config.features.core.zram;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.core.zram.enable = mkEnableOption "Enable zram";
|
options.features.core.zram.enable = mkEnableOption "Enable zram";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.desktop.dconf;
|
cfg = config.features.desktop.dconf;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.desktop.dconf.enable = mkEnableOption "Enable dconf";
|
options.features.desktop.dconf.enable = mkEnableOption "Enable dconf";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.desktop.dwm;
|
cfg = config.features.desktop.dwm;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.desktop.fonts;
|
cfg = config.features.desktop.fonts;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
options.features.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
fonts = {
|
fonts = {
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.desktop.media.makemkv;
|
cfg = config.features.desktop.media.makemkv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
boot.kernelModules = [ "sg" ];
|
boot.kernelModules = [ "sg" ];
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.desktop.st;
|
cfg = config.features.desktop.st;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.desktop.st.enable = mkEnableOption "Enable st";
|
options.features.desktop.st.enable = mkEnableOption "Enable st";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nixosModules.desktop.thunar;
|
cfg = config.features.desktop.thunar;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nixosModules.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
options.features.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.thunar = {
|
programs.thunar = {
|
||||||
|
|
|
@ -18,8 +18,8 @@ with lib;
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
]
|
]
|
||||||
++ optional config.nixosModules.cli.docker.enable "docker"
|
++ optional config.features.cli.docker.enable "docker"
|
||||||
++ optional config.nixosModules.cli.podman.enable "podman";
|
++ optional config.features.cli.podman.enable "podman";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
qrencode
|
qrencode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue