Something something
This commit is contained in:
parent
9cb72cd617
commit
2d6a58c953
@ -36,7 +36,7 @@
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3" = {
|
||||
binding = "<Super>f";
|
||||
command = "kitty -- zsh -c 'yazi; exec zsh'";
|
||||
command = "kitty -- zsh -c 'exec yazi; exec zsh'";
|
||||
name = "open-yazi";
|
||||
};
|
||||
|
||||
@ -51,10 +51,10 @@
|
||||
command = "firefox";
|
||||
name = "open-firefox";
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5" = {
|
||||
binding = "<Super>y+e";
|
||||
command = "kitty --start-as=normal -- bash -ic 'repo'";
|
||||
name = "open-repos";
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom6" = {
|
||||
binding = "<Super>y";
|
||||
command = "kitty --start-as=normal -- zsh -ic 'repos'";
|
||||
name = "open-projects";
|
||||
};
|
||||
|
||||
"org/gnome/shell" = {
|
||||
|
@ -10,7 +10,7 @@
|
||||
enable_audio_bell = false;
|
||||
mouse_hide_wait = "-1.0";
|
||||
window_padding_width = 5;
|
||||
background_opacity = "0.90";
|
||||
background_opacity = "0.95";
|
||||
background_blur = 5;
|
||||
background = "#17041c";
|
||||
hide_window_decorations = true;
|
||||
|
@ -18,8 +18,8 @@
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
function proj() {
|
||||
lsn -ld ~/repos/* --color=never | \
|
||||
function repos() {
|
||||
eza -ld ~/repos/* --color=never | \
|
||||
awk '{print $7}' | \
|
||||
fzf --reverse | xargs -I{} code {} -n && exit
|
||||
}
|
||||
|
@ -12,6 +12,9 @@
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# OpenRGB
|
||||
services.hardware.openrgb.enable = true;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
@ -6,6 +6,7 @@
|
||||
./configuration.nix
|
||||
./fonts.nix
|
||||
./ssh.nix
|
||||
# ./openrgb.nix
|
||||
# ./stylix.nix
|
||||
./gnome.nix
|
||||
./yazi.nix
|
||||
|
@ -4,9 +4,9 @@
|
||||
# networking.networkmanager.enable = true;
|
||||
|
||||
|
||||
systemd.services."NetworkManager-wait-online" = {
|
||||
serviceConfig.TimeoutStartSec = "20s";
|
||||
};
|
||||
# systemd.services."NetworkManager-wait-online" = {
|
||||
# serviceConfig.TimeoutStartSec = "20s";
|
||||
# };
|
||||
|
||||
networking = {
|
||||
hostName = "nixos";
|
||||
@ -16,8 +16,9 @@
|
||||
address = "10.29.90.110";
|
||||
prefixLength = 22;
|
||||
}];
|
||||
mtu = 9000;
|
||||
};
|
||||
nameservers = [ "10.29.90.1" "10.133.7.1" ];
|
||||
nameservers = [ "10.29.90.1" ];
|
||||
search = [ "lan.xbazzi.com" ];
|
||||
|
||||
defaultGateway = {
|
||||
@ -27,7 +28,7 @@
|
||||
|
||||
hosts = {
|
||||
"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
33
system/openrgb.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
@ -36,6 +36,8 @@
|
||||
variety
|
||||
fzf
|
||||
eza
|
||||
linuxPackages_latest.perf
|
||||
minicom
|
||||
];
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user