about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-09 11:31:39 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-09 11:31:39 -0700
commit5c929290c03bcfbc243062157098458a77c2817e (patch)
tree796518fc50b7db940e47127ea67453fcc1a69779
parentinstall documentations (man) (diff)
downloadworld-5c929290c03bcfbc243062157098458a77c2817e.tar.gz
add a few more packages for home/
-rw-r--r--home/default.nix4
-rw-r--r--home/eog/default.nix9
-rw-r--r--home/evince/default.nix9
-rw-r--r--home/seahorse/default.nix9
-rw-r--r--home/transmission-remote/default.nix10
-rw-r--r--home/xdg/default.nix2
-rw-r--r--profiles/desktop/default.nix3
-rw-r--r--profiles/trusted/default.nix5
8 files changed, 50 insertions, 1 deletions
diff --git a/home/default.nix b/home/default.nix
index 42ea925..71fbd14 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -6,6 +6,8 @@
     ./documentation
     ./element
     ./emacs
+    ./eog
+    ./evince
     ./feh
     ./firefox
     ./fish
@@ -21,10 +23,12 @@
     ./pcmanfm
     ./python
     ./scanner
+    ./seahorse
     ./ssh
     ./sublime-music
     ./terminal
     ./tmux
+    ./transmission-remote
     ./vlc
     ./wm
     ./xdg
diff --git a/home/eog/default.nix b/home/eog/default.nix
new file mode 100644
index 0000000..c7f784b
--- /dev/null
+++ b/home/eog/default.nix
@@ -0,0 +1,9 @@
+{ lib, config, pkgs, ... }:
+let cfg = config.my.home.eog;
+in {
+  options.my.home.eog = with lib; {
+    enable = mkEnableOption "eog configuration";
+  };
+
+  config.home.packages = with pkgs; lib.mkIf cfg.enable ([ gnome3.eog ]);
+}
diff --git a/home/evince/default.nix b/home/evince/default.nix
new file mode 100644
index 0000000..16abc57
--- /dev/null
+++ b/home/evince/default.nix
@@ -0,0 +1,9 @@
+{ lib, config, pkgs, ... }:
+let cfg = config.my.home.evince;
+in {
+  options.my.home.evince = with lib; {
+    enable = mkEnableOption "evince configuration";
+  };
+
+  config.home.packages = with pkgs; lib.mkIf cfg.enable ([ gnome3.evince ]);
+}
diff --git a/home/seahorse/default.nix b/home/seahorse/default.nix
new file mode 100644
index 0000000..54688a1
--- /dev/null
+++ b/home/seahorse/default.nix
@@ -0,0 +1,9 @@
+{ lib, config, pkgs, ... }:
+let cfg = config.my.home.seahorse;
+in {
+  options.my.home.seahorse = with lib; {
+    enable = mkEnableOption "seahorse configuration";
+  };
+
+  config.home.packages = with pkgs; lib.mkIf cfg.enable ([ gnome.seahorse ]);
+}
diff --git a/home/transmission-remote/default.nix b/home/transmission-remote/default.nix
new file mode 100644
index 0000000..29c070b
--- /dev/null
+++ b/home/transmission-remote/default.nix
@@ -0,0 +1,10 @@
+{ lib, config, pkgs, ... }:
+let cfg = config.my.home.transmission-remote;
+in {
+  options.my.home.transmission-remote = with lib; {
+    enable = mkEnableOption "transmission-remote configuration";
+  };
+
+  config.home.packages = with pkgs;
+    lib.mkIf cfg.enable ([ transmission-remote-gtk ]);
+}
diff --git a/home/xdg/default.nix b/home/xdg/default.nix
index a4f0c53..133b0ad 100644
--- a/home/xdg/default.nix
+++ b/home/xdg/default.nix
@@ -34,6 +34,8 @@ in {
     #     [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
     # };
 
+    home.packages = with pkgs; [ xdg-utils ];
+
     # I want a tidier home
     home.sessionVariables = with config.xdg; {
       DOCKER_CONFIG = "${configHome}/docker";
diff --git a/profiles/desktop/default.nix b/profiles/desktop/default.nix
index 757c057..6b9f54b 100644
--- a/profiles/desktop/default.nix
+++ b/profiles/desktop/default.nix
@@ -14,6 +14,9 @@ in {
         pcmanfm.enable = true;
         terminal.program = "alacritty";
         xdg.enable = true;
+        eog.enable = true;
+        evince.enable = true;
+        transmission-remote.enable = true;
       };
       profiles = {
         gtk.enable = true;
diff --git a/profiles/trusted/default.nix b/profiles/trusted/default.nix
index 9567ddb..a67f1cf 100644
--- a/profiles/trusted/default.nix
+++ b/profiles/trusted/default.nix
@@ -1,5 +1,7 @@
 { config, lib, ... }:
-let cfg = config.my.profiles.trusted;
+let
+  cfg = config.my.profiles.trusted;
+  isEnabled = config.my.home.wm.windowManager == "sway";
 in {
   options.my.profiles.trusted = with lib; {
     enable = mkEnableOption "trusted profile";
@@ -12,5 +14,6 @@ in {
     };
     my.home.mail.enable = true;
     my.home.pass.enable = true;
+    my.home.seahorse.enable = isEnabled;
   };
 }