feat: tidying up some stuff

This commit is contained in:
Nick 2025-01-24 22:56:53 -06:00
parent 9526cf7ca4
commit 3c86475c02
13 changed files with 65 additions and 38 deletions

View file

@ -37,6 +37,13 @@ in
; ;
}; };
}; };
laptop = {
imports = builtins.attrValues {
inherit (modules)
apps
;
};
};
server = { server = {
imports = builtins.attrValues { imports = builtins.attrValues {
inherit (modules) inherit (modules)

0
home/modules/cli/development/langauges/default.nix Normal file → Executable file
View file

View file

@ -0,0 +1,11 @@
{
pkgs,
...
}:
{
home.packages = builtins.attrValues {
inherit (pkgs)
file-roller
;
};
}

View file

@ -0,0 +1,11 @@
{
pkgs,
...
}:
{
home.packages = builtins.attrValues {
inherit (pkgs)
unzip
;
};
}

View file

@ -31,7 +31,12 @@ let
; ;
}; };
gitPath = import (configPath + /git); gitPath = import (configPath + /git);
miscPath = import (configPath + /misc) { inherit lib pkgs; }; miscPath = import (configPath + /misc) {
inherit
lib
pkgs
;
};
in in
{ {
git = gitPath; git = gitPath;

View file

@ -1,23 +1,23 @@
{ pkgs, ... }: {
pkgs,
...
}:
{ {
general = { general = {
lock_cmd = "pidof swaylock || swaylock"; after_sleep_cmd = "hyprctl dispatch dpms on";
before_sleep_cmd = "loginctl lock-session"; ignore_dbus_inhibit = false;
lock_cmd = "swaylock";
}; };
listener = [ listener = [
{ {
timeout = 150; timeout = 900;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 0"; on-timeout = "swaylock";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
} }
{ {
timeout = 150; timeout = 1800;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd rgb:kbd_backlight set 0"; on-timeout = "hyprctl dispatch dpms off";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -rd rgb:kbd_backlight"; on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 300;
on-timeout = "systemctl suspend";
} }
]; ];
} }

View file

@ -6,6 +6,7 @@ let
in in
[ [
"swaylock" "swaylock"
"hypridle"
"wl-clipboard" "wl-clipboard"
"wpaperd" "wpaperd"
"gammastep" "gammastep"
@ -14,10 +15,11 @@ in
"waybar" "waybar"
"nm-applet" "nm-applet"
"blueman-applet" "blueman-applet"
"blueman-manager"
"easyeffects -r" "easyeffects -r"
"emote" "emote"
"flameshot" "flameshot"
"pactl set-default-sink alsa_output.usb-Focusrite_Scarlett_2i2_USB_Y818KFJ0C671CE-00.HiFi__Line1__sink" "pactl set-default-sink bluez_output.00_16_94_35_0D_5F.1"
"pactl set-default-source alsa_input.usb-Focusrite_Scarlett_2i2_USB_Y818KFJ0C671CE-00.HiFi__Mic1__source" "pactl set-default-source alsa_input.usb-Focusrite_Scarlett_2i2_USB_Y818KFJ0C671CE-00.HiFi__Mic1__source"
"gsettings set org.gnome.desktop.interface cursor-theme 'catppuccin-mocha-dark-cursors'" "gsettings set org.gnome.desktop.interface cursor-theme 'catppuccin-mocha-dark-cursors'"
"gsettings set org.gnome.desktop.interface cursor-size ${builtins.toString cursor.size}" "gsettings set org.gnome.desktop.interface cursor-size ${builtins.toString cursor.size}"

View file

@ -10,6 +10,7 @@ let
in in
{ {
font = font.name; font = font.name;
font-size = font.size.desktop;
indicator-idle-visible = true; indicator-idle-visible = true;
indicator-radius = 100; indicator-radius = 100;
indicator-thickness = 20; indicator-thickness = 20;

View file

@ -29,7 +29,7 @@ in
"memory" "memory"
"disk" "disk"
"pulseaudio" "pulseaudio"
# "network" "network"
"clock" "clock"
]; ];
@ -56,7 +56,7 @@ in
"3" = ""; "3" = "";
"4" = ""; "4" = "";
urgent = ""; urgent = "";
default = ""; default = "";
sort-by-number = true; sort-by-number = true;
}; };
persistent-workspaces = { persistent-workspaces = {
@ -85,13 +85,13 @@ in
interval = 60; interval = 60;
}; };
# network = { network = {
# format-wifi = " {signalStrength}%"; format-wifi = " {signalStrength}%";
# format-ethernet = "󰀂 "; format-ethernet = "󰀂 ";
# tooltip-format = "Connected to {essid} {ifname} via {gwaddr}"; tooltip-format = "Connected to {essid} {ifname} via {gwaddr}";
# format-linked = "{ifname} (No IP)"; format-linked = "{ifname} (No IP)";
# format-disconnected = "󰖪 "; format-disconnected = "󰖪 ";
# }; };
tray = { tray = {
icon-size = 12; icon-size = 12;
@ -151,7 +151,7 @@ in
}; };
"custom/weather" = { "custom/weather" = {
exec = "/home/${user0}/Files/Projects/dotfiles/home/modules/waybar/config/scripts/get_weather.sh Winnipeg"; exec = "/home/${user0}/Files/Projects/dotfiles/home/modules/gui/desktop/waybar/config/scripts/get_weather.sh Winnipeg";
return-type = "json"; return-type = "json";
format = "{}"; format = "{}";
tooltip = true; tooltip = true;

View file

@ -60,7 +60,7 @@ in
inherit (modules) inherit (modules)
syncthing syncthing
ollama ollama
hledger # hledger
# plasma # plasma
# sddm # sddm
; ;

View file

@ -5,7 +5,6 @@
"network" "network"
"hypridle" "hypridle"
"hyprland" "hyprland"
"hyprlock"
"regreet" "regreet"
"swaylock" "swaylock"
"thunar" "thunar"

View file

@ -1,10 +0,0 @@
{
flake,
pkgs,
...
}: {
programs.hyprlock = {
enable = true;
package = flake.inputs.hyprlock.packages.${pkgs.system}.hyprlock;
};
}

View file

@ -2,7 +2,8 @@
pkgs, pkgs,
config, config,
... ...
}: { }:
{
boot = { boot = {
extraModulePackages = [ extraModulePackages = [
config.boot.kernelPackages.v4l2loopback.out config.boot.kernelPackages.v4l2loopback.out