Compare commits

..

5 commits

9 changed files with 54 additions and 45 deletions

View file

@ -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

View file

@ -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

View file

@ -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 = [

View file

@ -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;
};
}
#

View file

@ -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 =

View file

@ -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}";
}
];
};

View file

@ -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}";
}
];
};

View file

@ -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: {

View file

@ -26,7 +26,6 @@ pkgs.mkShell {
self.xmonad-extras
self.xmobar
]))
haskell-language-server
cabal-install
];
}