Switch bar to zar.
This commit is contained in:
parent
12c5f63369
commit
5e6964641a
|
@ -5,7 +5,7 @@
|
|||
WLR_DRM_DEVICES = "/dev/dri/card0";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ grim slurp wl-clipboard jq wofi wmctrl ];
|
||||
home.packages = with pkgs; [ grim slurp wl-clipboard jq wofi wmctrl zar ];
|
||||
|
||||
programs.zsh.profileExtra = ''
|
||||
# If running from tty1 start sway
|
||||
|
@ -28,6 +28,7 @@
|
|||
enable = true;
|
||||
defaultTimeout = 3000;
|
||||
};
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = let
|
||||
|
@ -35,7 +36,16 @@
|
|||
menu = "${pkgs.wofi}/bin/wofi -idbt ${pkgs.kitty}/bin/kitty -p '' -W 25%";
|
||||
cfg = config.wayland.windowManager.sway.config;
|
||||
in {
|
||||
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
|
||||
bars = [
|
||||
{
|
||||
position = "top";
|
||||
fonts = {
|
||||
names = [ "Comic Code" ];
|
||||
size = 18.0;
|
||||
};
|
||||
statusCommand = "${pkgs.zar}/bin/zar";
|
||||
}
|
||||
];
|
||||
|
||||
input = {
|
||||
"*" = {
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
networking.hostName = "nixos";
|
||||
services.localtime.enable = true;
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
final: prev: {
|
||||
comic-code = final.callPackage ./comic-code { };
|
||||
zar = final.callPackage ./zar { };
|
||||
}
|
||||
|
|
22
overlay/zar/default.nix
Normal file
22
overlay/zar/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv, fetchFromGitLab, lib, zig }: stdenv.mkDerivation rec {
|
||||
pname = "zar";
|
||||
version = "latest-1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ChaotiCryptidz";
|
||||
repo = "zar";
|
||||
rev = "9f78c26bb68c59b56d04f6eba464e58221389dc0";
|
||||
sha256 = "sha256-lv49+te8cPMjrqwL88gGlIRUgEaol4jjyeFBOr8ouS4=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ zig ];
|
||||
|
||||
preBuild = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
zig build -Drelease-safe -Dweather_location="Leighton Buzzard" --prefix $out install
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue