mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
5 commits
4230e24e65
...
a4f8657489
Author | SHA1 | Date | |
---|---|---|---|
|
a4f8657489 | ||
|
9b82c68138 | ||
|
3afd67e5cd | ||
|
849c0fef38 | ||
|
3530a88e81 |
6 changed files with 70 additions and 28 deletions
Binary file not shown.
|
@ -8,7 +8,6 @@ let
|
|||
libtool
|
||||
patchelf
|
||||
pcre
|
||||
pinentry
|
||||
pkg-config
|
||||
];
|
||||
|
||||
|
@ -22,7 +21,6 @@ let
|
|||
ffmpeg
|
||||
fzf
|
||||
gh
|
||||
# git # already managed by home-manager
|
||||
git-crypt
|
||||
gitui
|
||||
gnupg
|
||||
|
@ -30,7 +28,6 @@ let
|
|||
kubectl
|
||||
kubelogin-oidc
|
||||
mosh
|
||||
neovim
|
||||
nixpkgs-fmt
|
||||
ripgrep
|
||||
sops
|
||||
|
@ -70,8 +67,6 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
imports = [];
|
||||
|
||||
# Absolutely proprietary.
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
@ -95,36 +90,18 @@ 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
|
||||
file.".npmrc".text = ''
|
||||
prefix = ''${HOME}/.npm-packages
|
||||
'';
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
# 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?
|
||||
|
@ -151,6 +128,7 @@ in
|
|||
"croc"
|
||||
"ddev"
|
||||
"mkcert"
|
||||
"pinentry-mac"
|
||||
"pkg-config"
|
||||
"sdl2"
|
||||
];
|
||||
|
|
20
nix/hosts/alymac/git.nix
Normal file
20
nix/hosts/alymac/git.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, 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;
|
||||
}
|
31
nix/hosts/alymac/nvim.nix
Normal file
31
nix/hosts/alymac/nvim.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, dotfiles, ... }:
|
||||
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim-unwrapped;
|
||||
|
||||
extraConfig = "source ${dotfiles}/nvim/init.vim";
|
||||
|
||||
coc = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
languageserver = {
|
||||
nix = {
|
||||
command = "nil";
|
||||
filetypes = [ "nix" ];
|
||||
rootPatterns = [ "flake.nix" ];
|
||||
"settings.nil" = {
|
||||
"formatting.command" = ["nixpkgs-fmt"];
|
||||
};
|
||||
};
|
||||
"go.goPlsOptions" = {
|
||||
completion = true;
|
||||
completeUnimported = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
13
nix/hosts/alymac/zsh.nix
Normal file
13
nix/hosts/alymac/zsh.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ dotfiles, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
initExtra = ''
|
||||
export GPG_TTY=$(tty)
|
||||
source ${dotfiles}/zsh/zshrc
|
||||
|
||||
export PATH="$PATH:$HOME/.npm-packages/bin"
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue