Formatting

This commit is contained in:
Patrick Großmann 2023-01-21 17:46:50 +01:00
parent 52f703ac70
commit 6423921275
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
5 changed files with 104 additions and 101 deletions

View file

@ -21,7 +21,7 @@
networking.hostId = "68438432"; networking.hostId = "68438432";
# Pick only one of the below networking options. # Pick only one of the below networking options.
networking.wireless.iwd.enable = true; networking.wireless.iwd.enable = true;
# I would advise against pushing your secrets # I would advise against pushing your secrets
#system.activationScripts.getIWD.text = '' #system.activationScripts.getIWD.text = ''
# cp -r /etc/nixos/iwd /var/lib/ # cp -r /etc/nixos/iwd /var/lib/
#''; #'';

View file

@ -1,71 +1,92 @@
{ config, pkgs, ...} :
{ {
config,
pkgs,
...
}: {
programs.fzf.enable = true;
programs.fzf.enable = true; home.packages = with pkgs; [
sqlite
bat
ripgrep
];
home.packages = with pkgs; [ programs.gpg = {
sqlite enable = true;
bat scdaemonSettings.disable-ccid = true;
ripgrep publicKeys = [
]; {
source = ../../data/pubkey.gpg;
trust = 5;
}
{
source = ../../data/newpubkey.gpg;
trust = 5;
}
];
};
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
withNodeJs = true;
};
programs.gpg = { xdg.configFile.nvim = {
enable = true; recursive = true;
scdaemonSettings.disable-ccid = true; source = ../../data/nvim;
publicKeys = [ };
{ source = ../../data/pubkey.gpg; programs.git.enable = true;
trust = 5; services.gpg-agent = {
} enable = true;
{ source = ../../data/newpubkey.gpg; enableSshSupport = true;
trust = 5; };
}
];
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
programs.git.signing = { programs.git.signing = {
key = null; key = null;
signByDefault = true; signByDefault = true;
}; };
programs.zsh = { programs.zsh = {
enable = true; enable = true;
initExtra = builtins.readFile ../../data/zshrc; initExtra = builtins.readFile ../../data/zshrc;
plugins = [ plugins = [
{ name = "powerlevel10k"; {
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
} src = pkgs.zsh-powerlevel10k;
{ name = "fzf-tab"; }
file = "share/fzf-tab/fzf-tab.plugin.zsh"; {
src = pkgs.zsh-fzf-tab; name = "fzf-tab";
} file = "share/fzf-tab/fzf-tab.plugin.zsh";
{ name = "fast-syntax-highlighting"; src = pkgs.zsh-fzf-tab;
file = "share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh"; }
src = pkgs.zsh-fast-syntax-highlighting; {
} name = "fast-syntax-highlighting";
{ name = "zsh-histdb"; file = "share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh";
file = "sqlite-history.zsh"; src = pkgs.zsh-fast-syntax-highlighting;
src = pkgs.fetchFromGitHub { }
owner = "larkery"; {
repo = "zsh-histdb"; name = "zsh-histdb";
rev = "30797f0"; file = "sqlite-history.zsh";
sha256 = "PQIFF8kz+baqmZWiSr+wc4EleZ/KD8Y+lxW2NT35/bg="; src = pkgs.fetchFromGitHub {
}; owner = "larkery";
} repo = "zsh-histdb";
#{ name = "zsh-histdb-skim"; rev = "30797f0";
# file = "zsh-histdb-skim.zsh"; sha256 = "PQIFF8kz+baqmZWiSr+wc4EleZ/KD8Y+lxW2NT35/bg=";
# src = pkgs.fetchFromGitHub { };
# owner = "m42e"; }
# repo = "zsh-histdb-skim"; #{ name = "zsh-histdb-skim";
# rev = "v0.8.1"; # file = "zsh-histdb-skim.zsh";
# sha256 = "pcXSGjOKhN2nrRErggb8JAjw/3/bvTy1rvFhClta1Vs="; # src = pkgs.fetchFromGitHub {
# }; # owner = "m42e";
#} # repo = "zsh-histdb-skim";
]; # rev = "v0.8.1";
# sha256 = "pcXSGjOKhN2nrRErggb8JAjw/3/bvTy1rvFhClta1Vs=";
}; # };
#}
];
};
} }

View file

@ -1,11 +1,12 @@
{ {
config, config,
pkgs, pkgs,
...}: ...
{ }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
zathura zathura
pinentry pinentry
arandr arandr
]; feh
} ];
}

View file

@ -10,13 +10,7 @@ in {
]; ];
home-manager.users.patrick.imports = [./patrick.nix]; home-manager.users.patrick.imports = [./patrick.nix];
home-manager.users.root = { home-manager.users.root = {
imports = [ ./common ]; imports = [./common];
programs.neovim.enable = true;
programs.git.enable = true;
xdg.configFile.nvim = {
recursive = true;
source = ../data/nvim;
};
home.stateVersion = "23.05"; home.stateVersion = "23.05";
}; };
} }

View file

@ -12,25 +12,12 @@
]; ];
}; };
imports = [ imports = [
common/kitty.nix common/kitty.nix
common/herbstluftwm.nix common/herbstluftwm.nix
common/desktop.nix common/desktop.nix
./common ]; ./common
];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
xsession.enable = true; xsession.enable = true;
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
#withNodes = true;
};
programs.git.enable = true;
programs.zsh.enable = true;
xdg.configFile.nvim = {
recursive = true;
source = ../data/nvim;
};
} }