diff options
author | Alex Auvolat <alex@adnab.me> | 2023-12-25 20:44:38 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-12-25 20:44:38 +0100 |
commit | 03e3439e8722077d27b67b51a5e3fda4b79e61af (patch) | |
tree | 811602905663e2ab8cabc5d01d5af7befc1e096f /nixpkgs | |
parent | 99905fc68eb6075f8375dc5d6c6932458fff43a2 (diff) | |
download | user-config-03e3439e8722077d27b67b51a5e3fda4b79e61af.tar.gz user-config-03e3439e8722077d27b67b51a5e3fda4b79e61af.zip |
refactor and switch kusanagi to wayfire
Diffstat (limited to 'nixpkgs')
-rw-r--r-- | nixpkgs/Makefile | 2 | ||||
-rw-r--r-- | nixpkgs/icewm.nix | 21 | ||||
-rw-r--r-- | nixpkgs/kusanagi.nix | 2 | ||||
-rw-r--r-- | nixpkgs/wayfire.nix | 8 | ||||
-rw-r--r-- | nixpkgs/wmonly.nix | 20 |
5 files changed, 33 insertions, 20 deletions
diff --git a/nixpkgs/Makefile b/nixpkgs/Makefile index 2eb8d4a..7d2fb5c 100644 --- a/nixpkgs/Makefile +++ b/nixpkgs/Makefile @@ -1,3 +1,3 @@ all: nixfmt `hostname`.nix - nix run home-manager/release-23.05 -- switch -f `hostname`.nix + nix run home-manager/release-23.11 -- switch -f `hostname`.nix diff --git a/nixpkgs/icewm.nix b/nixpkgs/icewm.nix index 2a33c0d..225c8fc 100644 --- a/nixpkgs/icewm.nix +++ b/nixpkgs/icewm.nix @@ -1,4 +1,6 @@ { pkgs, ... }: { + imports = [ ./wmonly.nix ]; + nixpkgs.config.packageOverrides = pkgs: { chicago95 = import ../nixos/pkg_chicago95.nix { inherit pkgs; }; }; @@ -46,22 +48,5 @@ ../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" ]; - }; + home.packages = with pkgs; [ chicago95 ]; } diff --git a/nixpkgs/kusanagi.nix b/nixpkgs/kusanagi.nix index 6422ee4..840e41b 100644 --- a/nixpkgs/kusanagi.nix +++ b/nixpkgs/kusanagi.nix @@ -6,7 +6,7 @@ let sha256 = "sha256:1dizlmwzl6319s9cfbd770ydlj0kf0k3yz5rzw4xni8lnh691hx7"; }; in { - imports = [ ./common.nix ./icewm.nix ]; + imports = [ ./common.nix ./wayfire.nix ]; programs.bash.profileExtra = '' function mklink { diff --git a/nixpkgs/wayfire.nix b/nixpkgs/wayfire.nix new file mode 100644 index 0000000..191846b --- /dev/null +++ b/nixpkgs/wayfire.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: { + imports = [ ./wmonly.nix ]; + + home.file = { + ".config/wayfire.ini".source = ../wayfire/wayfire.ini; + ".config/waybar/config".source = ../waybar/config; + }; +} diff --git a/nixpkgs/wmonly.nix b/nixpkgs/wmonly.nix new file mode 100644 index 0000000..7096c69 --- /dev/null +++ b/nixpkgs/wmonly.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ 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" ]; + }; +} |