Compare commits

..

No commits in common. "d302447326030c43f16b02c6a2c8617b292fe948" and "b97940aa97fdb8c7d1e975a9ba1006c99ac1d662" have entirely different histories.

3 changed files with 23 additions and 1 deletions

View file

@ -90,6 +90,7 @@
{ nixpkgs.pkgs = pkgs; }
./system/configuration.nix
./system/secrets.nix
./system/specialisation.nix
./system/greetd.nix
{ login-manager.greetd.enable = desktop == "sway"; }

21
system/specialisation.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
specialisation.dark-theme.configuration = {
nixpkgs.overlays = [ (final: prev: { uservars = prev.uservars; }) ];
};
specialisation.light-theme.configuration = {
nixpkgs.overlays = [
(final: prev: {
uservars = prev.uservars // rec {
theme = prev.uservars.themes.light;
color = theme.color;
};
})
];
};
environment.systemPackages = [
(pkgs.writeShellScriptBin "theme" ''
sudo "/nix/var/nix/profiles/system/specialisation/$1-theme/bin/switch-to-configuration" test
'')
];
}

View file

@ -3,7 +3,7 @@
programs.vscode = {
enable = true;
package = pkgs.vscodium-fhs;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
github.github-vscode-theme