From 2c82e8abedd237c2ecf60cca6f8fbbdf93fd4dd0 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Thu, 5 Dec 2024 03:46:15 +0100 Subject: [PATCH] chore: prepare elfeed server data on winters --- SwarselSystems.org | 2 +- index.html | 174 ++++++++++++++++---------------- profiles/common/nixos/users.nix | 2 +- programs/emacs/server.el | 2 +- 4 files changed, 90 insertions(+), 90 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index f7eeb06..f90c91a 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -3124,7 +3124,7 @@ This ensures that all user-configuration happens here in the config file. isNormalUser = true; description = "Leon S"; hashedPasswordFile = lib.mkIf (!config.swarselsystems.initialSetup) config.sops.secrets.swarseluser.path; - extraGroups = [ "networkmanager" "docker" "wheel" "lp" "audio" "video" "vboxusers" "scanner" ]; + extraGroups = [ "networkmanager" "syncthing" "docker" "wheel" "lp" "audio" "video" "vboxusers" "scanner" ]; packages = with pkgs; [ ]; }; }; diff --git a/index.html b/index.html index 351f076..d953582 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + SwarselSystems: NixOS + Emacs Configuration @@ -246,16 +246,16 @@
  • 3.3. NixOS
  • 3.4. Home-manager
  • @@ -289,7 +289,7 @@
  • 4.3.1. General setup
  • 4.3.2. Mark all themes as safe
  • 4.3.3. Show less compilation warnings
  • -
  • 4.3.4. Better garbage collection
  • +
  • 4.3.4. Better garbage collection
  • 4.3.5. Indentation
  • 4.3.6. Scrolling
  • 4.3.7. Evil
  • @@ -310,14 +310,14 @@ @@ -361,7 +361,7 @@

    -This file has 49109 words spanning 12873 lines and was last revised on 2024-12-05 03:40:56 +0100. +This file has 49110 words spanning 12873 lines and was last revised on 2024-12-05 03:45:44 +0100.

    @@ -411,7 +411,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry

    -My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-12-05 03:40:56 +0100) +My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-12-05 03:45:44 +0100)

    @@ -1158,7 +1158,7 @@ This section mainly exists house different `configuration.nix` files for system
      -
    1. live (ISO)
      +
    2. live (ISO)
      { inputs, outputs, config, pkgs, lib, ... }:
      @@ -1541,7 +1541,7 @@ in
       
    3. -
    4. Winters (Server)
      +
    5. Winters (Server)
      { self, inputs, outputs, config, ... }:
      @@ -1622,7 +1622,7 @@ in
       
    6. -
    7. nbm-imba-166 (MacBook Pro)
      +
    8. nbm-imba-166 (MacBook Pro)
      { self, inputs, outputs, ... }:
      @@ -1662,7 +1662,7 @@ in
       
    9. -
    10. Magicant (Phone)
      +
    11. Magicant (Phone)
      @@ -2911,7 +2911,7 @@ writeShellApplication {
       
    12. -
    13. screenshare
      +
    14. screenshare
      @@ -3119,7 +3119,7 @@ in
       
    15. -
    16. Input
      +
    17. Input
      { lib, ... }:
      @@ -3435,7 +3435,7 @@ These are some extra options that will be used if the machine also runs NixOS. F
       
    18. -
    19. darwin
      +
    20. darwin
      { lib,  ... }:
      @@ -3548,7 +3548,7 @@ These are system-level settings specific to NixOS machines. All settings that ar
       

        -
      1. Imports, non-server settings
        +
      2. Imports, non-server settings

        This section is for setting things that should be used on hosts that are using the default NixOS configuration. This means that servers should NOT import this, as much of these imported modules are user-configured. @@ -3608,7 +3608,7 @@ This section is for setting things that should be used on hosts that are using t

    21. -
    22. General NixOS settings (enable home-manager module, stateVersion)
      +
    23. General NixOS settings (enable home-manager module, stateVersion)

      Also, we disable the warnings that trigger when rebuilding with a dirty flake. At this point, I am also disabling channels and pinning the flake registry - the latter lets me use the local version of nixpkgs for commands like nix shell (without it, we will always download the newest version of nixpkgs for these commands). @@ -3649,7 +3649,7 @@ Also, the system state version is set here. No need to touch it.

    24. -
    25. Setup home-manager
      +
    26. Setup home-manager

      First, we enable the use of home-manager as a NixoS modul. @@ -3705,7 +3705,7 @@ This ensures that all user-configuration happens here in the config file. isNormalUser = true; description = "Leon S"; hashedPasswordFile = lib.mkIf (!config.swarselsystems.initialSetup) config.sops.secrets.swarseluser.path; - extraGroups = [ "networkmanager" "docker" "wheel" "lp" "audio" "video" "vboxusers" "scanner" ]; + extraGroups = [ "networkmanager" "syncthing" "docker" "wheel" "lp" "audio" "video" "vboxusers" "scanner" ]; packages = with pkgs; [ ]; }; }; @@ -5149,7 +5149,7 @@ A friend of mine used this service and I used to make fun of him. But I have to

    27. -
    28. Podmam (distrobox)
      +
    29. Podmam (distrobox)

      I am using distrobox to quickly circumvent isses that I cannot immediately solve on NixOS. It is always the goal to quickly get things working on NixOS, but this prevents me from getting completely stuck. @@ -5172,7 +5172,7 @@ I am using distrobox to quickly circumvent isses that I cannot immediately solve

    30. -
    31. Handle lid switch correctly
      +
    32. Handle lid switch correctly

      This turns off the display when the lid is closed. @@ -5211,12 +5211,12 @@ This turns off the display when the lid is closed.

    -
    -

    3.3.2. Server

    +
    +

    3.3.2. Server

      -
    1. Imports
      +
    2. Imports

      First, we enable the use of home-manager as a NixoS module. @@ -5273,7 +5273,7 @@ in

    -
  • General NixOS Server settings
    +
  • General NixOS Server settings
    { lib, config, ... }:
    @@ -5294,7 +5294,7 @@ in
     
  • -
  • System Packages
    +
  • System Packages
    { pkgs, ... }:
    @@ -5311,7 +5311,7 @@ in
     
  • -
  • sops
    +
  • sops
    { config, ... }:
    @@ -5327,7 +5327,7 @@ in
     
  • -
  • nfs/samba (smb)
    +
  • nfs/samba (smb)
    { pkgs, ... }:
    @@ -5383,7 +5383,7 @@ in
     
  • -
  • NGINX
    +
  • NGINX
    { pkgs, config, ... }:
    @@ -5425,7 +5425,7 @@ in
     
  • -
  • ssh
    +
  • ssh
    { self, ... }:
    @@ -5448,7 +5448,7 @@ in
     
  • -
  • kavita
    +
  • kavita
    { pkgs, lib, config, ... }:
    @@ -5497,7 +5497,7 @@ in
     
  • -
  • jellyfin
    +
  • jellyfin
    { pkgs, lib, config, ... }:
    @@ -5548,7 +5548,7 @@ in
     
  • -
  • navidrome
    +
  • navidrome
    { pkgs, lib, config, ... }:
    @@ -5648,7 +5648,7 @@ in
     
  • -
  • spotifyd
    +
  • spotifyd
    { lib, config, ... }:
    @@ -5689,7 +5689,7 @@ in
     
  • -
  • mpd
    +
  • mpd
    { pkgs, lib, config, ... }:
    @@ -5747,7 +5747,7 @@ in
     
  • -
  • matrix
    +
  • matrix
    { config, lib, pkgs, sops, ... }:
    @@ -6072,7 +6072,7 @@ in
     
  • -
  • nextcloud
    +
  • nextcloud
    { pkgs, lib, config, ... }:
    @@ -6122,7 +6122,7 @@ in
     
  • -
  • immich
    +
  • immich
    { lib, config, ... }:
    @@ -6178,7 +6178,7 @@ in
     
  • -
  • paperless
    +
  • paperless
    { lib, config, ... }:
    @@ -6235,7 +6235,7 @@ in
     
  • -
  • transmission
    +
  • transmission
    { pkgs, lib, config, ... }:
    @@ -6375,7 +6375,7 @@ in
     
  • -
  • syncthing
    +
  • syncthing
    { lib, config, ... }:
    @@ -6488,7 +6488,7 @@ in
     
  • -
  • restic
    +
  • restic
    { lib, config, ... }:
    @@ -6503,7 +6503,7 @@ in
     
  • -
  • monitoring
    +
  • monitoring
    { self, lib, config, ... }:
    @@ -6670,7 +6670,7 @@ in
     
  • -
  • Jenkins
    +
  • Jenkins
    { pkgs, lib, config, ... }:
    @@ -6712,7 +6712,7 @@ in
     
  • -
  • Emacs (RSS Server)
    +
  • Emacs (RSS Server)
    { lib, config, ... }:
    @@ -6750,12 +6750,12 @@ in
     
  • -
    -

    3.3.3. Darwin

    +
    +

    3.3.3. Darwin

      -
    1. Imports
      +
    2. Imports

      This section sets up all the imports that are used in the home-manager section. @@ -6872,7 +6872,7 @@ This sets the VirtualBox configuration. Guest should not be enabled if not direl

    -
  • VmWare
    +
  • VmWare

    This sets the VirtualBox configuration. Guest should not be enabled if not direly needed, it will make rebuilds unbearably slow. @@ -7115,7 +7115,7 @@ This section sets up all the imports that are used in the home-manager section.

  • -
  • General home-manager-settings
    +
  • General home-manager-settings

    Again, we adapt nix to our needs, enable the home-manager command for non-NixOS machines (NixOS machines are using it as a module) and setting user information that I always keep the same. @@ -8219,7 +8219,7 @@ Here we set some aliases (some of them should be shellApplications instead) as w

  • -
  • zellij
    +
  • zellij
    _:
    @@ -8427,7 +8427,7 @@ Here we set some aliases (some of them should be shellApplications instead) as w
     
  • -
  • tmux
    +
  • tmux
    @@ -9812,12 +9812,12 @@ This service changes the screen hue at night. I am not sure if that really does
     
  • -
    -

    3.4.2. Server

    +
    +

    3.4.2. Server

      -
    1. Imports
      +
    2. Imports

      This section sets up all the imports that are used in the home-manager section. @@ -9838,7 +9838,7 @@ in

    -
  • Linking dotfiles
    +
  • Linking dotfiles

    This section should be used in order to symlink already existing configuration files using `home.file` and setting session variables using `home.sessionVariables`. @@ -9864,12 +9864,12 @@ As for the `home.sessionVariables`, it should be noted that environment variable

  • -
    -

    3.4.3. Darwin

    +
    +

    3.4.3. Darwin

      -
    1. Imports
      +
    2. Imports

      This section sets up all the imports that are used in the home-manager section. @@ -11338,7 +11338,7 @@ This formats the org code block at point in accordance to the

    3. -
    4. Disable garbace collection while minibuffer is active
      +
    5. Disable garbace collection while minibuffer is active
      @@ -11710,8 +11710,8 @@ When Emacs compiles stuff, it often shows a bunch of warnings that I do not need
       
    -
    -

    4.3.4. Better garbage collection

    +
    +

    4.3.4. Better garbage collection

    (setq garbage-collection-messages t)
    @@ -12956,8 +12956,8 @@ This adds a rudimentary nix-mode to Emacs. I have not really tried this out, as
     
    -
    -

    4.4.3. HCL Mode

    +
    +

    4.4.3. HCL Mode

    This adds support for Hashicorp Configuration Language. I need this at work. @@ -12974,8 +12974,8 @@ This adds support for Hashicorp Configuration Language. I need this at work.

    -
    -

    4.4.4. Jenkinsfile/Groovy

    +
    +

    4.4.4. Jenkinsfile/Groovy

    This adds support for Groovy, which I specifically need to work with Jenkinsfiles. I need this at work. @@ -12992,8 +12992,8 @@ This adds support for Groovy, which I specifically need to work with Jenkinsfile

    -
    -

    4.4.5. Dockerfile

    +
    +

    4.4.5. Dockerfile

    This adds support for Dockerfiles. I need this at work. @@ -13008,8 +13008,8 @@ This adds support for Dockerfiles. I need this at work.

    -
    -

    4.4.6. Terraform Mode

    +
    +

    4.4.6. Terraform Mode

    This adds support for Terraform configuration files. I need this at work. @@ -13104,8 +13104,8 @@ This mode is not automatically activated anywhere because I only rarely need it.

    -
    -

    4.4.10. elfeed

    +
    +

    4.4.10. elfeed

    -
    -

    4.4.33. sideline-flymake

    +
    +

    4.4.33. sideline-flymake

    This brings back warnings and errors on the sideline for eglot; a feature that I have been missing from lsp-mode for a while. @@ -14523,8 +14523,8 @@ This sets up the dashboard, which is really quite useless. But, it

    -
    -

    4.4.45. vterm

    +
    +

    4.4.45. vterm

    @@ -14647,7 +14647,7 @@ Prints a reasuring message to proove good faith."
     
    diff --git a/profiles/common/nixos/users.nix b/profiles/common/nixos/users.nix index 87676d7..2aef8a8 100644 --- a/profiles/common/nixos/users.nix +++ b/profiles/common/nixos/users.nix @@ -8,7 +8,7 @@ isNormalUser = true; description = "Leon S"; hashedPasswordFile = lib.mkIf (!config.swarselsystems.initialSetup) config.sops.secrets.swarseluser.path; - extraGroups = [ "networkmanager" "docker" "wheel" "lp" "audio" "video" "vboxusers" "scanner" ]; + extraGroups = [ "networkmanager" "syncthing" "docker" "wheel" "lp" "audio" "video" "vboxusers" "scanner" ]; packages = with pkgs; [ ]; }; }; diff --git a/programs/emacs/server.el b/programs/emacs/server.el index ab00877..b5e5b3c 100644 --- a/programs/emacs/server.el +++ b/programs/emacs/server.el @@ -43,7 +43,7 @@ :ensure t :config (elfeed-org) - (setq rmh-elfeed-org-files (list "~/.elfeed/elfeed.org")) + (setq rmh-elfeed-org-files (list "/Vault/data/syncthing/.elfeed/elfeed.org")) ) ;; Laod elfeed-goodies