feat: move home-manager configurations into profiles
This commit is contained in:
parent
69362c063b
commit
8da3ae268a
5 changed files with 67 additions and 62 deletions
|
@ -131,7 +131,9 @@
|
||||||
externalModules = [ ];
|
externalModules = [ ];
|
||||||
importables = rec {
|
importables = rec {
|
||||||
profiles = digga.lib.rakeLeaves ./users/profiles;
|
profiles = digga.lib.rakeLeaves ./users/profiles;
|
||||||
suites = with profiles; rec { base = [ direnv git ]; };
|
suites = with profiles; rec {
|
||||||
|
base = [ direnv git kitty starship zsh ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
infinidoge = { };
|
infinidoge = { };
|
||||||
|
|
|
@ -1,67 +1,6 @@
|
||||||
{ config, self, lib, pkgs, ... }: {
|
{ config, self, lib, pkgs, ... }: {
|
||||||
home-manager.users.infinidoge = { suites, ... }: {
|
home-manager.users.infinidoge = { suites, ... }: {
|
||||||
imports = suites.base;
|
imports = suites.base;
|
||||||
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
settings = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
font.package = (pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; });
|
|
||||||
font.name = "DejaVuSansMono";
|
|
||||||
font.size = 16;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableCompletion = true;
|
|
||||||
# enableSyntaxHighlighting = true;
|
|
||||||
enableVteIntegration = true;
|
|
||||||
|
|
||||||
dotDir = ".config/zsh";
|
|
||||||
|
|
||||||
history.path = "$ZDOTDIR/.zsh_history";
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
# Display
|
|
||||||
"colorize"
|
|
||||||
"colored-man-pages"
|
|
||||||
|
|
||||||
# zsh modifications
|
|
||||||
"zsh-interactive-cd"
|
|
||||||
"zsh_reload"
|
|
||||||
"command-not-found"
|
|
||||||
|
|
||||||
# Aliases
|
|
||||||
"alias-finder"
|
|
||||||
|
|
||||||
# Applications
|
|
||||||
## Docker
|
|
||||||
"docker"
|
|
||||||
## Python
|
|
||||||
"pip"
|
|
||||||
"python"
|
|
||||||
## Systemd
|
|
||||||
"systemd"
|
|
||||||
## Git
|
|
||||||
"git"
|
|
||||||
"github"
|
|
||||||
"gitignore"
|
|
||||||
## Emacs
|
|
||||||
"emacs"
|
|
||||||
## Vim
|
|
||||||
"fancy-ctrl-z"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
|
|
8
users/profiles/kitty.nix
Normal file
8
users/profiles/kitty.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
font.package = (pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; });
|
||||||
|
font.name = "DejaVuSansMono";
|
||||||
|
font.size = 16;
|
||||||
|
};
|
||||||
|
}
|
9
users/profiles/starship.nix
Normal file
9
users/profiles/starship.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }: {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
|
||||||
|
settings = { };
|
||||||
|
};
|
||||||
|
}
|
47
users/profiles/zsh.nix
Normal file
47
users/profiles/zsh.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ ... }: {
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
enableCompletion = true;
|
||||||
|
# enableSyntaxHighlighting = true;
|
||||||
|
enableVteIntegration = true;
|
||||||
|
|
||||||
|
dotDir = ".config/zsh";
|
||||||
|
|
||||||
|
history.path = "$ZDOTDIR/.zsh_history";
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
# Display
|
||||||
|
"colorize"
|
||||||
|
"colored-man-pages"
|
||||||
|
|
||||||
|
# zsh modifications
|
||||||
|
"zsh-interactive-cd"
|
||||||
|
"zsh_reload"
|
||||||
|
"command-not-found"
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
"alias-finder"
|
||||||
|
|
||||||
|
# Applications
|
||||||
|
## Docker
|
||||||
|
"docker"
|
||||||
|
## Python
|
||||||
|
"pip"
|
||||||
|
"python"
|
||||||
|
## Systemd
|
||||||
|
"systemd"
|
||||||
|
## Git
|
||||||
|
"git"
|
||||||
|
"github"
|
||||||
|
"gitignore"
|
||||||
|
## Emacs
|
||||||
|
"emacs"
|
||||||
|
## Vim
|
||||||
|
"fancy-ctrl-z"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue