1
0
Fork 0
forked from foxora/nix

#1 hater of infinite recursion

This commit is contained in:
do butterflies cry? 2026-02-13 23:27:35 +10:00
parent 43b04c3f8a
commit a5bb1d1cc1
31 changed files with 946 additions and 851 deletions

View file

@ -1,10 +1,14 @@
{ config, inputs, lib, pkgs, ... }:
{
home.packages = with pkgs; [
(inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww.overrideAttrs (old: {
cargoBuildFlags = [ "--features=avif" ];
buildInputs = (old.buildInputs or []) ++ [ pkgs.dav1d ];
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pkgs.pkg-config ];
inputs,
upkgs,
system,
...
}: {
home.packages = [
(inputs.awww.packages.${system}.awww.overrideAttrs (old: {
cargoBuildFlags = ["--features=avif"];
buildInputs = (old.buildInputs or []) ++ [upkgs.dav1d];
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [upkgs.pkg-config];
}))
];
}

View file

@ -1,8 +1,4 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{...}: {
programs.hyprlock = {
enable = true;
@ -16,17 +12,17 @@ in
general = {
disable_loading_bar = true;
hide_cursor = true;
immediate_render = true;
immediate_render = true;
};
background = [
{
monitor = "";
monitor = "";
path = "screenshot";
blur_passes = 3;
blur_size = 4;
}
path = "screenshot";
blur_passes = 3;
blur_size = 4;
}
];
};
};
@ -38,4 +34,3 @@ in
source = ./hypr;
};
}

View file

@ -1,8 +1,4 @@
{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{...}: {
programs.rofi = {
enable = true;

View file

@ -1,102 +1,98 @@
{ config, inputs, lib, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
{upkgs, ...}: {
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 20;
modules-left = [ "hyprland/workspaces" "wlr/taskbar" "custom/media" ];
modules-center = [ "clock" ];
modules-right = [ "cpu" "memory" "network" "pulseaudio" "privacy" "tray" ];
layer = "top";
position = "top";
height = 20;
modules-left = ["hyprland/workspaces" "wlr/taskbar" "custom/media"];
modules-center = ["clock"];
modules-right = ["cpu" "memory" "network" "pulseaudio" "privacy" "tray"];
# left
"hyprland/workspaces" = {
format = "{id}";
};
"wlr/taskbar" = {
format = "{icon}";
icon-size = 12;
};
"custom/media" = {
exec = "auroramedia";
return-type = "json";
escape = true;
restart-interval = 1;
};
"hyprland/workspaces" = {
format = "{id}";
};
"wlr/taskbar" = {
format = "{icon}";
icon-size = 12;
};
"custom/media" = {
exec = "auroramedia";
return-type = "json";
escape = true;
restart-interval = 1;
};
# center
"clock" = {
format = "{:%Y %b %a %d %H:%M:%S}";
interval = 1;
tooltip = false;
};
"clock" = {
format = "{:%Y %b %a %d %H:%M:%S}";
interval = 1;
tooltip = false;
};
# right
"cpu" = {
format = " {usage}%";
interval = 1;
};
"memory" = {
format = " {used:0.1f} / {total:0.1f} GiB";
interval = 1;
};
"network" = {
format = "{bandwidthUpBytes} {bandwidthDownBytes} {ifname}";
format-wifi = " {bandwidthUpBytes} {bandwidthDownBytes} ";
format-ethernet = "󰈀 {bandwidthUpBytes} {bandwidthDownBytes} ";
format-disconnected = "no internet ~ rawr! ~ x3"; # empty format hides module
interval = 1;
max-length = 32;
};
"pulseaudio" = {
format = "{icon} {volume}%";
format-muted = " {volume}%";
format-icons = {
default = [
""
""
""
];
};
"scroll-step" = 5;
};
"privacy" = {
icon-size = 12;
icon-spacing = 5;
transition-duration = 200;
modules = [
{
type = "screenshare";
tooltip = true;
tooltip-icon-size = 12;
}
{
type = "audio-in";
tooltip = true;
tooltip-icon-size = 12;
}
];
};
"tray" = {
icon-size = 12;
spacing = 10;
# fixes spotify not showing up when "close button should minimize the Spotify window" is false
show-passive-items = true;
};
"cpu" = {
format = " {usage}%";
interval = 1;
};
"memory" = {
format = " {used:0.1f} / {total:0.1f} GiB";
interval = 1;
};
"network" = {
format = "{bandwidthUpBytes} {bandwidthDownBytes} {ifname}";
format-wifi = " {bandwidthUpBytes} {bandwidthDownBytes} ";
format-ethernet = "󰈀 {bandwidthUpBytes} {bandwidthDownBytes} ";
format-disconnected = "no internet ~ rawr! ~ x3"; # empty format hides module
interval = 1;
max-length = 32;
};
"pulseaudio" = {
format = "{icon} {volume}%";
format-muted = " {volume}%";
format-icons = {
default = [
""
""
""
];
};
"scroll-step" = 5;
};
"privacy" = {
icon-size = 12;
icon-spacing = 5;
transition-duration = 200;
modules = [
{
type = "screenshare";
tooltip = true;
tooltip-icon-size = 12;
}
{
type = "audio-in";
tooltip = true;
tooltip-icon-size = 12;
}
];
};
"tray" = {
icon-size = 12;
spacing = 10;
# fixes spotify not showing up when "close button should minimize the Spotify window" is false
show-passive-items = true;
};
# i only enable this for debugging of window rules lol
"hyprland/window" = {
format = "{class} | {title}";
};
# i only enable this for debugging of window rules lol
"hyprland/window" = {
format = "{class} | {title}";
};
};
};
style = pkgs.writeTextFile {
style = upkgs.writeTextFile {
name = "waybar-style.css";
text = builtins.readFile ./style.css;
};