revamp of nix organization
This commit is contained in:
parent
01a48ac956
commit
4a4014bf59
20 changed files with 369 additions and 129 deletions
58
nix/home/universal.nix
Normal file
58
nix/home/universal.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
git-plan = pkgs.rustPlatform.buildRustPackage rec {
|
||||
name = "git-plan";
|
||||
version = "1";
|
||||
src = pkgs.fetchFromGitLab {
|
||||
owner = "haaksmash";
|
||||
repo = "git-plan";
|
||||
rev = "518dcf15f3a46605f18569dd69b3b63d763e9439";
|
||||
sha256 = "06gh3v35bdr0qsp459183br4hpmwm36d2r9fjyx9j5jfpzggqg51";
|
||||
};
|
||||
|
||||
cargoSha256 = "17lr4pc2fjcgvx0p4vpkwx3mg9jadb4lygbwri0blmnkqql8xlh3";
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = [ pkgs.openssl ] ++ (if pkgs.stdenv.isDarwin then [ pkgs.libiconv pkgs.darwin.apple_sdk.frameworks.Security ] else []);
|
||||
};
|
||||
|
||||
defaultPkgs = with pkgs; [
|
||||
git-plan
|
||||
jq
|
||||
nnn
|
||||
tree
|
||||
ripgrep
|
||||
zsh-autosuggestions
|
||||
zsh-history-substring-search
|
||||
zsh-syntax-highlighting
|
||||
];
|
||||
in with builtins;
|
||||
{
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
# no need for home-manager news, thanks
|
||||
news.display = "silent";
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
imports = [
|
||||
(import ./programs/direnv)
|
||||
(import ./programs/git)
|
||||
(import ./programs/zsh)
|
||||
(import ./programs/tmux)
|
||||
(import ./programs/nvim)
|
||||
];
|
||||
|
||||
programs.htop = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
defaultCommand = "rg --no-ignore --follow --files --hidden --smart-case --glob \\\"!.git/*\\\"";
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue