woot. got a working build again

This commit is contained in:
Chris Kruining 2025-07-28 11:20:21 +02:00
parent d700126642
commit ff0a8c5b1b
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
16 changed files with 73 additions and 89 deletions

View file

@ -68,14 +68,6 @@
inherit inputs; inherit inputs;
src = ./.; src = ./.;
channels-config = {
allowUnfree = true;
permittedInsecurePackages = [
"dotnet-sdk-6.0.428"
"aspnetcore-runtime-6.0.36"
];
};
snowfall = { snowfall = {
namespace = "sneeuwvlok"; namespace = "sneeuwvlok";
@ -85,6 +77,14 @@
}; };
}; };
channels-config = {
allowUnfree = true;
permittedInsecurePackages = [
"dotnet-sdk-6.0.428"
"aspnetcore-runtime-6.0.36"
];
};
overlays = with inputs; [ overlays = with inputs; [
fenix.overlays.default fenix.overlays.default
nix-minecraft.overlay nix-minecraft.overlay
@ -92,6 +92,7 @@
]; ];
homes.modules = with inputs; [ homes.modules = with inputs; [
stylix.homeModules.stylix
plasma-manager.homeManagerModules.plasma-manager plasma-manager.homeManagerModules.plasma-manager
]; ];
}; };

View file

@ -1,19 +0,0 @@
{
programs.git = {
userName = "Chris Kruining";
userEmail = "chris@kruining.eu";
};
sneeuwvlok = {
shell = {
default = "zsh";
corePkgs.enable = true;
};
themes = {
enable = true;
theme = "everforest";
polarity = "dark";
};
};
}

View file

@ -1,4 +1,22 @@
{ ... }: { osConfig, ... }:
{ {
sneeuwvlok = {}; home.stateVersion = osConfig.system.stateVersion;
programs.git = {
userName = "Chris Kruining";
userEmail = "chris@kruining.eu";
};
sneeuwvlok = {
shell = {
default = "zsh";
corePkgs.enable = true;
};
themes = {
enable = true;
theme = "everforest";
polarity = "dark";
};
};
} }

View file

@ -0,0 +1,10 @@
{ lib, osConfig ? { }, ... }:
let
inherit (lib) mkDefault;
in
{
systemd.user.startServices = "sd-switch";
programs.home-manager.enable = true;
home.stateVersion = mkDefault (osConfig.system.stateVersion or "25.05");
}

View file

@ -21,7 +21,6 @@ in
# shell = pkgs."${cfg.default}"; # shell = pkgs."${cfg.default}";
# } else {}) # } else {})
(mkIf (cfg.corePkgs.enable) { (mkIf (cfg.corePkgs.enable) {
${namespace}.shell.toolset = mkDefault { ${namespace}.shell.toolset = mkDefault {
bat.enable = true; bat.enable = true;

View file

@ -76,8 +76,6 @@ in
credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret"; credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret";
user = { user = {
name = config.${namespace}.user.full_name;
email = config.${namespace}.user.email;
signingKey = "~/.ssh/id_rsa.pub"; signingKey = "~/.ssh/id_rsa.pub";
}; };

View file

@ -5,6 +5,7 @@ let
inherit (lib.types) nullOr enum; inherit (lib.types) nullOr enum;
cfg = config.${namespace}.themes; cfg = config.${namespace}.themes;
osCfg = osConfig.${namespace}.theming;
in { in {
options.${namespace}.themes = { options.${namespace}.themes = {
enable = mkEnableOption "Theming (Stylix)"; enable = mkEnableOption "Theming (Stylix)";
@ -23,12 +24,36 @@ in {
}; };
}; };
config = mkIf (cfg.enable && osConfig.${namespace}.theming.enable) { config = mkIf (cfg.enable) {
stylix = { stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/${cfg.theme}.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/${cfg.theme}.yaml";
image = ./${cfg.theme}.jpg; image = ./${cfg.theme}.jpg;
polarity = cfg.polarity; polarity = cfg.polarity;
targets.qt.platform = mkDefault "kde6"; targets.qt.platform = mkDefault "kde6";
fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;
name = "JetBrainsMono Nerd Font Mono";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
}; };
}; };
} }

View file

@ -1,6 +1,6 @@
{ lib, config, namespace, inputs, ... }: { lib, config, namespace, inputs, ... }:
let let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf mkEnableOption mkForce;
cfg = config.${namespace}.desktop.gamescope; cfg = config.${namespace}.desktop.gamescope;
in in
@ -16,6 +16,9 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
${namespace}.desktop.plasma.enable = true; ${namespace}.desktop.plasma.enable = true;
services.displayManager.sddm.enable = mkForce false;
services.displayManager.gdm.enable = mkForce false;
jovian = { jovian = {
steam = { steam = {
enable = true; enable = true;

View file

@ -1,50 +0,0 @@
{ inputs, config, lib, pkgs, namespace, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.theming;
in
{
imports = [
inputs.stylix.nixosModules.stylix
];
options.${namespace}.theming = {
enable = mkEnableOption "enable theming" // {
default = true;
};
};
config = mkIf cfg.enable {
stylix = {
enable = true;
autoEnable = true;
# base16Scheme = "${pkgs.base16-schemes}/share/themes/${cfg.theme}.yaml";
# image = ./${cfg.theme}.jpg;
# polarity = cfg.polarity;
fonts = {
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;
name = "JetBrainsMono Nerd Font Mono";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
};
};
}

View file

@ -20,7 +20,6 @@ in
}; };
desktop.use = "plasma"; desktop.use = "plasma";
theming.enable = true;
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";

View file

@ -8,9 +8,10 @@ in
]; ];
sneeuwvlok = { sneeuwvlok = {
preset = "desktop"; hardware.has = {
bluetooth = true;
bluetooth.enable = true; audio = true;
};
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";

View file

@ -20,7 +20,6 @@ in
}; };
desktop.use = "gamescope"; desktop.use = "gamescope";
theming.enable = true;
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";