Something something

This commit is contained in:
xbazzi 2025-02-22 15:32:58 -07:00
parent 9cb72cd617
commit 2d6a58c953
8 changed files with 53 additions and 13 deletions

View File

@ -36,7 +36,7 @@
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3" = { "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3" = {
binding = "<Super>f"; binding = "<Super>f";
command = "kitty -- zsh -c 'yazi; exec zsh'"; command = "kitty -- zsh -c 'exec yazi; exec zsh'";
name = "open-yazi"; name = "open-yazi";
}; };
@ -51,10 +51,10 @@
command = "firefox"; command = "firefox";
name = "open-firefox"; name = "open-firefox";
}; };
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5" = { "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom6" = {
binding = "<Super>y+e"; binding = "<Super>y";
command = "kitty --start-as=normal -- bash -ic 'repo'"; command = "kitty --start-as=normal -- zsh -ic 'repos'";
name = "open-repos"; name = "open-projects";
}; };
"org/gnome/shell" = { "org/gnome/shell" = {

View File

@ -10,7 +10,7 @@
enable_audio_bell = false; enable_audio_bell = false;
mouse_hide_wait = "-1.0"; mouse_hide_wait = "-1.0";
window_padding_width = 5; window_padding_width = 5;
background_opacity = "0.90"; background_opacity = "0.95";
background_blur = 5; background_blur = 5;
background = "#17041c"; background = "#17041c";
hide_window_decorations = true; hide_window_decorations = true;

View File

@ -18,8 +18,8 @@
fi fi
rm -f -- "$tmp" rm -f -- "$tmp"
} }
function proj() { function repos() {
lsn -ld ~/repos/* --color=never | \ eza -ld ~/repos/* --color=never | \
awk '{print $7}' | \ awk '{print $7}' | \
fzf --reverse | xargs -I{} code {} -n && exit fzf --reverse | xargs -I{} code {} -n && exit
} }

View File

@ -12,6 +12,9 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# OpenRGB
services.hardware.openrgb.enable = true;
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

View File

@ -6,6 +6,7 @@
./configuration.nix ./configuration.nix
./fonts.nix ./fonts.nix
./ssh.nix ./ssh.nix
# ./openrgb.nix
# ./stylix.nix # ./stylix.nix
./gnome.nix ./gnome.nix
./yazi.nix ./yazi.nix

View File

@ -4,9 +4,9 @@
# networking.networkmanager.enable = true; # networking.networkmanager.enable = true;
systemd.services."NetworkManager-wait-online" = { # systemd.services."NetworkManager-wait-online" = {
serviceConfig.TimeoutStartSec = "20s"; # serviceConfig.TimeoutStartSec = "20s";
}; # };
networking = { networking = {
hostName = "nixos"; hostName = "nixos";
@ -16,8 +16,9 @@
address = "10.29.90.110"; address = "10.29.90.110";
prefixLength = 22; prefixLength = 22;
}]; }];
mtu = 9000;
}; };
nameservers = [ "10.29.90.1" "10.133.7.1" ]; nameservers = [ "10.29.90.1" ];
search = [ "lan.xbazzi.com" ]; search = [ "lan.xbazzi.com" ];
defaultGateway = { defaultGateway = {
@ -27,7 +28,7 @@
hosts = { hosts = {
"127.0.0.1" = [ "localhost" ]; "127.0.0.1" = [ "localhost" ];
"10.29.90.110" = [ "nixos" "nixos.lan.xbazzi.com" ]; "10.29.90.110" = [ "nixos" ];
}; };
}; };

33
system/openrgb.nix Normal file
View File

@ -0,0 +1,33 @@
{ pkgs, lib, ... }:
{
# OpenRGB
services.hardware.openrgb.enable = true;
# NO RGB
let
no-rgb = pkgs.writeScriptBin "no-rgb" ''
#!/bin/sh
NUM_DEVICES=$(${pkgs.openrgb}/bin/openrgb --noautoconnect --list-devices | grep -E '^[0-9]+: ' | wc -l)
for i in $(seq 0 $(($NUM_DEVICES - 1))); do
${pkgs.openrgb}/bin/openrgb --noautoconnect --device $i --mode static --color 000000
done
'';
in {
config = {
services.udev.packages = [ pkgs.openrgb ];
boot.kernelModules = [ "i2c-dev" ];
hardware.i2c.enable = true;
systemd.services.no-rgb = {
description = "no-rgb";
serviceConfig = {
ExecStart = "${no-rgb}/bin/no-rgb";
Type = "oneshot";
};
wantedBy = [ "multi-user.target" ];
};
};
}
}

View File

@ -36,6 +36,8 @@
variety variety
fzf fzf
eza eza
linuxPackages_latest.perf
minicom
]; ];
programs.nix-ld.enable = true; programs.nix-ld.enable = true;