started break out of zsh
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
bash
|
bash
|
||||||
zsh
|
# zsh
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
eza
|
eza
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
let
|
||||||
|
username = "john";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
flake.modules.homeManager.zsh = { pkgs, config, ... }:
|
flake.modules = {
|
||||||
{
|
nixos.zsh = { pkgs, ... }: {
|
||||||
|
users.users."${username}".shell = pkgs.zsh;
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
inputs.self.modules.homeManager.zsh
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManager.zsh = { pkgs, config, ... }: {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.zsh;
|
package = pkgs.zsh;
|
||||||
@@ -36,4 +48,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,7 @@ in
|
|||||||
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
inputs.self.modules.nixos.lxc
|
inputs.self.modules.nixos.lxc
|
||||||
|
inputs.self.modules.nixos.zsh
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.self.modules.nixos."${username}"
|
inputs.self.modules.nixos."${username}"
|
||||||
# inputs.self.modules.nixos.step-ca
|
# inputs.self.modules.nixos.step-ca
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ in
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager."${hostname}" = { pkgs, config, ... }: {
|
flake.modules.homeManager."${hostname}" = { pkgs, config, ... }: {
|
||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
# base
|
|
||||||
rebuild
|
rebuild
|
||||||
|
zsh
|
||||||
john
|
john
|
||||||
desktop
|
desktop
|
||||||
docker
|
docker
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This gets imported by the user factory:
|
||||||
homeManager."${username}" = {
|
homeManager."${username}" = {
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
@@ -42,22 +43,4 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# This is the base homeConfiguration for the john user that will be used if no other
|
|
||||||
flake.homeConfigurations."${username}" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
|
||||||
modules = [
|
|
||||||
inputs.self.modules.homeManager.base
|
|
||||||
inputs.self.modules.homeManager."${username}"
|
|
||||||
|
|
||||||
# Include another inline module to set the options created through the jsl-home modules
|
|
||||||
{
|
|
||||||
docker.enable = false;
|
|
||||||
ssh.matchSets = {
|
|
||||||
certs = true;
|
|
||||||
homelab = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user