diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-07 18:55:30 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-07 18:55:30 -0500 |
commit | 616c0b69313ce28bcc727b1763e99604929c30da (patch) | |
tree | d09cf3083ead9885000487440f48ce4e43a920f8 /common/.flake/home/services | |
parent | 0ef7783a21a5f63f45d8c1bc466d0dce435f966e (diff) |
begin nix migration for mac
Diffstat (limited to 'common/.flake/home/services')
-rw-r--r-- | common/.flake/home/services/emacs.nix.org | 14 | ||||
-rw-r--r-- | common/.flake/home/services/mako.nix.org | 13 | ||||
-rw-r--r-- | common/.flake/home/services/mpd.nix.org | 21 | ||||
-rw-r--r-- | common/.flake/home/services/syncthing.nix.org | 12 |
4 files changed, 60 insertions, 0 deletions
diff --git a/common/.flake/home/services/emacs.nix.org b/common/.flake/home/services/emacs.nix.org new file mode 100644 index 0000000..1a11446 --- /dev/null +++ b/common/.flake/home/services/emacs.nix.org @@ -0,0 +1,14 @@ +#+title: Emacs Service Configuration + +Enable Emacs daemon and client. +#+begin_src nix :tangle ~/.flake/home/services/emacs.nix :mkdirp yes +{ config, pkgs, ... }: + +{ + services.emacs = { + enable = true; + client.enable = true; + socketActivation.enable = true; + }; +} +#+end_src diff --git a/common/.flake/home/services/mako.nix.org b/common/.flake/home/services/mako.nix.org new file mode 100644 index 0000000..caa0240 --- /dev/null +++ b/common/.flake/home/services/mako.nix.org @@ -0,0 +1,13 @@ +#+title: Mako Configuration + +Enable =mako= to handle notifications. +#+begin_src nix :tangle ~/.flake/home/services/mako.nix :mkdirp yes +{ config, pkgs, ... }: + +{ + services.mako = { + enable = true; + backgroundColor = "#191916ff"; + }; +} +#+end_src diff --git a/common/.flake/home/services/mpd.nix.org b/common/.flake/home/services/mpd.nix.org new file mode 100644 index 0000000..b985b2a --- /dev/null +++ b/common/.flake/home/services/mpd.nix.org @@ -0,0 +1,21 @@ +#+title: MPD Configuration + +Set music directory and enable PipeWire output. +#+begin_src nix :tangle ~/.flake/home/services/mpd.nix :mkdirp yes + { config, pkgs, ... }: + + { + services.mpd = { + enable = true; + musicDirectory = "~/Music"; + extraConfig = '' + audio_output { + type "pipewire" + name "Pipewire" + mixer_type "hardware" + enabled "yes" + } + ''; + }; + } +#+end_src diff --git a/common/.flake/home/services/syncthing.nix.org b/common/.flake/home/services/syncthing.nix.org new file mode 100644 index 0000000..42dbf50 --- /dev/null +++ b/common/.flake/home/services/syncthing.nix.org @@ -0,0 +1,12 @@ +#+title: Syncthing Configuration + +Enable Syncthing service. +#+begin_src nix :tangle ~/.flake/home/services/syncthing.nix :mkdirp yes +{ config, pkgs, ... }: + +{ + services.syncthing = { + enable = true; + }; +} +#+end_src |