flake: clean up modules

This commit is contained in:
Infinidoge 2024-10-22 11:34:51 -04:00
parent 28f18c9a99
commit 8cd8b3a3f9
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
64 changed files with 258 additions and 273 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, ... }:
{
programs = {
# Enable dconf for programs that need it

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ config, lib, ... }:
lib.mkIf config.info.graphical {
boot.extraModulePackages = with config.boot.kernelPackages; [

View file

@ -1,4 +1,4 @@
{ pkgs, config, private, ... }:
{ config, pkgs, private, ... }:
{
imports = [ private.nixosModules.networking ];

View file

@ -1,5 +1,5 @@
# Heavily inspired by hlissner: https://github.com/hlissner/dotfiles/blob/master/modules/options.nix
{ config, options, lib, home-manager, ... }:
{ config, options, lib, ... }:
with lib;
with lib.our;
let

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ common, lib, ... }:
with lib;
{
# For rage encryption, all hosts need a ssh key pair
@ -17,7 +17,7 @@ with lib;
};
programs.ssh = {
extraConfig = with config.common; ''
extraConfig = with common; ''
Host rsync.net
Hostname ${rsyncnet.host}
User ${rsyncnet.user}

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ config, common, pkgs, lib, ... }:
with lib;
with lib.our;
let
@ -30,7 +30,7 @@ in
programs.xss-lock = {
enable = true;
lockerCommand = lib.getExe config.common.wm.locker;
lockerCommand = lib.getExe common.wm.locker;
};
# Automatically attach/detatch connected/disconnected monitors
@ -64,7 +64,7 @@ in
pavucontrol
config.common.wm.locker
common.wm.locker
];
}
(mkIf cfg.qtile.enable {

View file

@ -1,4 +1,4 @@
{ options, config, lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
with lib;
with lib.our;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, ... }:
with lib;
with lib.our;
let

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, private, ... }:
{ config, lib, private, ... }:
with lib;
with lib.our;
let

View file

@ -1,4 +1,4 @@
{ config, options, lib, pkgs, ... }:
{ config, lib, ... }:
with lib;
with lib.our;
let

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ config, pkgs, lib, ... }:
with lib;