Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Spencerx/7bf73131d6e84839bbdeffb12b040013 to your computer and use it in GitHub Desktop.

Select an option

Save Spencerx/7bf73131d6e84839bbdeffb12b040013 to your computer and use it in GitHub Desktop.

Revisions

  1. @nat-418 nat-418 revised this gist Aug 3, 2023. 2 changed files with 16 additions and 5 deletions.
    2 changes: 1 addition & 1 deletion a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,6 @@

    The key additions to the default Xfce provided by NixOS are:
    - Complete bluetooth / audio support with panel indicators and apps
    - GDM for rootless XOrg sessions
    - LightDM with theme
    - Extra Xfce apps for calendaring, disk partitioning, etc.
    - Various quality-of-life improving non-essentials
    19 changes: 15 additions & 4 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -5,15 +5,17 @@
    systemPackages = with pkgs; [
    blueman
    chromium
    deja-dup
    drawing
    elementary-xfce-icon-theme
    evince
    firefox
    foliate
    font-manager
    gimp-with-plugins
    gnome.file-roller
    gnome.gnome-disk-utility
    inksacpe-with-extensions
    inkscape-with-extensions
    libqalculate
    libreoffice
    orca
    @@ -27,8 +29,8 @@
    xdo
    xdotool
    xfce.catfish
    xfce.orage
    xfce.gigolo
    xfce.orage
    xfce.xfburn
    xfce.xfce4-appfinder
    xfce.xfce4-clipman-plugin
    @@ -46,6 +48,7 @@
    xfce.xfdashboard
    xorg.xev
    xsel
    xtitle
    xwinmosaic
    zuki-themes
    ];
    @@ -90,7 +93,15 @@
    excludePackages = with pkgs; [
    xterm
    ];
    displayManager.gdm.enable = true;
    displayManager = {
    lightdm = {
    enable = true;
    greeters.slick = {
    enable = true;
    theme.name = "Zukitre-dark";
    };
    };
    };
    desktopManager.xfce.enable = true;
    };
    };
    @@ -99,4 +110,4 @@
    enable = true;
    mediaKeys.enable = true;
    };
    }
    }
  2. @nat-418 nat-418 revised this gist May 5, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion xfce.nix
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,10 @@
    evince
    firefox
    font-manager
    gimp
    gimp-with-plugins
    gnome.file-roller
    gnome.gnome-disk-utility
    inksacpe-with-extensions
    libqalculate
    libreoffice
    orca
  3. @nat-418 nat-418 revised this gist May 5, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,7 @@
    firefox
    font-manager
    gimp
    gnome.file-roller
    gnome.gnome-disk-utility
    libqalculate
    libreoffice
  4. @nat-418 nat-418 revised this gist May 2, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion xfce.nix
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    firefox
    font-manager
    gimp
    gparted
    gnome.gnome-disk-utility
    libqalculate
    libreoffice
    orca
  5. @nat-418 nat-418 revised this gist Apr 24, 2023. 1 changed file with 3 additions and 17 deletions.
    20 changes: 3 additions & 17 deletions a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -4,20 +4,6 @@

    The key additions to the default Xfce provided by NixOS are:
    - Complete bluetooth / audio support with panel indicators and apps
    - GParted app
    - GTK font manager app
    - Firefox and Thunderbird apps
    - Chromium app (which supports PWAs like Microsoft Teams)
    - Catfish file search app
    - Xfburn optical media app
    - Gigolo remote access app
    - Xfce dictionary app
    - Xfdashboard launcher
    - xwinmosaic window filter / navigator
    - Whisker menu
    - various system monitoring / weather panel plugins
    - elementary Xfce icon themes
    - zuki gtk / xfwm themes
    - Thunar plugins for volume, archive, and media library management
    - Support for GNOME keyring and services
    - GDM for rootless Xorg
    - GDM for rootless XOrg sessions
    - Extra Xfce apps for calendaring, disk partitioning, etc.
    - Various quality-of-life improving non-essentials
  6. @nat-418 nat-418 revised this gist Apr 24, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,7 @@
    xdo
    xdotool
    xfce.catfish
    xfce.orage
    xfce.gigolo
    xfce.xfburn
    xfce.xfce4-appfinder
  7. @nat-418 nat-418 revised this gist Apr 21, 2023. 2 changed files with 4 additions and 5 deletions.
    2 changes: 0 additions & 2 deletions a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,6 @@
    NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are minimal. The files in this Gist provide a more complete experience, including a suite of basic software and plugins as well as an optional `home-manager` configuration for theming.

    The key additions to the default Xfce provided by NixOS are:
    - MATE calculator app
    - MATE PDF viewer app
    - Complete bluetooth / audio support with panel indicators and apps
    - GParted app
    - GTK font manager app
    7 changes: 4 additions & 3 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    { config, pkgs, lib, ... }:
    { pkgs, ... }:

    {
    environment = {
    @@ -7,15 +7,16 @@
    chromium
    drawing
    elementary-xfce-icon-theme
    evince
    firefox
    font-manager
    gimp
    gparted
    libqalculate
    libreoffice
    mate.atril
    mate.mate-calc
    orca
    pavucontrol
    qalculate-gtk
    thunderbird
    wmctrl
    xclip
  8. @nat-418 nat-418 revised this gist Apr 18, 2023. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions xfce-home.nix
    Original file line number Diff line number Diff line change
    @@ -7,18 +7,15 @@
    name = "elementary-Xfce-dark";
    package = pkgs.elementary-xfce-icon-theme;
    };

    theme = {
    name = "zukitre-dark";
    package = pkgs.zuki-themes;
    };

    gtk3.extraConfig = {
    Settings = ''
    gtk-application-prefer-dark-theme=1
    '';
    };

    gtk4.extraConfig = {
    Settings = ''
    gtk-application-prefer-dark-theme=1
  9. @nat-418 nat-418 revised this gist Apr 18, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,13 @@
    systemPackages = with pkgs; [
    blueman
    chromium
    drawing
    elementary-xfce-icon-theme
    firefox
    font-manager
    gimp
    gparted
    libreoffice
    mate.atril
    mate.mate-calc
    orca
  10. @nat-418 nat-418 revised this gist Apr 18, 2023. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -9,14 +9,17 @@
    firefox
    font-manager
    gparted
    hunspell
    hunspellDicts.en-us
    libreoffice
    mate.atril
    mate.mate-calc
    orca
    pavucontrol
    thunderbird
    wmctrl
    xclip
    xcolor
    xcolor
    xdo
    xdotool
    xfce.catfish
    xfce.gigolo
    xfce.xfburn
    @@ -34,7 +37,8 @@
    xfce.xfce4-whiskermenu-plugin
    xfce.xfce4-xkb-plugin
    xfce.xfdashboard
    xfce.xfdesktop
    xorg.xev
    xsel
    xwinmosaic
    zuki-themes
    ];
  11. @nat-418 nat-418 revised this gist Apr 18, 2023. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion xfce.nix
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,6 @@
    mate.atril
    mate.mate-calc
    orca
    pulseaudio
    pavucontrol
    thunderbird
    xfce.catfish
  12. @nat-418 nat-418 revised this gist Apr 18, 2023. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,13 @@
    firefox
    font-manager
    gparted
    hunspell
    hunspellDicts.en-us
    libreoffice
    mate.atril
    mate.mate-calc
    orca
    pulseaudio
    pavucontrol
    thunderbird
    xfce.catfish
  13. @nat-418 nat-418 revised this gist Apr 16, 2023. 2 changed files with 0 additions and 4 deletions.
    2 changes: 0 additions & 2 deletions a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -18,8 +18,6 @@ The key additions to the default Xfce provided by NixOS are:
    - xwinmosaic window filter / navigator
    - Whisker menu
    - various system monitoring / weather panel plugins
    - xsel CLI tool
    - xcolor app
    - elementary Xfce icon themes
    - zuki gtk / xfwm themes
    - Thunar plugins for volume, archive, and media library management
    2 changes: 0 additions & 2 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,6 @@
    mate.mate-calc
    pavucontrol
    thunderbird
    xcolor
    xfce.catfish
    xfce.gigolo
    xfce.xfburn
    @@ -32,7 +31,6 @@
    xfce.xfce4-xkb-plugin
    xfce.xfdashboard
    xfce.xfdesktop
    xsel
    xwinmosaic
    zuki-themes
    ];
  14. @nat-418 nat-418 revised this gist Apr 16, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # A sensible NixOS Xfce Configuration

    NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are minimal. The files in this Gist provide a more complete experience, including a suite of basic software and plugins as well as an optional `home-manager` configuration for themeing.
    NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are minimal. The files in this Gist provide a more complete experience, including a suite of basic software and plugins as well as an optional `home-manager` configuration for theming.

    The key additions to the default Xfce provided by NixOS are:
    - MATE calculator app
  15. @nat-418 nat-418 revised this gist Apr 16, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # A sensible NixOS Xfce Configuration

    NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are very minimalist. These files provide a more complete experience, including a suite of basic software and plugins as well as an optional `home-manager` configuration for themeing.
    NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are minimal. The files in this Gist provide a more complete experience, including a suite of basic software and plugins as well as an optional `home-manager` configuration for themeing.

    The key additions to the default Xfce provided by NixOS are:
    - MATE calculator app
  16. @nat-418 nat-418 revised this gist Apr 16, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ The key additions to the default Xfce provided by NixOS are:
    - GParted app
    - GTK font manager app
    - Firefox and Thunderbird apps
    - Chromium app (which supports Progressive Web Apps like Microsoft Teams)
    - Chromium app (which supports PWAs like Microsoft Teams)
    - Catfish file search app
    - Xfburn optical media app
    - Gigolo remote access app
  17. @nat-418 nat-418 revised this gist Apr 16, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,7 @@ The key additions to the default Xfce provided by NixOS are:
    - various system monitoring / weather panel plugins
    - xsel CLI tool
    - xcolor app
    - elementary Xfce icon themes
    - zuki gtk / xfwm themes
    - Thunar plugins for volume, archive, and media library management
    - Support for GNOME keyring and services
  18. @nat-418 nat-418 revised this gist Apr 16, 2023. 1 changed file with 26 additions and 1 deletion.
    27 changes: 26 additions & 1 deletion a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,26 @@
    # A sensible NixOS XFCE Configuration
    # A sensible NixOS Xfce Configuration

    NixOS provides good support for the Xfce desktop environment out-of-the-box, but the defaults are very minimalist. These files provide a more complete experience, including a suite of basic software and plugins as well as an optional `home-manager` configuration for themeing.

    The key additions to the default Xfce provided by NixOS are:
    - MATE calculator app
    - MATE PDF viewer app
    - Complete bluetooth / audio support with panel indicators and apps
    - GParted app
    - GTK font manager app
    - Firefox and Thunderbird apps
    - Chromium app (which supports Progressive Web Apps like Microsoft Teams)
    - Catfish file search app
    - Xfburn optical media app
    - Gigolo remote access app
    - Xfce dictionary app
    - Xfdashboard launcher
    - xwinmosaic window filter / navigator
    - Whisker menu
    - various system monitoring / weather panel plugins
    - xsel CLI tool
    - xcolor app
    - zuki gtk / xfwm themes
    - Thunar plugins for volume, archive, and media library management
    - Support for GNOME keyring and services
    - GDM for rootless Xorg
  19. @nat-418 nat-418 revised this gist Apr 16, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions a-sensible-nixos-xfce-configuration.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # A sensible NixOS XFCE Configuration
  20. @nat-418 nat-418 renamed this gist Apr 16, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  21. @nat-418 nat-418 renamed this gist Apr 16, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  22. @nat-418 nat-418 created this gist Apr 16, 2023.
    10 changes: 10 additions & 0 deletions configuration.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    { config, pkgs, lib, ... }:

    {
    imports = [
    ./hardware-configuration.nix
    ./xfce.nix
    ];

    # the rest of your nixos configuration
    }
    9 changes: 9 additions & 0 deletions home.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    { config, pkgs, lib, ... }:

    {
    imports = [
    ./xfce-home.nix
    ];

    # the rest of your home-manager configuration
    }
    32 changes: 32 additions & 0 deletions xfce-home.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    { config, pkgs, lib, ... }:

    {
    gtk = {
    enable = true;
    iconTheme = {
    name = "elementary-Xfce-dark";
    package = pkgs.elementary-xfce-icon-theme;
    };

    theme = {
    name = "zukitre-dark";
    package = pkgs.zuki-themes;
    };

    gtk3.extraConfig = {
    Settings = ''
    gtk-application-prefer-dark-theme=1
    '';
    };

    gtk4.extraConfig = {
    Settings = ''
    gtk-application-prefer-dark-theme=1
    '';
    };
    };

    programs.gpg.enable = true;

    services.gpg-agent.enable = true;
    }
    89 changes: 89 additions & 0 deletions xfce.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,89 @@
    { config, pkgs, lib, ... }:

    {
    environment = {
    systemPackages = with pkgs; [
    blueman
    chromium
    elementary-xfce-icon-theme
    firefox
    font-manager
    gparted
    mate.atril
    mate.mate-calc
    pavucontrol
    thunderbird
    xcolor
    xfce.catfish
    xfce.gigolo
    xfce.xfburn
    xfce.xfce4-appfinder
    xfce.xfce4-clipman-plugin
    xfce.xfce4-cpugraph-plugin
    xfce.xfce4-dict
    xfce.xfce4-fsguard-plugin
    xfce.xfce4-genmon-plugin
    xfce.xfce4-netload-plugin
    xfce.xfce4-panel
    xfce.xfce4-pulseaudio-plugin
    xfce.xfce4-systemload-plugin
    xfce.xfce4-weather-plugin
    xfce.xfce4-whiskermenu-plugin
    xfce.xfce4-xkb-plugin
    xfce.xfdashboard
    xfce.xfdesktop
    xsel
    xwinmosaic
    zuki-themes
    ];
    };

    hardware = {
    pulseaudio.enable = false;
    bluetooth.enable = true;
    };

    programs = {
    dconf.enable = true;
    gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
    };
    thunar = {
    enable = true;
    plugins = with pkgs.xfce; [
    thunar-archive-plugin
    thunar-media-tags-plugin
    thunar-volman
    ];
    };
    };

    security.pam.services.gdm.enableGnomeKeyring = true;

    services = {
    blueman.enable = true;
    gnome.gnome-keyring.enable = true;
    pipewire = {
    enable = true;
    alsa = {
    enable = true;
    support32Bit = true;
    };
    pulse.enable = true;
    };
    xserver = {
    enable = true;
    excludePackages = with pkgs; [
    xterm
    ];
    displayManager.gdm.enable = true;
    desktopManager.xfce.enable = true;
    };
    };

    sound = {
    enable = true;
    mediaKeys.enable = true;
    };
    }