From e99ed26f80fc97d2e9dfda3b0837d2dbc0ac95dd Mon Sep 17 00:00:00 2001 From: Aproxia-dev Date: Fri, 27 Oct 2023 09:48:05 +0200 Subject: [PATCH] emi's random river experiments --- hosts/twinkpad/configuration.nix | 1 + modules/desktop/awesome.nix | 2 -- modules/desktop/river.nix | 15 +++++++++++++++ users/apro/default.nix | 4 +++- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 modules/desktop/river.nix diff --git a/hosts/twinkpad/configuration.nix b/hosts/twinkpad/configuration.nix index 19830f8..ccb4d69 100755 --- a/hosts/twinkpad/configuration.nix +++ b/hosts/twinkpad/configuration.nix @@ -13,6 +13,7 @@ package = pkgs.awesome-git; }; sway.enable = true; + river.enable = true; }; hardware.laptop.enable = true; system = { diff --git a/modules/desktop/awesome.nix b/modules/desktop/awesome.nix index a832309..f16d6c3 100755 --- a/modules/desktop/awesome.nix +++ b/modules/desktop/awesome.nix @@ -10,8 +10,6 @@ in { }; config = mkIf cfg.enable { - environment.systemPackages = with pkgs; [ luajit ]; - services.xserver.windowManager.awesome = { enable = true; package = cfg.package; diff --git a/modules/desktop/river.nix b/modules/desktop/river.nix new file mode 100755 index 0000000..55a0bda --- /dev/null +++ b/modules/desktop/river.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, inputs, system, ... }: + +with builtins; +with lib; +let cfg = config.modules.desktop.river; +in { + options.modules.desktop.river = { + enable = mkEnableOption "river"; + }; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ rivercarro ]; + programs.river.enable = true; + }; +} diff --git a/users/apro/default.nix b/users/apro/default.nix index f6ef71c..82ea334 100755 --- a/users/apro/default.nix +++ b/users/apro/default.nix @@ -5,7 +5,7 @@ in { home = { packages = (with pkgs; [ (pcmanfm.override { withGtk3 = true; }) - rofi + rofi-wayland scrot picom-dccsillag ranger @@ -104,6 +104,8 @@ in { picom.source = ./config/picom; rofi.source = ./config/rofi; "libinput-gestures.conf".source = ./config/libinput-gestures.conf; + + "mimeapps.list".force = true; }; };