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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,4 @@
{ username, ... }: {username, ...}: {
{
services.syncthing = { services.syncthing = {
enable = false; enable = false;
user = "${username}"; 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 = { nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
settings = { settings = {
download-buffer-size = 200000000; download-buffer-size = 200000000;
auto-optimise-store = true; auto-optimise-store = true;
@@ -16,8 +19,9 @@ in
}; };
}; };
time.timeZone = "Europe/Warsaw"; time.timeZone = "Europe/Warsaw";
i18n.defaultLocale = "pl_PL.UTF-8"; i18n = {
i18n.extraLocaleSettings = { defaultLocale = "pl_PL.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "pl_PL.UTF-8"; LC_ADDRESS = "pl_PL.UTF-8";
LC_IDENTIFICATION = "pl_PL.UTF-8"; LC_IDENTIFICATION = "pl_PL.UTF-8";
LC_MEASUREMENT = "pl_PL.UTF-8"; LC_MEASUREMENT = "pl_PL.UTF-8";
@@ -28,6 +32,7 @@ in
LC_TELEPHONE = "pl_PL.UTF-8"; LC_TELEPHONE = "pl_PL.UTF-8";
LC_TIME = "pl_PL.UTF-8"; LC_TIME = "pl_PL.UTF-8";
}; };
};
environment.variables = { environment.variables = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
GARANDOS_VERSION = "1.0"; GARANDOS_VERSION = "1.0";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,4 @@
{ ... }: _: {
{
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
# name "moving" # name "moving"
# credit https://github.com/mylinuxforwork/dotfiles # 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; inherit (import ../../../hosts/${host}/variables.nix) browser terminal;
desktopEntriesPath = "/home/${username}/.local/state/home-manager/gcroots/current-home/home-path/share/applications/"; desktopEntriesPath = "/home/${username}/.local/state/home-manager/gcroots/current-home/home-path/share/applications/";
in in {
{
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
bind = [ bind = [
# ============================================================================= # =============================================================================

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -2,8 +2,7 @@
pkgs, pkgs,
username, username,
... ...
}: }: {
{
home.packages = with pkgs; [ home.packages = with pkgs; [
# hyprland # hyprland
swww 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/"; desktopEntriesPath = "/home/${username}/.local/state/home-manager/gcroots/current-home/home-path/share/applications/";
in in
pkgs.writeShellScriptBin "list-keybinds" '' pkgs.writeShellScriptBin "list-keybinds" ''

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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