diff options
Diffstat (limited to 'modules/home-manager/personal/profiles.nix')
| -rw-r--r-- | modules/home-manager/personal/profiles.nix | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/modules/home-manager/personal/profiles.nix b/modules/home-manager/personal/profiles.nix index baf9219..48491ad 100644 --- a/modules/home-manager/personal/profiles.nix +++ b/modules/home-manager/personal/profiles.nix @@ -3,10 +3,12 @@ lib, pkgs, ... -}: let +}: +let cfg = config.personal.profiles; mkEnableProfileOption = name: lib.mkEnableOption "${name} profile"; -in { +in +{ options.personal.profiles = { dev = mkEnableProfileOption "development"; social = mkEnableProfileOption "social"; @@ -16,7 +18,7 @@ in { config = lib.mkMerge [ (lib.mkIf cfg.dev { - home.packages = with pkgs; [python3]; + home.packages = with pkgs; [ python3 ]; programs = { alacritty.enable = lib.mkDefault config.personal.gui.enable; direnv.enable = lib.mkDefault true; @@ -25,14 +27,16 @@ in { }; personal.programs.devenv.enable = true; - home.file.".config/latexmkrc".text = - builtins.readFile config.personal.home.dotfiles.latexmkrc; + home.file.".config/latexmkrc".text = builtins.readFile config.personal.home.dotfiles.latexmkrc; services.gpg-agent.enableSshSupport = true; }) (lib.mkIf cfg.multimedia { - home.packages = with pkgs; [transmission_4-gtk vlc]; + home.packages = with pkgs; [ + transmission_4-gtk + vlc + ]; personal = { gui.enable = lib.mkForce true; firefox.webapps = [ @@ -42,7 +46,11 @@ in { icon = "${pkgs.personal.static.icons.netflix}"; comment = "Unlimited movies, TV shows, and more."; url = "https://www.netflix.com/fr-en/login"; - categories = ["AudioVideo" "Video" "Player"]; + categories = [ + "AudioVideo" + "Video" + "Player" + ]; } { name = "MUBI"; @@ -50,7 +58,11 @@ in { icon = "${pkgs.personal.static.icons.mubi}"; comment = "Watch hand-picked cinema."; url = "https://mubi.com"; - categories = ["AudioVideo" "Video" "Player"]; + categories = [ + "AudioVideo" + "Video" + "Player" + ]; } { name = "Deezer"; @@ -58,17 +70,23 @@ in { icon = "${pkgs.personal.static.icons.deezer}"; comment = "Listen to music online"; url = "https://deezer.com/login"; - categories = ["AudioVideo" "Audio" "Player" "Music"]; + categories = [ + "AudioVideo" + "Audio" + "Player" + "Music" + ]; } ]; }; }) (lib.mkIf cfg.social { - home.packages = with pkgs; - lib.optionals - (config.personal.gui.enable && config.personal.identities.personal) - [signal-desktop-bin]; + home.packages = + with pkgs; + lib.optionals (config.personal.gui.enable && config.personal.identities.personal) [ + signal-desktop-bin + ]; programs.thunderbird.enable = lib.mkDefault config.personal.gui.enable; programs.gpg.enable = true; services.gpg-agent.enable = true; |
