mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 09:14:34 +05:30
Added myTheme variable to try system-level stylix
This commit is contained in:
parent
227070ac48
commit
f0bb682e73
|
@ -14,7 +14,8 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
name = "emmet";
|
name = "emmet";
|
||||||
email = "librephoenix@protonmail.com";
|
email = "librephoenix@protonmail.com";
|
||||||
dotfilesDir = ./.;
|
dotfilesDir = "~/dotfiles";
|
||||||
|
theme = "tokyo-night-dark";
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -39,6 +40,7 @@
|
||||||
myDotfilesDir = dotfilesDir;
|
myDotfilesDir = dotfilesDir;
|
||||||
myNixConfigurationFilePath = dotfilesDir+"/system/configuration.nix";
|
myNixConfigurationFilePath = dotfilesDir+"/system/configuration.nix";
|
||||||
myHomeManagerFilePath = dotfilesDir+"/user/home.nix";
|
myHomeManagerFilePath = dotfilesDir+"/user/home.nix";
|
||||||
|
myTheme = theme;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -47,7 +49,11 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./system/configuration.nix
|
./system/configuration.nix
|
||||||
|
# stylix.nixosModules.stylix # complains that home-manager is not defined
|
||||||
];
|
];
|
||||||
|
# specialArgs = {
|
||||||
|
# myTheme = theme;
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,12 +2,13 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, myTheme, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
# ./style/stylix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
nix.nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, myName, myEmail, myHomeDir, myDotfilesDir, ... }:
|
{ config, lib, pkgs, myName, myEmail, myHomeDir, myDotfilesDir, myTheme, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# This sets up my "phoenix" script with my configuration paths
|
# This sets up my "phoenix" script with my configuration paths
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, myTheme, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
myFont = "Inconsolata";
|
myFont = "Inconsolata";
|
||||||
|
@ -7,11 +7,12 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
stylix.autoEnable = false;
|
stylix.autoEnable = false;
|
||||||
|
stylix.polarity = "dark";
|
||||||
stylix.image = pkgs.fetchurl {
|
stylix.image = pkgs.fetchurl {
|
||||||
url = "https://w.wallhaven.cc/full/6d/wallhaven-6d5k6x.jpg";
|
url = "https://w.wallhaven.cc/full/6d/wallhaven-6d5k6x.jpg";
|
||||||
sha256 = "+xl4H3UiVmMRNvMhIlaLdVTYYqnSyCTSX2UOTGsDQ8c=";
|
sha256 = "+xl4H3UiVmMRNvMhIlaLdVTYYqnSyCTSX2UOTGsDQ8c=";
|
||||||
};
|
};
|
||||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/"+myTheme+".yaml";
|
||||||
|
|
||||||
stylix.fonts = {
|
stylix.fonts = {
|
||||||
monospace = {
|
monospace = {
|
||||||
|
@ -47,5 +48,4 @@ in
|
||||||
programs.rofi.enable = true;
|
programs.rofi.enable = true;
|
||||||
stylix.targets.feh.enable = true;
|
stylix.targets.feh.enable = true;
|
||||||
programs.feh.enable = true;
|
programs.feh.enable = true;
|
||||||
# stylix.targets.lightdm.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue