remove unused variables and nesting issues

This commit is contained in:
Aly Raffauf 2024-07-18 20:06:46 -04:00
parent 265756abaf
commit 7ee40426ab
66 changed files with 90 additions and 170 deletions

View file

@ -1,5 +1,4 @@
self: { self: {
config,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -1,7 +1,6 @@
{ {
pkgs,
lib,
config, config,
lib,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.alacritty.enable { config = lib.mkIf config.ar.home.apps.alacritty.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: let }: let
cfg = config.ar.home.apps.backblaze; cfg = config.ar.home.apps.backblaze;

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.bash.enable { config = lib.mkIf config.ar.home.apps.bash.enable {

View file

@ -1,7 +1,6 @@
{ {
pkgs,
lib,
config, config,
lib,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.chromium.enable { config = lib.mkIf config.ar.home.apps.chromium.enable {

View file

@ -1,9 +1,4 @@
{ {
config,
lib,
pkgs,
...
}: {
imports = [ imports = [
./alacritty ./alacritty
./backblaze ./backblaze

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.emacs.enable { config = lib.mkIf config.ar.home.apps.emacs.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.fastfetch.enable { config = lib.mkIf config.ar.home.apps.fastfetch.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.firefox.enable { config = lib.mkIf config.ar.home.apps.firefox.enable {

View file

@ -1,7 +1,6 @@
{ {
pkgs,
lib,
config, config,
lib,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.fuzzel.enable { config = lib.mkIf config.ar.home.apps.fuzzel.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.keepassxc.enable { config = lib.mkIf config.ar.home.apps.keepassxc.enable {

View file

@ -1,7 +1,6 @@
{ {
pkgs,
lib,
config, config,
lib,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.librewolf.enable { config = lib.mkIf config.ar.home.apps.librewolf.enable {

View file

@ -1,7 +1,6 @@
{ {
pkgs,
lib,
config, config,
lib,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.mako.enable { config = lib.mkIf config.ar.home.apps.mako.enable {

View file

@ -1,16 +1,15 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.nemo.enable { config = lib.mkIf config.ar.home.apps.nemo.enable {
home.packages = with pkgs; [ home.packages = [pkgs.cinnamon.nemo];
cinnamon.nemo
];
dconf = { dconf = {
enable = true; enable = true;
settings = { settings = {
"org/nemo/preferences" = { "org/nemo/preferences" = {
show-image-thumbnails = "always"; show-image-thumbnails = "always";

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.swaylock.enable { config = lib.mkIf config.ar.home.apps.swaylock.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.thunar.enable { config = lib.mkIf config.ar.home.apps.thunar.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.tmux.enable { config = lib.mkIf config.ar.home.apps.tmux.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.vsCodium.enable { config = lib.mkIf config.ar.home.apps.vsCodium.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.waybar.enable { config = lib.mkIf config.ar.home.apps.waybar.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.apps.wlogout.enable { config = lib.mkIf config.ar.home.apps.wlogout.enable {

View file

@ -95,6 +95,7 @@
ui_font_size = 16; ui_font_size = 16;
vim_mode = false; vim_mode = false;
}; };
settings = defaults // config.ar.home.apps.zed.settings; settings = defaults // config.ar.home.apps.zed.settings;
in in
lib.generators.toJSON {} settings; lib.generators.toJSON {} settings;

View file

@ -1,9 +1,4 @@
self: { self: {
config,
pkgs,
lib,
...
}: {
imports = [ imports = [
./apps ./apps
./defaultApps.nix ./defaultApps.nix

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
cfg = config.ar.home.defaultApps; cfg = config.ar.home.defaultApps;

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -2,7 +2,6 @@
config, config,
lib, lib,
osConfig, osConfig,
pkgs,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -2,7 +2,6 @@
config, config,
lib, lib,
pkgs, pkgs,
self,
... ...
}: let }: let
cfg = config.ar.home; cfg = config.ar.home;

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
imports = [./randomWallpaper.nix ./redShift.nix]; imports = [./randomWallpaper.nix ./redShift.nix];

View file

@ -2,7 +2,6 @@
config, config,
lib, lib,
pkgs, pkgs,
self,
... ...
}: let }: let
sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" '' sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" ''
@ -38,7 +37,10 @@
''; '';
in { in {
config = lib.mkIf config.ar.home.desktop.sway.randomWallpaper { config = lib.mkIf config.ar.home.desktop.sway.randomWallpaper {
home.packages = with pkgs; [swaybg sway-randomWallpaper]; home.packages = [
pkgs.swaybg
sway-randomWallpaper
];
wayland.windowManager.sway.config.startup = [ wayland.windowManager.sway.config.startup = [
{command = "${lib.getExe sway-randomWallpaper}";} {command = "${lib.getExe sway-randomWallpaper}";}

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.desktop.sway.redShift { config = lib.mkIf config.ar.home.desktop.sway.redShift {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf (config.ar.home.desktop.hyprland.enable || config.ar.home.desktop.sway.enable) { config = lib.mkIf (config.ar.home.desktop.hyprland.enable || config.ar.home.desktop.sway.enable) {

View file

@ -1,8 +1,6 @@
{ {
config, imports = [
lib, ./easyeffects
pkgs, ./mpd
... ];
}: {
imports = [./easyeffects ./mpd];
} }

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -1,6 +1,5 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: {

View file

@ -1,6 +1,5 @@
self: { self: {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: {

View file

@ -1,8 +1,6 @@
# Framework 13 with 11th gen Intel Core i5, 16GB RAM, 512GB SSD. # Framework 13 with 11th gen Intel Core i5, 16GB RAM, 512GB SSD.
{ {
config, config,
lib,
pkgs,
self, self,
... ...
}: { }: {

View file

@ -1,9 +1,4 @@
{ {
config,
lib,
pkgs,
...
}: {
home-manager.sharedModules = [ home-manager.sharedModules = [
{ {
ar.home.desktop.hyprland.laptopMonitors = ["desc:BOE 0x095F,preferred,auto,1.566667"]; ar.home.desktop.hyprland.laptopMonitors = ["desc:BOE 0x095F,preferred,auto,1.566667"];

View file

@ -1,8 +1,6 @@
# Framework Laptop 13 with AMD Ryzen 7640U, 32GB RAM, 1TB SSD. # Framework Laptop 13 with AMD Ryzen 7640U, 32GB RAM, 1TB SSD.
{ {
config, config,
lib,
pkgs,
self, self,
... ...
}: { }: {

View file

@ -1,9 +1,4 @@
{ {
config,
lib,
pkgs,
...
}: {
home-manager.sharedModules = [ home-manager.sharedModules = [
{ {
ar.home = { ar.home = {

View file

@ -1,5 +1,4 @@
{ {
config,
lib, lib,
pkgs, pkgs,
self, self,

View file

@ -1,8 +1,6 @@
# Lenovo Yoga 9i Convertible with Intel Core i7-1360P, 16GB RAM, 512GB SSD. # Lenovo Yoga 9i Convertible with Intel Core i7-1360P, 16GB RAM, 512GB SSD.
{ {
config, config,
lib,
pkgs,
self, self,
... ...
}: { }: {

View file

@ -1,5 +1,4 @@
{ {
config,
lib, lib,
pkgs, pkgs,
self, self,

View file

@ -1,8 +1,6 @@
# Lenovo Thinkpad T440p with a Core i5 4210M, 16GB RAM, 512GB SSD. # Lenovo Thinkpad T440p with a Core i5 4210M, 16GB RAM, 512GB SSD.
{ {
config, config,
lib,
pkgs,
self, self,
... ...
}: { }: {

View file

@ -1,9 +1,4 @@
{ {lib, ...}: {
config,
lib,
pkgs,
...
}: {
home-manager.sharedModules = [ home-manager.sharedModules = [
{ {
gtk.font.size = lib.mkForce 14; gtk.font.size = lib.mkForce 14;

View file

@ -1,9 +1,9 @@
{ {
pkgs, imports = [
inputs, ./firefox
lib, ./nicotine-plus
config, ./steam
... ./podman
}: { ./virt-manager
imports = [./firefox ./nicotine-plus ./steam ./podman ./virt-manager]; ];
} }

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.apps.firefox.enable { config = lib.mkIf config.ar.apps.firefox.enable {

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.apps.nicotine-plus.enable { config = lib.mkIf config.ar.apps.nicotine-plus.enable {

View file

@ -1,5 +1,4 @@
{ {
pkgs,
lib, lib,
config, config,
... ...

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.apps.virt-manager.enable { config = lib.mkIf config.ar.apps.virt-manager.enable {

View file

@ -1,9 +1,4 @@
self: { {
config,
pkgs,
lib,
...
}: {
imports = [ imports = [
./apps ./apps
./desktop ./desktop

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.desktop.cinnamon.enable { config = lib.mkIf config.ar.desktop.cinnamon.enable {

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -20,16 +20,16 @@
''; '';
in { in {
config = lib.mkIf config.ar.desktop.gnome.enable { config = lib.mkIf config.ar.desktop.gnome.enable {
environment.systemPackages = with pkgs; environment.systemPackages =
[ [
gnomeExtensions.appindicator pkgs.gnomeExtensions.appindicator
gnomeExtensions.blur-my-shell pkgs.gnomeExtensions.blur-my-shell
gnomeExtensions.gsconnect pkgs.gnomeExtensions.gsconnect
gnomeExtensions.light-shell pkgs.gnomeExtensions.light-shell
gnomeExtensions.night-theme-switcher pkgs.gnomeExtensions.night-theme-switcher
gnomeExtensions.noannoyance-fork pkgs.gnomeExtensions.noannoyance-fork
gnomeExtensions.tailscale-status pkgs.gnomeExtensions.tailscale-status
gnomeExtensions.tiling-assistant pkgs.gnomeExtensions.tiling-assistant
] ]
++ [gnomeCsAdjuster]; ++ [gnomeCsAdjuster];

View file

@ -11,9 +11,9 @@
kwallet.enable = true; kwallet.enable = true;
}; };
services = { services.greetd = {
greetd = {
enable = true; enable = true;
settings = settings =
if config.ar.desktop.greetd.autologin != null if config.ar.desktop.greetd.autologin != null
then { then {
@ -32,5 +32,4 @@
}; };
}; };
}; };
};
} }

View file

@ -1,6 +1,5 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...

View file

@ -1,5 +1,4 @@
{ {
inputs,
pkgs, pkgs,
lib, lib,
config, config,

View file

@ -1,5 +1,4 @@
{ {
inputs,
pkgs, pkgs,
lib, lib,
config, config,

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
options.ar = { options.ar = {

View file

@ -1,9 +1,4 @@
{ {
pkgs,
lib,
config,
...
}: {
imports = [ imports = [
./flatpak ./flatpak
]; ];

View file

@ -1,7 +1,7 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.services.flatpak.enable { config = lib.mkIf config.ar.services.flatpak.enable {

View file

@ -1,8 +1,6 @@
{ {
config, config,
inputs,
lib, lib,
pkgs,
self, self,
... ...
}: { }: {

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
cfg = config.ar.users.aly.syncthing; cfg = config.ar.users.aly.syncthing;

View file

@ -1,9 +1,4 @@
self: { self: {
config,
pkgs,
lib,
...
}: {
imports = [ imports = [
./aly ./aly
./dustin ./dustin

View file

@ -1,8 +1,6 @@
{ {
config, config,
inputs,
lib, lib,
pkgs,
self, self,
... ...
}: { }: {

View file

@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
options.ar.users = let options.ar.users = let