ctucx.git: nixfiles

ctucx' nixfiles

commit cfa09f38e014481a862b1cc3f3ace3593c5af5f3
parent 11ee5e636ab275f8d78443d009036a027859c85c
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 11 Jun 2022 11:49:45 +0200

machines/blechbuechse: use homebrew
3 files changed, 34 insertions(+), 24 deletions(-)
diff --git a/configurations/programs/cli/utilities.nix b/configurations/programs/cli/utilities.nix
@@ -41,7 +41,6 @@ in {
         gptfdisk
       ] else [
         pkgsUnstable.niv
-        mas
       ]);
     };
 
diff --git a/machines/blechbuechse/darwin-configuration.nix b/machines/blechbuechse/darwin-configuration.nix
@@ -4,18 +4,6 @@ let
   bgiparser = pkgs.callPackage ../../pkgs/bgiparser.nix {};
   asitop    = pkgs.callPackage ../../pkgs/asitop.nix {};
 
-  Firefox         = pkgs.callPackage ../../pkgs/macApps/Firefox.nix {};
-  Thunderbird     = pkgs.callPackage ../../pkgs/macApps/Thunderbird.nix {};
-  LibreOffice     = pkgs.callPackage ../../pkgs/macApps/LibreOffice.nix {};
-  IINA            = pkgs.callPackage ../../pkgs/macApps/IINA.nix {};
-  iTerm           = pkgs.callPackage ../../pkgs/macApps/iTerm.nix {};
-  HiddenBar       = pkgs.callPackage ../../pkgs/macApps/HiddenBar.nix {};
-  Hot             = pkgs.callPackage ../../pkgs/macApps/Hot.nix {};
-  AlDente         = pkgs.callPackage ../../pkgs/macApps/AlDente.nix {};
-  KeepingYouAwake = pkgs.callPackage ../../pkgs/macApps/KeepingYouAwake.nix {};
-  MonitorControl  = pkgs.callPackage ../../pkgs/macApps/MonitorControl.nix {};
-  Rectangle       = pkgs.callPackage ../../pkgs/macApps/Rectangle.nix {};
-
 in {
 
   imports = [

@@ -43,6 +31,8 @@ in {
     ./skhd.nix
     ./keyboard.nix
     ./speakers.nix
+
+    ./homebrew.nix
   ];
 
   nix.package = pkgs.nix;

@@ -68,17 +58,6 @@ in {
     shells         = [ pkgs.bashInteractive ];
     systemPackages = with pkgs; [
       bashInteractive
-      Firefox
-      Thunderbird
-      LibreOffice
-      IINA
-      iTerm
-      HiddenBar
-      MonitorControl
-      KeepingYouAwake
-      Rectangle
-      AlDente
-      Hot
     ];
   };
 
diff --git a/machines/blechbuechse/homebrew.nix b/machines/blechbuechse/homebrew.nix
@@ -0,0 +1,32 @@
+{ ... }:
+
+{
+  homebrew = {
+    enable  = true;
+    cleanup = "zap";
+    brews   = [
+      "mas"
+    ];
+    casks   = [
+      "iterm2"
+      "firefox"
+      "thunderbird"
+      "libreoffice"
+      "iina"
+
+      "rectangle"
+
+      "coconutbattery"
+      "hot"
+      "hiddenbar"
+      "keepingyouawake"
+      "topnotch"
+      "monitorcontrol"
+    ];
+    masApps = {
+      Telegram    = 747648890;
+      Navigator   = 1590354537;
+      "ICE Buddy" = 1595947689;
+    };
+  };
+}