treewide: format files

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-06-29 19:49:39 +05:30
parent 404f35c0b9
commit a9d4f6de5a
62 changed files with 953 additions and 511 deletions

View File

@@ -1,26 +1,35 @@
{ pkgs, lib, config, inputs, ... }:
{
pkgs,
lib,
config,
inputs,
...
}:
let
cfg = config.programs.ags;
deps = with pkgs; [
sass
gawk
bash
procps
coreutils
imagemagick
systemd
config.wayland.windowManager.hyprland.package
] ++ lib.optional config.isLaptop brightnessctl;
deps =
with pkgs;
[
sass
gawk
bash
procps
coreutils
imagemagick
systemd
config.wayland.windowManager.hyprland.package
]
++ lib.optional config.isLaptop brightnessctl;
configDir = lib.cleanSourceWith {
src = ./.;
filter = name: _:
filter =
name: _:
let
baseName = baseNameOf (toString name);
in
!(lib.hasSuffix ".nix" baseName);
!(lib.hasSuffix ".nix" baseName);
};
in
{
@@ -28,7 +37,10 @@ in
inputs.ags.homeManagerModules.default
];
programs.ags.enable = true;
programs.ags = {
enable = true;
# package = pkgs.ags_1;
};
xdg.configFile."ags" = {
source = configDir;

View File

@@ -21,10 +21,10 @@
./zsh.nix
./games.nix
/* when xserver */
# when xserver
# ./xsession.nix
/* when wayland */
# when wayland
./wayland.nix
./hyprland.nix
./foot.nix

View File

@@ -3,7 +3,9 @@
services = {
dunst = {
enable = true;
iconTheme = with config.gtk.iconTheme; { inherit name package; };
iconTheme = with config.gtk.iconTheme; {
inherit name package;
};
settings = with conf.colors.hex; {
global = {
mouse_left_click = "close_current";

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
key = "53EC089EF230E47A83BA8F8195949BD4B853F559";
host = "mail.weirdnatto.in";
@@ -51,18 +56,17 @@ in
enable = true;
package = pkgs.neomutt;
sort = "reverse-date";
extraConfig =
lib.concatMapStringsSep
"\n"
builtins.readFile
[
./config/neomutt/neomuttrc
./config/neomutt/theme
];
extraConfig = lib.concatMapStringsSep "\n" builtins.readFile [
./config/neomutt/neomuttrc
./config/neomutt/theme
];
};
};
home = {
packages = with pkgs; [ mailcap w3m ];
packages = with pkgs; [
mailcap
w3m
];
file = {
mailcap = {
source = ./config/mailcap;

View File

@@ -1,15 +1,21 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
programs.eww = {
enable = true;
package = pkgs.eww;
configDir = lib.cleanSourceWith {
src = ./.;
filter = name: _:
filter =
name: _:
let
baseName = baseNameOf (toString name);
in
!(lib.hasSuffix ".nix" baseName);
!(lib.hasSuffix ".nix" baseName);
};
};
@@ -20,24 +26,24 @@
};
Service =
let
deps = [
config.programs.eww.package
] ++ lib.optional
config.wayland.windowManager.hyprland.enable
config.wayland.windowManager.hyprland.package
++ (with pkgs; [
coreutils
bash
jq
less
gawk
socat
playerctl
networkmanager
iwgtk
wireplumber
])
++ lib.optional config.laptop pkgs.light;
deps =
[
config.programs.eww.package
]
++ lib.optional config.wayland.windowManager.hyprland.enable config.wayland.windowManager.hyprland.package
++ (with pkgs; [
coreutils
bash
jq
less
gawk
socat
playerctl
networkmanager
iwgtk
wireplumber
])
++ lib.optional config.laptop pkgs.light;
in
{
Type = "simple";
@@ -48,4 +54,3 @@
Install.WantedBy = [ "graphical-session.target" ];
};
}

View File

@@ -11,4 +11,3 @@
programs.mangohud.enable = true;
}

View File

@@ -1,4 +1,11 @@
{ pkgs, inputs, config, conf, ... }: {
{
pkgs,
inputs,
config,
conf,
...
}:
{
wayland = {
windowManager = {
hyprland = {
@@ -8,16 +15,17 @@
xwayland = {
enable = true;
};
extraConfig = (builtins.readFile ./config/hypr/hyprland.conf)
extraConfig =
(builtins.readFile ./config/hypr/hyprland.conf)
+ (with config.home.pointerCursor; ''
exec-once=hyprctl setcursor ${name} ${toString size}
'')
+ (with conf.colors.argb { a = "ee"; };''
general {
col.active_border = 0x${mauve} 0x${flamingo} 135deg
col.inactive_border = 0x${surface0}
}
'');
exec-once=hyprctl setcursor ${name} ${toString size}
'')
+ (with conf.colors.argb { a = "ee"; }; ''
general {
col.active_border = 0x${mauve} 0x${flamingo} 135deg
col.inactive_border = 0x${surface0}
}
'');
};
};
};

View File

@@ -84,7 +84,6 @@ in
};
};
age.secrets.mpdasrc = {
file = ./secrets/mpdasrc.age;
path = "${home}/.config/mpdasrc";

View File

@@ -16,4 +16,3 @@
};
};
}

View File

@@ -1,46 +1,54 @@
{ flake, pkgs, config, ... }:
{
home.packages = with pkgs; [
# A/V, codec and media stuff
ffmpeg-full
wireplumber
pulseaudio
pavucontrol
imagemagick
flake,
pkgs,
config,
...
}:
{
home.packages =
with pkgs;
[
# A/V, codec and media stuff
ffmpeg-full
wireplumber
pulseaudio
pavucontrol
imagemagick
# Utils
neofetch
rage
curl
yt-dlp
p7zip
unrar
vim
(flake.packages.${system}.customscripts)
cachix
steam-run
# Utils
neofetch
rage
curl
yt-dlp
p7zip
unrar
vim
(flake.packages.${system}.customscripts)
cachix
steam-run
# GUI
vesktop
(xfce.thunar.override {
thunarPlugins = with xfce; [
thunar-media-tags-plugin
thunar-volman
thunar-archive-plugin
];
})
xfce.xfconf
xfce.tumbler
qbittorrent
hexchat
dunst
zenity
# GUI
vesktop
(xfce.thunar.override {
thunarPlugins = with xfce; [
thunar-media-tags-plugin
thunar-volman
thunar-archive-plugin
];
})
xfce.xfconf
xfce.tumbler
qbittorrent
hexchat
dunst
zenity
# Misc
mailcap
libsForQt5.qtstyleplugins
] ++ lib.optionals config.isLaptop [
powertop
undervolt
];
# Misc
mailcap
libsForQt5.qtstyleplugins
]
++ lib.optionals config.isLaptop [
powertop
undervolt
];
}

View File

@@ -1,4 +1,10 @@
{ config, lib, pkgs, ... }: {
{
config,
lib,
pkgs,
...
}:
{
xdg = {
enable = true;
userDirs.enable = true;
@@ -29,7 +35,10 @@
inputMethod = {
enable = true;
type = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5-m17n fcitx5-mozc ];
fcitx5.addons = with pkgs; [
fcitx5-m17n
fcitx5-mozc
];
};
};
}

View File

@@ -1,4 +1,9 @@
{ pkgs, config, flake, ... }:
{
pkgs,
config,
flake,
...
}:
{
xsession = {
enable = true;