From a5190748856e7605ac938168c02df70c17f5597f Mon Sep 17 00:00:00 2001 From: KnightArtorias Date: Fri, 6 Mar 2026 04:20:12 +0000 Subject: [PATCH] Lens --- home-manager/roles/lens/default.nix | 23 ++++++++++++----------- hosts/physical/crow/default.nix | 2 -- nixos/modules/kubectl.nix | 7 ------- 3 files changed, 12 insertions(+), 20 deletions(-) delete mode 100644 nixos/modules/kubectl.nix diff --git a/home-manager/roles/lens/default.nix b/home-manager/roles/lens/default.nix index c38e2da..dc11f00 100644 --- a/home-manager/roles/lens/default.nix +++ b/home-manager/roles/lens/default.nix @@ -1,19 +1,20 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { - home.pkgs = [ + home.packages = with pkgs; [ lens + kubectl + kompose ]; - home.file."${pkgs.lens}" = { - text = '' - [Dekstop Entry] - Name=Lens - Exec=${pkgs.lens}/bin/lens - Type=Application - Categories=Development; - ''; + home.file = { + ".config/Lens/config.json".text = builtins.toJSON { + updateChannel = "stable"; + allowUntrustedCAs = true; + }; }; - environment.variables.KUBECONFIG = "${config.home.homeDirectory}/.kube/config"; + home.sessionVariables = { + KUBECONFIG = "$HOME/.kube/config"; + }; } diff --git a/hosts/physical/crow/default.nix b/hosts/physical/crow/default.nix index d5c1e6f..d57706d 100644 --- a/hosts/physical/crow/default.nix +++ b/hosts/physical/crow/default.nix @@ -12,8 +12,6 @@ ../../../nixos/roles/physical/desktop/common ../../../nixos/roles/physical/desktop/niri - - ../../../nixos/modules/kubectl.nix ]; home-manager = { diff --git a/nixos/modules/kubectl.nix b/nixos/modules/kubectl.nix deleted file mode 100644 index 41aee87..0000000 --- a/nixos/modules/kubectl.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ pkgs, ... }: - -{ - environment.systemPackages = with pkgs; [ - kubectl - ]; -}