flake: remove specialisations

This commit is contained in:
Leonardo Eugênio 2024-06-13 11:51:00 -03:00
parent 7426658f62
commit d302447326
2 changed files with 0 additions and 22 deletions

View file

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

View file

@ -1,21 +0,0 @@
{ 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
'')
];
}