summary refs log tree commit diff
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-05-26 19:25:44 +0300
committertzlil <tzlils@protonmail.com>2023-05-26 19:25:44 +0300
commit830d708f96cd7e589b6460e0e18e90966da41ff4 (patch)
tree4c446cd2022f6a8a8b6fd7a02e922b96b4f57d76
parentbe9cadd49f079f3e4a6cdd8bdee463436a21723b (diff)
add dark mode stuffs
-rw-r--r--hosts/laptop/cfg.nix14
-rw-r--r--hosts/vps/website.nix4
-rw-r--r--profiles/graphical.nix39
3 files changed, 38 insertions, 19 deletions
diff --git a/hosts/laptop/cfg.nix b/hosts/laptop/cfg.nix
index 5b30561..b835355 100644
--- a/hosts/laptop/cfg.nix
+++ b/hosts/laptop/cfg.nix
@@ -104,7 +104,7 @@
     ];
 
     home-manager.users.tzlil = {
-      home.packages = [pkgs.schildichat-desktop pkgs.keepassxc];
+      home.packages = [pkgs.schildichat-desktop-wayland pkgs.keepassxc];
       programs.qutebrowser = {
         enable = true;
         settings.colors.webpage.darkmode.enabled = true;
@@ -114,6 +114,10 @@
     programs.firejail.wrappedBinaries = {
       mullvad-browser = {
         executable = lib.getExe pkgs.mullvad-browser;
+        extraArgs = [
+          "--env=MOZ_ENABLE_WAYLAND=1"
+          "--env=GTK_THEME=Adwaita:dark"
+        ];
         # profile = "${pkgs.firejail}/etc/firejail/firefox.profile";
       };
     };
@@ -152,5 +156,13 @@
 
     hardware.bluetooth.enable = true;
     services.blueman.enable = true;
+
+    # dont know if i like this
+    nix.settings.trusted-public-keys = [
+  "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
+];
+nix.settings.substituters = [
+  "https://cache.iog.io"
+];
   };
 }
diff --git a/hosts/vps/website.nix b/hosts/vps/website.nix
index 1e987c2..6e17d49 100644
--- a/hosts/vps/website.nix
+++ b/hosts/vps/website.nix
@@ -74,7 +74,7 @@
 
             my name is tzlil, i'm 18 and from israel
             i currently work as a security researcher
-            but in a few months i will be drafed to the army
+            but in a few months i will be drafted to the army
 
             my interests:
             plan9
@@ -92,7 +92,7 @@
               - lenovo v14
 
               phone:
-              - google pixel 6
+              - google pixel 7
 
               desktop:
               - amd ryzen 5 5600g
diff --git a/profiles/graphical.nix b/profiles/graphical.nix
index 8ba6e7f..89c88f5 100644
--- a/profiles/graphical.nix
+++ b/profiles/graphical.nix
@@ -6,6 +6,7 @@
   ...
 }: {
   config = {
+    programs.dconf.enable = true;
     home-manager.users.tzlil = {...}: {
       fonts.fontconfig.enable = true;
 
@@ -17,6 +18,12 @@
         noto-fonts-cjk
       ];
 
+      dconf.settings = {
+        "org/gnome/desktop/interface" = {
+          color-scheme = "prefer-dark";
+        };
+      };
+
       # gtk = {
       #   enable = true;
       #   font.name = "Victor Mono SemiBold 12";
@@ -26,22 +33,22 @@
       #   };
       # };
 
-      # gtk = {
-      #   theme.package = pkgs.gnome.gnome-themes-extra;
-      #   theme.name = "Adwaita-dark";
-      #   enable = true;
-      #   gtk3.extraConfig = {
-      #     gtk-application-prefer-dark-theme = 1;
-      #     gtk-xft-hinting = 1;
-      #     gtk-xft-hintstyle = "slight";
-      #     gtk-xft-antialias = 1; # => font-antialiasing="grayscale"
-      #     gtk-xft-rgba = "rgb"; # => font-rgb-order="rgb"
-      #   };
-      #   font = {
-      #     package = pkgs.noto-fonts;
-      #     name = "Noto Sans 11";
-      #   };
-      # };
+      gtk = {
+        theme.package = pkgs.gnome.gnome-themes-extra;
+        theme.name = "Adwaita-dark";
+        enable = true;
+        gtk3.extraConfig = {
+          gtk-application-prefer-dark-theme = 1;
+          gtk-xft-hinting = 1;
+          gtk-xft-hintstyle = "slight";
+          gtk-xft-antialias = 1; # => font-antialiasing="grayscale"
+          gtk-xft-rgba = "rgb"; # => font-rgb-order="rgb"
+        };
+        font = {
+          package = pkgs.noto-fonts;
+          name = "Noto Sans 11";
+        };
+      };
     };
   };
 }