Update Zed configuration for nix LSP and formatter.

This commit is contained in:
2025-11-23 16:34:22 +01:00
parent 2be712393f
commit 900b565405
114 changed files with 2311 additions and 2408 deletions

View File

@@ -51,20 +51,17 @@
nix-flatpak.url = "github:gmodena/nix-flatpak?ref=latest";
};
outputs =
{
outputs = {
nixpkgs,
nix-flatpak,
auto-cpufreq,
...
}@inputs:
let
} @ inputs: let
hostDirs = builtins.attrNames (builtins.readDir ./hosts);
mkHost =
hostName:
let
inherit (import ./hosts/${hostName}/variables.nix)
mkHost = hostName: let
inherit
(import ./hosts/${hostName}/variables.nix)
host
username
profile
@@ -86,8 +83,7 @@
auto-cpufreq.nixosModules.default
];
};
in
{
in {
nixosConfigurations = nixpkgs.lib.genAttrs hostDirs mkHost;
};
}

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
imports = [
./hardware.nix
./host-packages.nix

View File

@@ -6,8 +6,7 @@
lib,
modulesPath,
...
}:
{
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# audacity
];

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
imports = [
./hardware.nix
./host-packages.nix

View File

@@ -6,9 +6,7 @@
lib,
modulesPath,
...
}:
{
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# audacity
];

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
imports = [
./hardware.nix
./host-packages.nix

View File

@@ -7,9 +7,7 @@
pkgs,
modulesPath,
...
}:
{
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
@@ -29,8 +27,7 @@
fsType = "ext4";
};
boot.initrd.luks.devices."luks-b7565781-148e-4c94-9c76-36c84dd93dc8".device =
"/dev/disk/by-uuid/b7565781-148e-4c94-9c76-36c84dd93dc8";
boot.initrd.luks.devices."luks-b7565781-148e-4c94-9c76-36c84dd93dc8".device = "/dev/disk/by-uuid/b7565781-148e-4c94-9c76-36c84dd93dc8";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/C2A6-DF56";

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# audacity
];

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
programs.auto-cpufreq = {
enable = true;
settings = {

View File

@@ -3,9 +3,7 @@
config,
lib,
...
}:
{
}: {
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelModules = ["v4l2loopback"];

View File

@@ -1,8 +1,4 @@
{
inputs,
...
}:
{
{inputs, ...}: {
imports = [
./packages
./auto-cpufreq.nix

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
fonts = {
packages = with pkgs; [
dejavu_fonts

View File

@@ -2,8 +2,7 @@
pkgs,
username,
...
}:
{
}: {
services.greetd = {
enable = true;
#vt = 3;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
hardware = {
sane = {
enable = true;

View File

@@ -2,11 +2,9 @@
host,
options,
...
}:
let
}: let
inherit (import ../../hosts/${host}/variables.nix) hostId;
in
{
in {
# Defensive assertion for hostname validity (clearer message at eval time)
assertions = [
{

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) enableNFS;
in
{
in {
services = {
rpcbind.enable = enableNFS;
nfs.server.enable = enableNFS;

View File

@@ -1,8 +1,4 @@
{
username,
...
}:
{
{username, ...}: {
programs.nh = {
enable = true;
clean = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# Communication
slack

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
nixpkgs.config.allowUnfree = true;
imports = [
./programs.nix

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# Learning & practice
exercism

View File

@@ -3,8 +3,7 @@
# inputs,
# system,
...
}:
{
}: {
environment.systemPackages = with pkgs; [
# inputs.prismlauncher-cracked.packages.${system}.default
space-cadet-pinball

View File

@@ -3,8 +3,7 @@
# inputs,
# system,
...
}:
{
}: {
environment.systemPackages = with pkgs; [
# Video & image processing
ffmpeg

View File

@@ -1,8 +1,8 @@
{
# {
# pkgs
...
}:
{
# ...
# }
_: {
programs = {
nano.enable = true;
hyprland = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
cmatrix
cowsay

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# File management
trash-cli

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
virt-viewer
# lazydocker

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) printEnable;
in
{
in {
services = {
printing = {
enable = printEnable;

View File

@@ -1,5 +1,4 @@
{ profile, ... }:
{
{profile, ...}: {
# Services to start
services = {
libinput.enable = true; # Input Handling
@@ -19,7 +18,10 @@
gnome.gnome-keyring.enable = true;
smartd = {
enable = if profile == "vm" then false else true;
enable =
if profile == "vm"
then false
else true;
autodetect = true;
};
pipewire = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs = {
steam = {
enable = true;

View File

@@ -2,11 +2,9 @@
pkgs,
host,
...
}:
let
}: let
inherit (import ../../hosts/${host}/variables.nix) stylixImage;
in
{
in {
# Styling Options
stylix = {
enable = true;

View File

@@ -1,5 +1,4 @@
{ username, ... }:
{
{username, ...}: {
services.syncthing = {
enable = false;
user = "${username}";

View File

@@ -1,9 +1,12 @@
{ host, ... }:
let
inherit (import ../../hosts/${host}/variables.nix) consoleKeyMap;
in
{
host,
inputs,
...
}: let
inherit (import ../../hosts/${host}/variables.nix) consoleKeyMap;
in {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
settings = {
download-buffer-size = 200000000;
auto-optimise-store = true;
@@ -16,8 +19,9 @@ in
};
};
time.timeZone = "Europe/Warsaw";
i18n.defaultLocale = "pl_PL.UTF-8";
i18n.extraLocaleSettings = {
i18n = {
defaultLocale = "pl_PL.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "pl_PL.UTF-8";
LC_IDENTIFICATION = "pl_PL.UTF-8";
LC_MEASUREMENT = "pl_PL.UTF-8";
@@ -28,6 +32,7 @@ in
LC_TELEPHONE = "pl_PL.UTF-8";
LC_TIME = "pl_PL.UTF-8";
};
};
environment.variables = {
NIXOS_OZONE_WL = "1";
GARANDOS_VERSION = "1.0";

View File

@@ -1,8 +1,4 @@
{
pkgs,
...
}:
{
{pkgs, ...}: {
programs = {
thunar = {
enable = true;

View File

@@ -6,11 +6,9 @@
profile,
system,
...
}:
let
}: let
inherit (import ../../hosts/${host}/variables.nix) gitUsername;
in
{
in {
imports = [inputs.home-manager.nixosModules.home-manager];
home-manager = {
useUserPackages = true;

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
# Only enable either docker or podman -- Not both
virtualisation = {
docker.enable = true;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
xdg.portal = {
enable = true;
wlr.enable = true;

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) keyboardLayout;
in
{
in {
services.xserver = {
enable = true;
xkb = {

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.amdgpu;
in
{
in {
options.drivers.amdgpu = {
enable = mkEnableOption "Enable AMD Drivers";
};

View File

@@ -1,7 +1,4 @@
{
...
}:
{
{...}: {
imports = [
./amd-drivers.nix
./intel-drivers.nix

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.intel;
in
{
in {
options.drivers.intel = {
enable = mkEnableOption "Enable Intel Graphics Drivers";
};

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.local.hardware-clock;
in
{
in {
options.local.hardware-clock = {
enable = mkEnableOption "Change Hardware Clock To Local Time";
};

View File

@@ -4,11 +4,9 @@
pkgs,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.nvidia;
in
{
in {
options.drivers.nvidia = {
enable = mkEnableOption "Enable Nvidia Drivers";
};
@@ -43,7 +41,6 @@ in
};
};
}
# Making nvidia docker toolkit work:
#
# sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
@@ -59,3 +56,4 @@ in
# EOF
#
# docker run --device nvidia.com/gpu=all

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.nvidia-prime;
in
{
in {
options.drivers.nvidia-prime = {
enable = mkEnableOption "Enable Nvidia Prime Hybrid GPU Offload";
intelBusID = mkOption {

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.vm.guest-services;
in
{
in {
options.vm.guest-services = {
enable = mkEnableOption "Enable Virtual Machine Guest Services";
};

View File

@@ -1,5 +1,8 @@
{ pkgs, username, ... }:
{
pkgs,
username,
...
}: {
programs.anki = {
enable = true;
package = pkgs.anki;

View File

@@ -1,5 +1,8 @@
{ host, username, ... }:
{
host,
username,
...
}: {
programs.bash = {
shellAliases = {
# GarandOS aliases

View File

@@ -2,8 +2,7 @@
pkgs,
lib,
...
}:
{
}: {
programs.bat = {
enable = true;
config = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.btop = {
enable = true;
package = pkgs.btop.override {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.chromium = {
enable = true;
package = pkgs.ungoogled-chromium;

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) waybarChoice;
in
{
in {
imports = [
./fastfetch
./hyprland

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
home.file.".config/.emoji".text = ''
😀 grinning face face smile happy joy :D grin
😃 grinning face with big eyes face happy joy haha :D :) smile funny

View File

@@ -3,13 +3,11 @@
config,
lib,
...
}:
let
}: let
accent = "#" + config.lib.stylix.colors.base0D;
foreground = "#" + config.lib.stylix.colors.base05;
muted = "#" + config.lib.stylix.colors.base03;
in
{
in {
programs.fzf = {
enable = true;
enableBashIntegration = true;

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) gitUsername gitEmail;
in
{
in {
programs.git = {
enable = true;
settings = {

View File

@@ -1,6 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
gtk = {
iconTheme = {
name = "Papirus-Dark";

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
wayland.windowManager.hyprland.settings = {
animations = {
enabled = true;

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
wayland.windowManager.hyprland.settings = {
# name "Dynamic"
# credit https://github.com/mylinuxforwork/dotfiles

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
wayland.windowManager.hyprland.settings = {
# Name: END-4
# Credit: END-4 project https://github.com/end-4/dots-hyprland

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
wayland.windowManager.hyprland.settings = {
# name "moving"
# credit https://github.com/mylinuxforwork/dotfiles

View File

@@ -1,9 +1,11 @@
{ host, username, ... }:
let
{
host,
username,
...
}: let
inherit (import ../../../hosts/${host}/variables.nix) browser terminal;
desktopEntriesPath = "/home/${username}/.local/state/home-manager/gcroots/current-home/home-path/share/applications/";
in
{
in {
wayland.windowManager.hyprland.settings = {
bind = [
# =============================================================================

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../../hosts/${host}/variables.nix) animChoice;
in
{
in {
imports = [
animChoice
./binds.nix

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
wayland.windowManager.hyprland = {
settings = {
env = [

View File

@@ -1,10 +1,9 @@
{ host, ... }:
let
inherit (import ../../../hosts/${host}/variables.nix)
{host, ...}: let
inherit
(import ../../../hosts/${host}/variables.nix)
stylixImage
;
in
{
in {
wayland.windowManager.hyprland.settings = {
exec-once = [
"wl-paste --type text --watch cliphist store" # Saves text

View File

@@ -1,6 +1,4 @@
{ ... }:
{
_: {
services = {
hypridle = {
enable = true;

View File

@@ -3,11 +3,9 @@
config,
pkgs,
...
}:
let
}: let
inherit (import ../../../hosts/${host}/variables.nix) extraMonitorSettings keyboardLayout;
in
{
in {
systemd.user.targets.hyprland-session.Unit.Wants = [
"xdg-desktop-autostart.target"
];
@@ -68,8 +66,7 @@ in
gaps_out = 8;
border_size = 2;
resize_on_border = true;
"col.active_border" =
"rgb(${config.lib.stylix.colors.base08}) rgb(${config.lib.stylix.colors.base0C}) 45deg";
"col.active_border" = "rgb(${config.lib.stylix.colors.base08}) rgb(${config.lib.stylix.colors.base0C}) 45deg";
"col.inactive_border" = "rgb(${config.lib.stylix.colors.base01})";
};
@@ -154,9 +151,7 @@ in
extraConfig = "
monitor=,preferred,auto,auto
monitor=Virtual-1,1920x1080@60,auto,1
${
extraMonitorSettings
}
${extraMonitorSettings}
# To enable blur on waybar uncomment the line below
# Thanks to SchotjeChrisman
#layerrule = blur,waybar

View File

@@ -1,5 +1,4 @@
{ username, ... }:
{
{username, ...}: {
programs.hyprlock = {
enable = true;
settings = {

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
home.file.".config/hypr/pyprland.toml".text = ''
[pyprland]
plugins = [

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
services.kdeconnect = {
enable = true;
indicator = true;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.kitty = {
enable = true;
package = pkgs.kitty;

View File

@@ -5,8 +5,7 @@
system,
host,
...
}:
{
}: {
programs = {
librewolf = {
enable = true;

View File

@@ -1,5 +1,8 @@
{ pkgs, osConfig, ... }:
{
pkgs,
osConfig,
...
}: {
programs.lutris = {
enable = false;
package = pkgs.lutris;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
services.nextcloud-client = {
enable = true;
startInBackground = true;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.obs-studio = {
enable = false;
plugins = with pkgs.obs-studio-plugins; [

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs.onlyoffice = {
enable = true;
package = pkgs.onlyoffice-desktopeditors;

View File

@@ -1,5 +1,4 @@
{ lib, ... }:
{
{lib, ...}: {
qt = {
enable = true;
platformTheme.name = lib.mkForce "qtct";

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
home.file.".config/rofi/config-long.rasi".text = ''
@import "~/.config/rofi/config.rasi"
* {

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
imports = [
./config-long.nix
./rofi.nix

View File

@@ -2,8 +2,7 @@
pkgs,
config,
...
}:
{
}: {
programs = {
rofi = {
enable = true;
@@ -18,11 +17,9 @@
display-run = " Run";
display-filebrowser = " File";
};
theme =
let
theme = let
inherit (config.lib.formats.rasi) mkLiteral;
in
{
in {
"*" = {
bg = mkLiteral "#${config.stylix.base16Scheme.base00}";
bg-alt = mkLiteral "#${config.stylix.base16Scheme.base09}";

View File

@@ -2,8 +2,7 @@
pkgs,
username,
...
}:
{
}: {
home.packages = with pkgs; [
# hyprland
swww

View File

@@ -1,5 +1,8 @@
{ pkgs, username, ... }:
let
{
pkgs,
username,
...
}: let
desktopEntriesPath = "/home/${username}/.local/state/home-manager/gcroots/current-home/home-path/share/applications/";
in
pkgs.writeShellScriptBin "list-keybinds" ''

View File

@@ -1,5 +1,4 @@
{pkgs}:
pkgs.writeShellScriptBin "nvidia-offload" ''
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0

View File

@@ -1,5 +1,4 @@
{pkgs}:
pkgs.writeShellScriptBin "screenshootin" ''
grim -g "$(slurp)" - | swappy -f -
''

View File

@@ -1,5 +1,4 @@
{pkgs}:
pkgs.writeShellScriptBin "task-waybar" ''
sleep 0.1
${pkgs.swaynotificationcenter}/bin/swaync-client -t &

View File

@@ -1,5 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "wallsetter" ''
TIMEOUT=720

View File

@@ -2,11 +2,9 @@
config,
lib,
...
}:
let
}: let
accent = "#${config.lib.stylix.colors.base0D}";
in
{
in {
programs.starship = {
enable = true;
settings = {

View File

@@ -1,5 +1,4 @@
{ host, ... }:
{
{host, ...}: {
stylix.targets = {
librewolf.profileNames = ["${host}"];
waybar.enable = false;

View File

@@ -1,5 +1,4 @@
{ username, ... }:
{
{username, ...}: {
home.file = {
".config/swappy/config".text = ''
[Default]

View File

@@ -1,5 +1,4 @@
{ config, ... }:
{
{config, ...}: {
services.swaync = {
enable = true;
settings = {

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
programs.tealdeer = {
enable = true;
settings = {

View File

@@ -1,6 +1,4 @@
{ ... }:
{
_: {
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
nixpkgs.config.allowUnfree = true;
programs.vscode = {
@@ -7,8 +6,7 @@
package = pkgs.vscodium;
profiles = {
default = {
extensions =
with pkgs.vscode-extensions;
extensions = with pkgs.vscode-extensions;
[
batisteo.vscode-django
bradlc.vscode-tailwindcss
@@ -409,26 +407,22 @@
{
"key" = "tab";
"command" = "-editor.emmet.action.expandAbbreviation";
"when" =
"config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus";
"when" = "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus";
}
{
"key" = "tab";
"command" = "-editor.action.inlineSuggest.jump";
"when" =
"inlineEditIsVisible && tabShouldJumpToInlineEdit && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible";
"when" = "inlineEditIsVisible && tabShouldJumpToInlineEdit && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible";
}
{
"key" = "tab";
"command" = "-Alignment Preserving Indent";
"when" =
"editorTextFocus && !editorReadOnly && !editorTabMovesFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion != 'on'";
"when" = "editorTextFocus && !editorReadOnly && !editorTabMovesFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion != 'on'";
}
{
"key" = "tab";
"command" = "-Alignment Preserving Indent";
"when" =
"editorTextFocus && !editorReadOnly && !editorTabMovesFocus && !hasOtherSuggestions && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'";
"when" = "editorTextFocus && !editorReadOnly && !editorTabMovesFocus && !hasOtherSuggestions && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'";
}
];
};

View File

@@ -4,13 +4,11 @@
host,
config,
...
}:
let
}: let
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
inherit (import ../../../hosts/${host}/variables.nix) clock24h;
in
with lib;
{
with lib; {
# Configure & Theme Waybar
programs.waybar = {
enable = true;
@@ -48,7 +46,10 @@ with lib;
on-scroll-down = "hyprctl dispatch workspace e-1";
};
"clock" = {
format = if clock24h == true then '' {:L%H:%M}'' else '' {:L%I:%M %p}'';
format =
if clock24h == true
then '' {:L%H:%M}''
else '' {:L%I:%M %p}'';
tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
};

View File

@@ -2,8 +2,7 @@
pkgs,
lib,
...
}:
let
}: let
terminal = "kitty";
base00 = "0F1419";
base01 = "131721";
@@ -20,8 +19,7 @@ let
base0E = "D2A6FF";
base0F = "E6B673";
in
with lib;
{
with lib; {
# Configure & Theme Waybar
programs.waybar = {
enable = true;

View File

@@ -4,13 +4,11 @@
host,
config,
...
}:
let
}: let
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
inherit (import ../../../hosts/${host}/variables.nix) clock24h;
in
with lib;
{
with lib; {
# Configure & Theme Waybar
programs.waybar = {
enable = true;
@@ -48,7 +46,10 @@ with lib;
on-scroll-down = "hyprctl dispatch workspace e-1";
};
"clock" = {
format = if clock24h == true then '' {:L%H:%M}'' else '' {:L%I:%M %p}'';
format =
if clock24h == true
then '' {:L%H:%M}''
else '' {:L%I:%M %p}'';
tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
};

View File

@@ -2,8 +2,7 @@
config,
pkgs,
...
}:
{
}: {
programs.waybar = {
enable = true;
package = pkgs.waybar;

View File

@@ -2,8 +2,7 @@
config,
pkgs,
...
}:
{
}: {
programs.waybar = {
enable = true;
package = pkgs.waybar;

View File

@@ -2,8 +2,7 @@
pkgs,
lib,
...
}:
let
}: let
terminal = "kitty";
base00 = "0F1419";
base01 = "131721";
@@ -20,8 +19,7 @@ let
base0E = "D2A6FF";
base0F = "E6B673";
in
with lib;
{
with lib; {
# Configure & Theme Waybar
programs.waybar = {
enable = true;

View File

@@ -4,13 +4,11 @@
host,
config,
...
}:
let
}: let
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
inherit (import ../../../hosts/${host}/variables.nix) clock24h;
in
with lib;
{
with lib; {
# Configure & Theme Waybar
programs.waybar = {
enable = true;
@@ -60,7 +58,10 @@ with lib;
format = " {temperatureC}°C ";
};
"clock" = {
format = if clock24h == true then '' {:L%H:%M}'' else '' {:L%I:%M %p}'';
format =
if clock24h == true
then '' {:L%H:%M}''
else '' {:L%I:%M %p}'';
tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
};

View File

@@ -4,12 +4,10 @@
host,
config,
...
}:
let
}: let
inherit (import ../../../hosts/${host}/variables.nix) clock24h;
in
with lib;
{
with lib; {
# Configure & Theme Waybar
programs.waybar = {
enable = true;
@@ -54,7 +52,10 @@ with lib;
on-scroll-down = "hyprctl dispatch workspace e-1";
};
"clock" = {
format = if clock24h == true then '' {:L%H:%M}'' else '' {:L%I:%M %p}'';
format =
if clock24h == true
then '' {:L%H:%M}''
else '' {:L%I:%M %p}'';
tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>";
};

Some files were not shown because too many files have changed in this diff Show More