The Great Modularization

This commit is contained in:
wo2wz 2025-07-20 13:02:43 -04:00
parent e0b7d60a8d
commit eb279f1f65
34 changed files with 1356 additions and 1286 deletions

View file

@ -0,0 +1,8 @@
{ config, ... }:
{
imports = [
./stylix.nix
./yubikey.nix
];
}

32
modules/common/stylix.nix Normal file
View file

@ -0,0 +1,32 @@
{ inputs, config, pkgs, ... }:
{
imports = [ inputs.stylix.nixosModules.stylix ];
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
targets = {
fontconfig.enable = false;
font-packages.enable = false;
};
fonts.sizes = {
applications = 12;
desktop = 10;
popups = 10;
terminal = 12;
};
};
home-manager.users.wo2w.stylix = {
enable = true;
targets = {
spicetify.enable = false;
vesktop.enable = false;
vscode.enable = false;
fontconfig.enable = false;
font-packages.enable = false;
librewolf.profileNames = [ "wo2w" ];
};
};
}

View file

@ -0,0 +1,12 @@
{ config, ... }:
{
# enable yubikey u2f for use with pam
security.pam.services = {
sudo.u2fAuth = true;
polkit-1.u2fAuth = if config.services.desktopManager.plasma6.enable then true else false;
};
# yubikey config
home-manager.users.wo2w.home.file.".config/Yubico/u2f_keys".text = "wo2w:aKYaBOjCImRE58XcYJCqxpY0vABEIYWbk2Lvx4UqnN3M/A1uyr3boV4FZLkfxUwmlfBdMDm4caSaX1/SrNoNgw==,zruscj30G6zEt8xmlvTXBBEKIzg+fPCSq/FvhZO3X0HyP2uBLsWSXqCyRKXM8H9F/GJwJWBpyoHj/dhkxj7eZg==,es256,+presence";
}