Unverified Commit 2eee48a2 authored by Gaël James's avatar Gaël James Committed by Gaël James
Browse files

spacefm: drop

parent eebdd133
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -162,6 +162,8 @@

- All Xfce packages have been moved to top level (e.g. if you previously added `pkgs.xfce.xfce4-whiskermenu-plugin` to `environment.systemPackages`, you will need to change it to `pkgs.xfce4-whiskermenu-plugin`). The `xfce` scope will be removed in NixOS 26.11.

- `spacefm` was removed because it appeared to be unmaintained upstream.

- `vimPlugins.nvim-treesitter` has been updated to `main` branch, which is a full and incompatible rewrite. If you can't or don't want to update, you should use `vimPlugins.nvim-treesitter-legacy`.

## Other Notable Changes {#sec-nixpkgs-release-26.05-notable-changes}
+0 −1
Original line number Diff line number Diff line
@@ -317,7 +317,6 @@
  ./programs/slock.nix
  ./programs/sniffnet.nix
  ./programs/soundmodem.nix
  ./programs/spacefm.nix
  ./programs/ssh.nix
  ./programs/starship.nix
  ./programs/steam.nix
+0 −60
Original line number Diff line number Diff line
# Global configuration for spacefm.

{
  config,
  lib,
  pkgs,
  ...
}:

let
  cfg = config.programs.spacefm;

in
{
  ###### interface

  options = {

    programs.spacefm = {

      enable = lib.mkOption {
        type = lib.types.bool;
        default = false;
        description = ''
          Whether to install SpaceFM and create {file}`/etc/spacefm/spacefm.conf`.
        '';
      };

      settings = lib.mkOption {
        type = lib.types.attrs;
        default = {
          tmp_dir = "/tmp";
          terminal_su = "${pkgs.sudo}/bin/sudo";
        };
        defaultText = lib.literalExpression ''
          {
            tmp_dir = "/tmp";
            terminal_su = "''${pkgs.sudo}/bin/sudo";
          }
        '';
        description = ''
          The system-wide spacefm configuration.
          Parameters to be written to {file}`/etc/spacefm/spacefm.conf`.
          Refer to the [relevant entry](https://ignorantguru.github.io/spacefm/spacefm-manual-en.html#programfiles-etc) in the SpaceFM manual.
        '';
      };

    };
  };

  ###### implementation

  config = lib.mkIf cfg.enable {
    environment.systemPackages = [ pkgs.spaceFM ];

    environment.etc."spacefm/spacefm.conf".text = lib.concatStrings (
      lib.mapAttrsToList (n: v: "${n}=${toString v}\n") cfg.settings
    );
  };
}
+3 −0
Original line number Diff line number Diff line
@@ -469,6 +469,9 @@ in
    (mkRemovedOptionModule [ "virtualisation" "multipass" ] ''
      virtualisation.multipass has been removed since it was unmaintained in nixpkgs
    '')
    (mkRemovedOptionModule [ "programs" "spacefm" ] ''
      spacefm has been removed since it was unmaintained upstream.
    '')
    # Do NOT add any option renames here, see top of the file
  ];
}
+0 −12
Original line number Diff line number Diff line
diff --git a/src/main.c b/src/main.c
index 27f5614..2b45708 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,6 +23,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <sys/sysmacros.h>
 
 #include <signal.h>
 
Loading