From 5eb63082b564c2b44ff1858a7894d055e006043a Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Thu, 26 Sep 2024 17:59:09 -0500 Subject: modularize config --- nixos/.flake/home/services/core.nix | 13 +++++++++++++ nixos/.flake/home/services/mpd.nix | 16 ++++++++++++++++ nixos/.flake/home/services/syncthing.nix | 7 +++++++ 3 files changed, 36 insertions(+) create mode 100644 nixos/.flake/home/services/core.nix create mode 100644 nixos/.flake/home/services/mpd.nix create mode 100644 nixos/.flake/home/services/syncthing.nix (limited to 'nixos/.flake/home/services') diff --git a/nixos/.flake/home/services/core.nix b/nixos/.flake/home/services/core.nix new file mode 100644 index 0000000..132e3e6 --- /dev/null +++ b/nixos/.flake/home/services/core.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./mpd.nix + ./syncthing.nix + ]; + + home.packages = with pkgs; [ + mako # TODO + mpdscribble + ]; +} diff --git a/nixos/.flake/home/services/mpd.nix b/nixos/.flake/home/services/mpd.nix new file mode 100644 index 0000000..a5a5dc0 --- /dev/null +++ b/nixos/.flake/home/services/mpd.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: + +{ + services.mpd = { + enable = true; + musicDirectory = "~/Music"; + extraConfig = '' + audio_output { + type "pipewire" + name "Pipewire" + mixer_type "hardware" + enabled "yes" + } + ''; + }; +} diff --git a/nixos/.flake/home/services/syncthing.nix b/nixos/.flake/home/services/syncthing.nix new file mode 100644 index 0000000..1eccd8d --- /dev/null +++ b/nixos/.flake/home/services/syncthing.nix @@ -0,0 +1,7 @@ +{ config, pkgs, ... }: + +{ + services.syncthing = { + enable = true; + }; +} -- cgit v1.2.3