Moved configuration.nix and home.nix to profiles

This commit is contained in:
Emmet 2023-06-20 22:03:14 -05:00
parent c4619cbe4f
commit 727b44b3a4
4 changed files with 45 additions and 32 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, myTheme, myThemePolarity, myBackgroundUrl, myBackgroundSha256, ... }:
{ config, pkgs, stylix, myTheme, myThemePolarity, myBackgroundUrl, myBackgroundSha256, ... }:
let
myFont = "Inconsolata";
@ -7,11 +7,13 @@ let
myLightDMTheme = if myThemePolarity == "light" then "Adwaita" else "Adwaita-dark";
in
{
imports = [ stylix.nixosModules.stylix ];
stylix.autoEnable = false;
stylix.polarity = myThemePolarity;
stylix.image = pkgs.fetchurl {
url = myBackgroundUrl;
sha256 = myBackgroundSha256;
url = myBackgroundUrl;
sha256 = myBackgroundSha256;
};
stylix.base16Scheme = ./. + myThemePath;
stylix.fonts = {