[nix] Split up program configs into files
Co-Authored-By: Winter <winter@winter.cafe>
This commit is contained in:
parent
3530a88e81
commit
849c0fef38
|
@ -69,8 +69,6 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [];
|
|
||||||
|
|
||||||
# Absolutely proprietary.
|
# Absolutely proprietary.
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
@ -94,60 +92,14 @@ in
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
extraSpecialArgs = { inherit dotfiles; };
|
||||||
users.alyxia = { pkgs, ... }: {
|
users.alyxia = { pkgs, ... }: {
|
||||||
|
imports = [ ./zsh.nix ./git.nix ./nvim.nix ];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = packageSets.everything;
|
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
|
# DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS
|
||||||
# OPTION IS APPROPRIATELY MIGRATED!!!
|
# OPTION IS APPROPRIATELY MIGRATED!!!
|
||||||
home.stateVersion = "23.05"; # did you read the comment?
|
home.stateVersion = "23.05"; # did you read the comment?
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ dotfiles, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
initExtra = ''
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
source ${dotfiles}/zsh/zshrc
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue