diff --git a/nix/configurations/hetzner_benchmark.nix b/nix/configurations/hetzner_benchmark.nix index f14a3cf9..2fddb026 100644 --- a/nix/configurations/hetzner_benchmark.nix +++ b/nix/configurations/hetzner_benchmark.nix @@ -47,7 +47,14 @@ in nix.package = pkgs.nix-monitored; - system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision; + system.nixos = + let + rev = lib.substring 0 8 sources.nixpkgs.revision; + in + { + versionSuffix = "-git:${rev}"; + revision = rev; + }; } ./hetzner_benchmark/nixos/hardware-configuration.nix diff --git a/nix/configurations/hydrogen.nix b/nix/configurations/hydrogen.nix index f26705ea..c751ef0a 100644 --- a/nix/configurations/hydrogen.nix +++ b/nix/configurations/hydrogen.nix @@ -53,7 +53,14 @@ in nix.package = pkgs.nix-monitored; - system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision; + system.nixos = + let + rev = lib.substring 0 8 sources.nixpkgs.revision; + in + { + versionSuffix = "-git:${rev}"; + revision = rev; + }; } ./hydrogen/nixos/misc.nix diff --git a/nix/configurations/installer.nix b/nix/configurations/installer.nix index e77b99ad..972409e9 100644 --- a/nix/configurations/installer.nix +++ b/nix/configurations/installer.nix @@ -4,6 +4,9 @@ # figured out an elegant (enough) way to do it while keeping my secrets # encrypted. # +let + sources = import ../../npins; +in { pkgs, lib, @@ -41,6 +44,15 @@ ]; }; + system.nixos = + let + rev = lib.substring 0 8 sources.nixpkgs.revision; + in + { + versionSuffix = "-git:${rev}"; + revision = rev; + }; + isoImage.squashfsCompression = "zstd -Xcompression-level 3"; environment.systemPackages = [ diff --git a/nix/configurations/vanadium.nix b/nix/configurations/vanadium.nix index 019b2f4f..2fba0b2a 100644 --- a/nix/configurations/vanadium.nix +++ b/nix/configurations/vanadium.nix @@ -78,7 +78,14 @@ in nix.package = pkgs.nix-monitored; - system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision; + system.nixos = + let + rev = lib.substring 0 8 sources.nixpkgs.revision; + in + { + versionSuffix = "-git:${rev}"; + revision = rev; + }; } # diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index 73d13b92..bd224647 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -26,7 +26,6 @@ import XMonad.Util.NamedScratchpad import XMonad.Util.SpawnOnce import XMonad.Layout.Magnifier -import Data.Function import Data.Char.Greek import Data.Ratio import Data.Semigroup @@ -357,35 +356,17 @@ fullFloat = W.RationalRect 0 0 1 1 buttomRightFloat = W.RationalRect (1%2) (1%2) (1%2) (1%2) xmobarConfig :: StatusBarConfig -xmobarConfig = statusBarProp "xmobar -x 0" myPrettyPrinter +xmobarConfig = statusBarProp "xmobar -x 0" (pure myPrettyPrinter) where - mkPpCurrent :: X (String -> String) - mkPpCurrent = do - windowCount <- gets $ length . W.integrate' . W.stack . W.workspace . W.current . windowset - pure $ \wid -> - wid <> (if windowCount > 1 then ":" <> show windowCount else mempty) - & xmobarColor "#000000" "#ffffff" . wrap " " " " - - mkPpHidden :: X (String -> String) - mkPpHidden = do - m <- gets $ M.fromList . map (\x -> (W.tag x, length . W.integrate' . W.stack $ x)) . W.hidden . windowset - pure $ \wid -> - let windowCount = m M.! wid - in wid <> (if windowCount > 1 then ":" <> show windowCount else mempty) - & xmobarColor "#ffffff" "" - - myPrettyPrinter :: X PP - myPrettyPrinter = do - myPpCurrent <- mkPpCurrent - myPpHidden <- mkPpHidden - pure - $ filterOutWsPP [scratchpadWorkspaceTag] - $ def - { ppCurrent = myPpCurrent - , ppHiddenNoWindows = xmobarColor "#9c9c9c" "" . const "⋅" - , ppHidden = myPpHidden - , ppSep = " | " - } + myPrettyPrinter :: PP + myPrettyPrinter = + filterOutWsPP [scratchpadWorkspaceTag] + $ def + { ppCurrent = xmobarColor "#000000" "#ffffff" . wrap " " " " + , ppHiddenNoWindows = xmobarColor "#9c9c9c" "" . const "⋅" + , ppHidden = xmobarColor "#ffffff" "" + , ppSep = " | " + } myScratchpads :: [NamedScratchpad] myScratchpads = diff --git a/nix/homeModules/common/firefox.nix b/nix/homeModules/common/firefox.nix index 1b0faa95..194206bf 100644 --- a/nix/homeModules/common/firefox.nix +++ b/nix/homeModules/common/firefox.nix @@ -29,13 +29,11 @@ in "eBay" "Perplexity" ]; - Default = "Brave"; + Default = "DuckDuckGo Lite"; Add = [ { - Name = "Brave"; - Alias = "@br"; - URLTemplate = "https://search.brave.com/search?&summary=0&q={searchTerms}&source=web"; - SuggestURLTemplate = "https://suggestqueries.google.com/complete/search?q={searchTerms}"; + Name = "DuckDuckGo Lite"; + URLTemplate = "https://lite.duckduckgo.com/lite/search?q={searchTerms}"; } ]; }; diff --git a/nix/homeModules/common/zen-browser.nix b/nix/homeModules/common/zen-browser.nix index ff8d6702..be5ded5b 100644 --- a/nix/homeModules/common/zen-browser.nix +++ b/nix/homeModules/common/zen-browser.nix @@ -29,13 +29,11 @@ in "eBay" "Perplexity" ]; - Default = "Brave"; + Default = "DuckDuckGo Lite"; Add = [ { - Name = "Brave"; - Alias = "@br"; - URLTemplate = "https://search.brave.com/search?&summary=0&q={searchTerms}&source=web"; - SuggestURLTemplate = "https://suggestqueries.google.com/complete/search?q={searchTerms}"; + Name = "DuckDuckGo Lite"; + URLTemplate = "https://lite.duckduckgo.com/lite/search?q={searchTerms}"; } ]; }; diff --git a/nix/packages/by-name/ruler/package.nix b/nix/packages/by-name/ruler/package.nix index 8fba0215..0e7d8aa9 100644 --- a/nix/packages/by-name/ruler/package.nix +++ b/nix/packages/by-name/ruler/package.nix @@ -11,8 +11,8 @@ let domain = "git.confusedcompiler.org"; owner = "leana8959"; repo = "ruler"; - rev = "52d8b95245aec702ec4105bcb040ea44771a77bc"; - hash = "sha256-UIpt8NPEyVM2BR0WAhAv66XvpVj124odzzAC6tpTZVU="; + rev = "2556b4985065d093b1db3a14a2c5c37115871c78"; + hash = "sha256-OvNhDpyAbZp+d0rSXLE55BvM5jT3OI8q79D6aVaA2FI="; }) { }; cabalOverrides = o: { diff --git a/shell.nix b/shell.nix index d11a2fa5..1fc63cf4 100644 --- a/shell.nix +++ b/shell.nix @@ -26,7 +26,6 @@ pkgs.mkShell { self.xmonad-extras self.xmobar ])) - haskell-language-server cabal-install ]; }