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 - ]; -}