feat: move home-manager configurations into profiles

This commit is contained in:
Infinidoge 2021-09-09 09:45:22 -04:00
parent 69362c063b
commit 8da3ae268a
5 changed files with 67 additions and 62 deletions

View file

@ -131,7 +131,9 @@
externalModules = [ ];
importables = rec {
profiles = digga.lib.rakeLeaves ./users/profiles;
suites = with profiles; rec { base = [ direnv git ]; };
suites = with profiles; rec {
base = [ direnv git kitty starship zsh ];
};
};
users = {
infinidoge = { };

View file

@ -1,67 +1,6 @@
{ config, self, lib, pkgs, ... }: {
home-manager.users.infinidoge = { suites, ... }: {
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" ];

8
users/profiles/kitty.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }: {
programs.kitty = {
enable = true;
font.package = (pkgs.nerdfonts.override { fonts = [ "DejaVuSansMono" ]; });
font.name = "DejaVuSansMono";
font.size = 16;
};
}

View file

@ -0,0 +1,9 @@
{ ... }: {
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
settings = { };
};
}

47
users/profiles/zsh.nix Normal file
View 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"
];
};
};
}