From 5c929290c03bcfbc243062157098458a77c2817e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 9 Apr 2022 11:31:39 -0700 Subject: add a few more packages for home/ --- home/default.nix | 4 ++++ home/eog/default.nix | 9 +++++++++ home/evince/default.nix | 9 +++++++++ home/seahorse/default.nix | 9 +++++++++ home/transmission-remote/default.nix | 10 ++++++++++ home/xdg/default.nix | 2 ++ profiles/desktop/default.nix | 3 +++ profiles/trusted/default.nix | 5 ++++- 8 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 home/eog/default.nix create mode 100644 home/evince/default.nix create mode 100644 home/seahorse/default.nix create mode 100644 home/transmission-remote/default.nix 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; }; } -- cgit 1.4.1