rest of the split migration

This commit is contained in:
Danilo Reyes
2026-03-16 16:41:10 -06:00
parent 195c55891e
commit 9c6f17f113
44 changed files with 859 additions and 483 deletions

View File

@@ -26,11 +26,11 @@
backupFileExtension = "hbckup";
useUserPackages = true;
useGlobalPkgs = true;
users.jawz = import ./home-manager.nix;
sharedModules = [ ../modules/home-manager.nix ];
extraSpecialArgs = {
inherit inputs outputs;
};
users.jawz = import ./home-manager.nix;
};
time = {
inherit (config.my) timeZone;

3
config/derek-home.nix Normal file
View File

@@ -0,0 +1,3 @@
_: {
home.stateVersion = "23.05";
}

View File

@@ -86,5 +86,4 @@ in
"games"
];
};
home-manager.users.bearded_dragonn.home.stateVersion = "23.05";
}

View File

@@ -29,7 +29,10 @@ let
};
in
{
imports = lib.optionals (osConfig != null) [ ./jawz-home.nix ];
imports = lib.optionals (osConfig != null) [
./jawz-home.nix
./stylix-home.nix
];
home.stateVersion = "23.05";
programs = {
direnv = {

41
config/stylix-home.nix Normal file
View File

@@ -0,0 +1,41 @@
{
config,
lib,
pkgs,
inputs,
osConfig,
...
}:
let
schemesFile = import ./schemes.nix {
inherit pkgs inputs;
};
scheme = schemesFile.schemes.paul;
cfg = osConfig.my.stylix;
gnomeEnabled = osConfig.services.desktopManager.gnome.enable;
in
{
gtk = lib.mkIf (!cfg.enable && gnomeEnabled) {
enable = true;
iconTheme = {
name = "Papirus-Light";
package = pkgs.papirus-icon-theme.override {
color = "yellow";
};
};
};
stylix = {
inherit (cfg) enable;
autoEnable = cfg.enable;
iconTheme = {
enable = true;
package = scheme.iconPackage;
light = "Papirus-Light";
dark = "Papirus-Dark";
};
targets.librewolf = {
firefoxGnomeTheme.enable = true;
profileNames = [ config.home.username ];
};
};
}

View File

@@ -11,7 +11,6 @@ let
};
scheme = schemesFile.schemes.paul;
cfg = config.my.stylix;
gnomeEnabled = config.services.desktopManager.gnome.enable;
in
{
options.my.stylix = {
@@ -30,30 +29,5 @@ in
targets.qt.platform = lib.mkForce "qtct";
}
// lib.optionalAttrs (scheme ? base16Scheme) { inherit (scheme) base16Scheme; };
home-manager.users = inputs.self.lib.mkHomeManagerUsers lib config.my.stylix.users (user: {
gtk = lib.mkIf (!cfg.enable && gnomeEnabled) {
enable = true;
iconTheme = {
name = "Papirus-Light";
package = pkgs.papirus-icon-theme.override {
color = "yellow";
};
};
};
stylix = {
inherit (cfg) enable;
autoEnable = cfg.enable;
iconTheme = {
enable = true;
package = scheme.iconPackage;
light = "Papirus-Light";
dark = "Papirus-Dark";
};
targets.librewolf = {
firefoxGnomeTheme.enable = true;
profileNames = [ user ];
};
};
});
};
}