My Nix Configuration

[modules.home] Move a bunch of service modules

Changed files
+56 -26
homes
x86_64-linux
modules
home
services
gpg-agent
kdeconnect
mako
swayidle
syncthing
+6 -1
homes/x86_64-linux/pyrox/services/gpg-agent.nix modules/home/services/gpg-agent/default.nix
···
+
{ lib, config, ... }:
+
let
+
cfg = config.py.services.gpg-agent;
+
in
{
-
services.gpg-agent = {
+
options.py.services.gpg-agent.enable = lib.mkEnableOption "gpg-agent";
+
config.services.gpg-agent = lib.mkIf cfg.enable {
enable = true;
enableExtraSocket = true;
enableScDaemon = true;
-6
homes/x86_64-linux/pyrox/services/kdeconnect.nix
···
-
{
-
services.kdeconnect = {
-
enable = false;
-
indicator = true;
-
};
-
}
-11
homes/x86_64-linux/pyrox/services/mako.nix
···
-
{
-
services.mako = {
-
enable = true;
-
catppuccin.enable = true;
-
actions = true;
-
defaultTimeout = 10000;
-
font = "IBM Plex Sans 14pt";
-
icons = true;
-
layer = "overlay";
-
};
-
}
+12 -2
homes/x86_64-linux/pyrox/services/swayidle.nix modules/home/services/swayidle/default.nix
···
-
{pkgs, ...}: {
-
services.swayidle = {
+
{
+
pkgs,
+
config,
+
lib,
+
...
+
}:
+
let
+
cfg = config.py.services.swayidle;
+
in
+
{
+
options.py.services.swayidle.enable = lib.mkEnableOption "swayidle";
+
config.services.swayidle = lib.mkIf cfg.enable {
enable = true;
events = [
{
-6
homes/x86_64-linux/pyrox/services/syncthing.nix
···
-
{
-
services.syncthing = {
-
enable = true;
-
tray.enable = true;
-
};
-
}
+11
modules/home/services/kdeconnect/default.nix
···
+
{ lib, config, ... }:
+
let
+
cfg = config.py.services.kdeconnect;
+
in
+
{
+
options.py.services.kdeconnect.enable = lib.mkEnableOption "KDEConnect";
+
config.services.kdeconnect = lib.mkIf cfg.enable {
+
enable = true;
+
indicator = true;
+
};
+
}
+16
modules/home/services/mako/default.nix
···
+
{ lib, config, ... }:
+
let
+
cfg = config.py.services.mako;
+
in
+
{
+
options.py.services.mako.enable = lib.mkEnableOption "mako";
+
config.services.mako = lib.mkIf cfg.enable {
+
enable = true;
+
catppuccin.enable = true;
+
actions = true;
+
defaultTimeout = 10000;
+
font = "IBM Plex Sans 14pt";
+
icons = true;
+
layer = "overlay";
+
};
+
}
+11
modules/home/services/syncthing/default.nix
···
+
{ lib, config, ... }:
+
let
+
cfg = config.py.services.syncthing;
+
in
+
{
+
options.py.services.syncthing.enable = lib.mkEnableOption "Syncthing";
+
config.services.syncthing = lib.mkIf cfg.enable {
+
enable = true;
+
tray.enable = true;
+
};
+
}