mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nix] Split up program configs into files
Co-Authored-By: Winter <winter@winter.cafe>
This commit is contained in:
parent
3530a88e81
commit
849c0fef38
4 changed files with 61 additions and 51 deletions
|
@ -69,8 +69,6 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
imports = [];
|
||||
|
||||
# Absolutely proprietary.
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
@ -94,60 +92,14 @@ in
|
|||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit dotfiles; };
|
||||
users.alyxia = { pkgs, ... }: {
|
||||
imports = [ ./zsh.nix ./git.nix ./nvim.nix ];
|
||||
|
||||
home = {
|
||||
packages = packageSets.everything;
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
initExtra = ''
|
||||
export GPG_TTY=$(tty)
|
||||
source ${dotfiles}/zsh/zshrc
|
||||
'';
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull; # contains git send-email et al
|
||||
|
||||
userName = "Alyxia Sother";
|
||||
userEmail = "alyxia@riseup.net";
|
||||
|
||||
signing = {
|
||||
key = "01E16C4E775A37E4";
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
delta.enable = true;
|
||||
};
|
||||
|
||||
programs.gitui.enable = true;
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim-unwrapped;
|
||||
|
||||
extraConfig = "source ${dotfiles}/nvim/init.vim";
|
||||
|
||||
coc = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
languageServer = {
|
||||
nix = {
|
||||
command = "rnix-lsp";
|
||||
filetypes = [ "nix" ];
|
||||
};
|
||||
"go.goPlsOptions" = {
|
||||
completion = true;
|
||||
completeUnimported = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS
|
||||
# OPTION IS APPROPRIATELY MIGRATED!!!
|
||||
home.stateVersion = "23.05"; # did you read the comment?
|
||||
|
|
20
nix/hosts/alymac/git.nix
Normal file
20
nix/hosts/alymac/git.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ dotfiles, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull; # contains git send-email et al
|
||||
|
||||
userName = "Alyxia Sother";
|
||||
userEmail = "alyxia@riseup.net";
|
||||
|
||||
signing = {
|
||||
key = "01E16C4E775A37E4";
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
delta.enable = true;
|
||||
};
|
||||
|
||||
programs.gitui.enable = true;
|
||||
}
|
27
nix/hosts/alymac/nvim.nix
Normal file
27
nix/hosts/alymac/nvim.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ dotfiles, ... }:
|
||||
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim-unwrapped;
|
||||
|
||||
extraConfig = "source ${dotfiles}/nvim/init.vim";
|
||||
|
||||
coc = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
languageServer = {
|
||||
nix = {
|
||||
command = "rnix-lsp";
|
||||
filetypes = [ "nix" ];
|
||||
};
|
||||
"go.goPlsOptions" = {
|
||||
completion = true;
|
||||
completeUnimported = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
11
nix/hosts/alymac/zsh.nix
Normal file
11
nix/hosts/alymac/zsh.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ dotfiles, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
initExtra = ''
|
||||
export GPG_TTY=$(tty)
|
||||
source ${dotfiles}/zsh/zshrc
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue