diff --git a/nixos/components/gui/home-manager/doom.d/config.el b/doom.d/config.el similarity index 100% rename from nixos/components/gui/home-manager/doom.d/config.el rename to doom.d/config.el diff --git a/nixos/components/gui/home-manager/doom.d/init.el b/doom.d/init.el similarity index 100% rename from nixos/components/gui/home-manager/doom.d/init.el rename to doom.d/init.el diff --git a/nixos/components/gui/home-manager/doom.d/packages.el b/doom.d/packages.el similarity index 100% rename from nixos/components/gui/home-manager/doom.d/packages.el rename to doom.d/packages.el diff --git a/flake.nix b/flake.nix index 70be4f4..d5d10cf 100644 --- a/flake.nix +++ b/flake.nix @@ -260,7 +260,17 @@ nixos-hardware.nixosModules.common-cpu-intel nixos-hardware.nixosModules.common-gpu-intel ]; - + home-manager.users.root = { + home.stateVersion = "22.11"; + imports = [ + doom-emacs-nix.hmModule + ]; + programs.doom-emacs = { + enable = true; + emacsPackage = pkgs.emacs-nox; + doomPrivateDir = ./doom.d; + }; + }; }; bobi = { name, nodes, pkgs, ... }: { diff --git a/nixos/components/gui/home-manager/doom-emacs.nix b/nixos/components/gui/home-manager/doom-emacs.nix index 3a3f6b9..389cdb2 100644 --- a/nixos/components/gui/home-manager/doom-emacs.nix +++ b/nixos/components/gui/home-manager/doom-emacs.nix @@ -4,7 +4,7 @@ home-manager.users.mainUser = { programs.doom-emacs = { enable = lib.mkDefault true; - doomPrivateDir = ./doom.d; + doomPrivateDir = ../../../doom.d; extraConfig = '' ;; "monospace" means use the system default. However, the default is usually two ;; points larger than I'd like, so I specify size 12 here. diff --git a/nixos/machines/pepe/syncthing.nix b/nixos/machines/pepe/syncthing.nix index b200992..73529c0 100644 --- a/nixos/machines/pepe/syncthing.nix +++ b/nixos/machines/pepe/syncthing.nix @@ -74,7 +74,8 @@ media = { enable = true; path = "/media/syncthing/media"; - rescanInterval = 120 * 3600; + rescanInterval = 30 * 24 * 3600; + type = "receiveonly"; versioning = { type = "simple"; params.keep = "3"; diff --git a/nixos/machines/robi/syncthing.nix b/nixos/machines/robi/syncthing.nix index 1d250fa..2c13826 100644 --- a/nixos/machines/robi/syncthing.nix +++ b/nixos/machines/robi/syncthing.nix @@ -43,8 +43,9 @@ media = { enable = true; watch = true; + type = "sendonly"; path = "/media/syncthing/media"; - rescanInterval = 3 * 24 * 3600; + rescanInterval = 27 * 24 * 3600; }; music-projects = { enable = true;