Mildly insane argument passing to modules

This commit is contained in:
Gerg-L 2024-06-12 23:05:45 -04:00
parent 5254992a3a
commit 03fe49b85a
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
32 changed files with 134 additions and 164 deletions

View file

@ -1,13 +1,10 @@
{
suckless,
self,
_file,
}:
{
pkgs,
config,
lib,
...
suckless,
self',
}:
{
options.local.DE.dwm.enable = lib.mkEnableOption "";
@ -43,7 +40,7 @@
enable = true;
displayManager = {
sessionCommands = ''
feh --bg-center "${self.packages.images}/recursion.png"
feh --bg-center "${self'.packages.images}/recursion.png"
numlockx
systemctl --user start sxhkd
systemctl --user start picom
@ -125,5 +122,4 @@
};
};
};
inherit _file;
}

View file

@ -1,9 +1,8 @@
{ _file }:
{
config,
lib,
pkgs,
...
}:
{
options.local.DE.gnome.enable = lib.mkEnableOption "";
@ -50,5 +49,4 @@
};
};
};
inherit _file;
}

View file

@ -1,9 +1,8 @@
{ _file }:
{
config,
lib,
pkgs,
...
}:
{
options.local.DE.xfce.enable = lib.mkEnableOption "";
@ -21,5 +20,4 @@
displayManager.defaultSession = "xfce";
};
};
inherit _file;
}

View file

@ -1,5 +1,4 @@
{ _file }:
{ config, lib, ... }:
{ config, lib }:
{
options.local.DM = {
autoLogin = lib.mkEnableOption "";
@ -17,5 +16,4 @@
};
};
};
inherit _file;
}

View file

@ -1,5 +1,9 @@
{ self, _file }:
{ config, lib, ... }:
{
self',
config,
lib,
}:
{
options.local.DM.lightdm.enable = lib.mkEnableOption "";
@ -7,7 +11,7 @@
services.xserver.displayManager = {
lightdm = {
enable = true;
background = "${self.packages.images}/recursion.png";
background = "${self'.packages.images}/recursion.png";
extraConfig = "minimum-vt=1";
greeters.mini = {
enable = true;
@ -41,5 +45,4 @@
};
};
};
inherit _file;
}

View file

@ -1,5 +1,4 @@
{ _file }:
{ pkgs, lib, ... }:
{ pkgs, lib }:
{
services.xserver = {
tty = lib.mkDefault 1;
@ -9,5 +8,4 @@
excludePackages = [ pkgs.xterm ];
desktopManager.xterm.enable = false;
};
inherit _file;
}

View file

@ -1,9 +1,9 @@
{ self, _file }:
{
self',
lib,
pkgs,
config,
...
}:
{
options.local.bootConfig.disable = lib.mkEnableOption "";
@ -34,7 +34,7 @@
plymouth = {
enable = lib.mkDefault true;
theme = "breeze";
logo = "${self.packages.images}/logo.png";
logo = "${self'.packages.images}/logo.png";
};
loader = {
grub = {
@ -68,5 +68,4 @@
'';
};
};
inherit _file;
}

View file

@ -1,5 +1,4 @@
{ _file }:
{ config, lib, ... }:
{ config, lib }:
{
options.local.remoteBuild = {
enable = lib.mkEnableOption "";
@ -97,5 +96,4 @@
}
)
];
inherit _file;
}

View file

@ -1,5 +1,4 @@
{ _file }:
{ config, lib, ... }:
{ config, lib }:
let
cfg = config.local.hardware;
in
@ -41,5 +40,4 @@ in
};
}
];
inherit _file;
}

View file

@ -1,5 +1,4 @@
{ _file }:
{ lib, ... }:
{ lib }:
{
options.local.keys = lib.mkOption { };
@ -12,5 +11,4 @@
gerg-desktop_fingerprint = "BQxvBOWsTw1gdNDR0KzrSRmbVhDrJdG05vYXkVmw8yA";
gerg_gerg-desktop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJWbwkFJmRBgyWyWU+w3ksZ+KuFw9uXJN3PwqqE7Z/i8";
};
inherit _file;
}

View file

@ -1,9 +1,9 @@
{ _file, self }:
{
self',
lib,
config,
pkgs,
...
}:
{
options.local.allowedUnfree = lib.mkOption {
@ -33,7 +33,7 @@
nix-tree # view packages
pciutils # lspci
;
inherit (self.packages) nix-janitor;
inherit (self'.packages) nix-janitor;
}
);
@ -69,5 +69,4 @@
# Useless with flakes (without configuring)
programs.command-not-found.enable = false;
};
inherit _file;
}

View file

@ -1,13 +1,11 @@
{
nix,
inputs,
_file,
}:
{
lib,
config,
pkgs,
...
}:
{
#
@ -73,5 +71,4 @@
#
reject-flake-config = true;
};
inherit _file;
}

View file

@ -1,9 +1,9 @@
{ fetch-rs, _file }:
{
fetch-rs,
pkgs,
config,
lib,
...
}:
{
systemd.tmpfiles.rules = [ "d /tmp/neovim-page 0777 root root - -" ];
@ -160,5 +160,4 @@
};
};
};
inherit _file;
}

View file

@ -1,13 +1,10 @@
{
sops-nix,
self,
_file,
}:
{
pkgs,
config,
lib,
...
sops-nix,
self',
}:
{
imports = [ sops-nix.nixosModules.sops ];
@ -15,9 +12,8 @@
config = lib.mkIf (!config.local.sops.disable) {
environment.systemPackages = [ pkgs.sops ];
sops = {
defaultSopsFile = "${self}/hosts/${config.networking.hostName}/secrets.yaml";
defaultSopsFile = "${self'}/hosts/${config.networking.hostName}/secrets.yaml";
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
};
};
inherit _file;
}

View file

@ -1,9 +1,8 @@
{ _file }:
{
pkgs,
config,
lib,
...
}:
let
cfg = config.local.theming;
@ -98,5 +97,4 @@ in
};
})
];
inherit _file;
}