From 7426658f625d794046d646fb0b27ffce4878fe1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 13 Jun 2024 11:50:32 -0300 Subject: [PATCH 1/2] vscode: use fhs version --- user/vscode/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/vscode/default.nix b/user/vscode/default.nix index 35d972b..a477666 100644 --- a/user/vscode/default.nix +++ b/user/vscode/default.nix @@ -3,7 +3,7 @@ programs.vscode = { enable = true; - package = pkgs.vscodium; + package = pkgs.vscodium-fhs; extensions = with pkgs.vscode-extensions; [ jnoortheen.nix-ide github.github-vscode-theme From d302447326030c43f16b02c6a2c8617b292fe948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 13 Jun 2024 11:51:00 -0300 Subject: [PATCH 2/2] flake: remove specialisations --- flake.nix | 1 - system/specialisation.nix | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 system/specialisation.nix diff --git a/flake.nix b/flake.nix index efe0d7a..8e17499 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; } diff --git a/system/specialisation.nix b/system/specialisation.nix deleted file mode 100644 index 23b410f..0000000 --- a/system/specialisation.nix +++ /dev/null @@ -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 - '') - ]; -}