summaryrefslogtreecommitdiff
path: root/nixpkgs/icewm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/icewm.nix')
-rw-r--r--nixpkgs/icewm.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/nixpkgs/icewm.nix b/nixpkgs/icewm.nix
new file mode 100644
index 0000000..192aeb0
--- /dev/null
+++ b/nixpkgs/icewm.nix
@@ -0,0 +1,61 @@
+{ pkgs, ... }: {
+ nixpkgs.config.packageOverrides = pkgs: {
+ chicago95 = import ../nixos/pkg_chicago95.nix { inherit pkgs; };
+ };
+
+ home.file = {
+ ".config/sx/sxrc".executable = true;
+ ".config/sx/sxrc".text = ''
+ ${pkgs.xorg.xsetroot}/bin/xsetroot -solid "#008080"
+ xset s off
+ xset -dpms
+ pcmanfm -d &
+ pcmanfm --desktop &
+ nm-applet &
+ icewm-session
+ '';
+ ".config/icewm/preferences".source = ../icewm/preferences;
+ ".config/icewm/keys".source = ../icewm/keys;
+ ".config/icewm/menu".source = ../icewm/menu;
+ ".config/icewm/theme".source = ../icewm/theme;
+ ".config/icewm/toolbar".text = ''
+ prog "Terminal" ${pkgs.chicago95}/share/icons/Chicago95/apps/24/utilities-terminal.png st
+ prog "File manager" ${pkgs.chicago95}/share/icons/Chicago95/apps/24/system-file-manager.png pcmanfm -n /Z/lx
+ prog "Qutebrowser" ${pkgs.qutebrowser}/share/icons/hicolor/32x32/apps/qutebrowser.png qutebrowser
+ prog "Firefox" ${pkgs.firefox}/share/icons/hicolor/32x32/apps/firefox.png ${pkgs.firefox}/bin/firefox
+ # prog "Thunderbird" ${pkgs.thunderbird}/share/icons/hicolor/32x32/apps/thunderbird.png thunderbird
+ prog "Music" ${pkgs.sonixd}/share/icons/hicolor/32x32/apps/sonixd.png sonixd
+ '';
+ ".gtkrc-2.0".text = ''
+ gtk-theme-name = "Chicago95"
+ gtk-icon-theme-name = "Chicago95"
+ '';
+ ".config/gtk-3.0/settings.ini".text = ''
+ [Settings]
+ gtk-icon-theme-name = Chicago95
+ gtk-theme-name = Chicago95
+ '';
+ ".config/pcmanfm/default/pcmanfm.conf".source = ../pcmanfm/pcmanfm.conf;
+ ".config/pcmanfm/default/desktop-items-0.conf".source =
+ ../pcmanfm/desktop-items-0.conf;
+ };
+
+ home.packages = with pkgs; [ chicago95 xfce.tumbler ];
+
+ xdg.desktopEntries.llpp = {
+ name = "llpp";
+ genericName = "PDF viewer";
+ exec = "llpp %f";
+ terminal = false;
+ categories = [ "Graphics" "Viewer" ];
+ mimeType = [ "application/pdf" "application/x-pdf" ];
+ type = "Application";
+ };
+ xdg.mimeApps.enable = true;
+ xdg.mimeApps.defaultApplications = {
+ "application/pdf" = [ "epdfview.desktop" ];
+ "image/jpeg" = [ "org.xfce.ristretto.desktop" ];
+ "image/png" = [ "org.xfce.ristretto.desktop" ];
+ "text/plain" = [ "leafpad.desktop" ];
+ };
+}