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: {
config,
lib,
pkgs,
...

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2,7 +2,6 @@
config,
lib,
pkgs,
self,
...
}: let
sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" ''
@ -38,7 +37,10 @@
'';
in {
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 = [
{command = "${lib.getExe sway-randomWallpaper}";}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,4 @@
{
config,
lib,
pkgs,
...
}: {
home-manager.sharedModules = [
{
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.
{
config,
lib,
pkgs,
self,
...
}: {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -11,26 +11,25 @@
kwallet.enable = true;
};
services = {
greetd = {
enable = true;
settings =
if config.ar.desktop.greetd.autologin != null
then {
default_session = {
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.ar.desktop.greetd.session}";
};
initial_session = {
command = config.ar.desktop.greetd.session;
user = config.ar.desktop.greetd.autologin;
};
}
else {
default_session = {
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.ar.desktop.greetd.session}";
};
services.greetd = {
enable = true;
settings =
if config.ar.desktop.greetd.autologin != null
then {
default_session = {
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.ar.desktop.greetd.session}";
};
};
initial_session = {
command = config.ar.desktop.greetd.session;
user = config.ar.desktop.greetd.autologin;
};
}
else {
default_session = {
command = lib.mkDefault "${lib.getExe pkgs.greetd.tuigreet} --asterisks --user-menu -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.ar.desktop.greetd.session}";
};
};
};
};
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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