Update docker & kubernetes settings
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
8
hosts/common/configs/system/kubernetes/default.nix
Normal file
8
hosts/common/configs/system/kubernetes/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kubectl
|
||||||
|
kubernetes-helm
|
||||||
|
kind
|
||||||
|
];
|
||||||
|
}
|
@@ -4,8 +4,7 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
inputs,
|
lib,
|
||||||
utils,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@@ -28,6 +27,9 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.${user}.home.packages = with pkgs; [ docker-compose ];
|
||||||
|
}
|
||||||
|
// lib.mkIf config.virtualisation.docker.rootless.enable {
|
||||||
environment.persistence."/persist"."${home}/.local/share/docker" = { };
|
environment.persistence."/persist"."${home}/.local/share/docker" = { };
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
@@ -38,6 +40,7 @@
|
|||||||
config.environment.persistence."/persist"."${home}/.local/share/docker".mount
|
config.environment.persistence."/persist"."${home}/.local/share/docker".mount
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
}
|
||||||
home-manager.users.${user}.home.packages = with pkgs; [ docker-compose ];
|
// lib.mkIf (!config.virtualisation.docker.rootless.enable) {
|
||||||
|
users.users.${user}.extraGroups = [ "docker" ];
|
||||||
}
|
}
|
||||||
|
@@ -6,8 +6,9 @@
|
|||||||
{
|
{
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kubernetes-helm
|
|
||||||
kubectl
|
kubectl
|
||||||
|
kubernetes-helm
|
||||||
|
kind
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.zsh.p10k.extraRightPromptElements = [ "kubecontext" ];
|
programs.zsh.p10k.extraRightPromptElements = [ "kubecontext" ];
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
../common/configs/system/git
|
../common/configs/system/git
|
||||||
../common/configs/system/gpg-agent
|
../common/configs/system/gpg-agent
|
||||||
../common/configs/system/impermanence
|
../common/configs/system/impermanence
|
||||||
|
../common/configs/system/kubernetes
|
||||||
../common/configs/system/lsof
|
../common/configs/system/lsof
|
||||||
../common/configs/system/ncdu
|
../common/configs/system/ncdu
|
||||||
../common/configs/system/neovim
|
../common/configs/system/neovim
|
||||||
|
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
user ? throw "user argument is required",
|
||||||
|
home ? throw "home argument is required",
|
||||||
|
}:
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
virtualisation.docker.rootless.enable = lib.mkForce false;
|
||||||
|
}
|
@@ -67,6 +67,7 @@ in
|
|||||||
(import ../../../common/configs/user/gui/x11 { inherit user home; })
|
(import ../../../common/configs/user/gui/x11 { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/xdg { inherit user home; })
|
(import ../../../common/configs/user/gui/xdg { inherit user home; })
|
||||||
|
|
||||||
|
(import ./configs/console/docker { inherit user home; })
|
||||||
(import ./configs/console/git { inherit user home; })
|
(import ./configs/console/git { inherit user home; })
|
||||||
(import ./configs/console/go { inherit user home; })
|
(import ./configs/console/go { inherit user home; })
|
||||||
(import ./configs/console/java { inherit user home; })
|
(import ./configs/console/java { inherit user home; })
|
||||||
|
Reference in New Issue
Block a user