Install jujutsu, disable emacs, bat for pager
All checks were successful
/ check (push) Successful in 5m31s
All checks were successful
/ check (push) Successful in 5m31s
This commit is contained in:
parent
08f8e07f03
commit
5481cdb362
4 changed files with 49 additions and 45 deletions
|
@ -89,7 +89,7 @@
|
|||
forSystems = nixpkgs.lib.genAttrs systems;
|
||||
pkgsFor = system: (import nixpkgs {inherit system;}).extend overlays.default;
|
||||
genPkgs = func: (forSystems (system: func (pkgsFor system)));
|
||||
pkg = callee: overrides: genPkgs (pkgs: pkgs.callPackage callee overrides);
|
||||
# pkg = callee: overrides: genPkgs (pkgs: pkgs.callPackage callee overrides);
|
||||
|
||||
unstable = {
|
||||
forSystems = nixpkgs-unstable.lib.genAttrs systems;
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
emacs = {pkgs, ...}: {
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
/*
|
||||
extraConfig = ''
|
||||
'';
|
||||
|
@ -84,6 +84,7 @@
|
|||
bat
|
||||
homeManagerModules.helix
|
||||
git
|
||||
jujutsu
|
||||
zellij
|
||||
htop
|
||||
|
||||
|
@ -112,7 +113,7 @@
|
|||
|
||||
packages = with pkgs; [
|
||||
# tools I use when editing nix code
|
||||
kanidm
|
||||
# kanidm
|
||||
nil
|
||||
alejandra
|
||||
gnupg
|
||||
|
@ -132,7 +133,7 @@
|
|||
# https://github.com/lotabout/skim/issues/494
|
||||
enable = false;
|
||||
enableFishIntegration = true;
|
||||
defaultOptions = ["--no-clear-start" "--color=16"];
|
||||
defaultOptions = ["--no-clear-start" "--color=16" "--height=20"];
|
||||
};
|
||||
|
||||
programs.atuin = {
|
||||
|
@ -362,6 +363,18 @@
|
|||
};
|
||||
};
|
||||
|
||||
jujutsu = {...}: {
|
||||
programs.jujutsu = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
email = "daniel@lyte.dev";
|
||||
name = "Daniel Flanagan";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
git = {lib, ...}: let
|
||||
email = lib.mkDefault "daniel@lyte.dev";
|
||||
in {
|
||||
|
|
|
@ -107,8 +107,6 @@
|
|||
environment = {
|
||||
variables = {
|
||||
VISUAL = "hx";
|
||||
PAGER = "less";
|
||||
MANPAGER = "less";
|
||||
};
|
||||
|
||||
systemPackages = with pkgs; [
|
||||
|
@ -197,22 +195,9 @@
|
|||
};
|
||||
};
|
||||
|
||||
less-pager = {pkgs, ...}: {
|
||||
environment = {
|
||||
systemPackages = [
|
||||
pkgs.less
|
||||
];
|
||||
variables = {
|
||||
PAGER = "less";
|
||||
MANPAGER = "less";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
helix-text-editor = {pkgs, ...}: {
|
||||
environment = {
|
||||
systemPackages = [
|
||||
pkgs.less
|
||||
helix.packages.${pkgs.system}.helix
|
||||
];
|
||||
variables = {
|
||||
|
@ -252,30 +237,36 @@
|
|||
|
||||
my-favorite-default-system-apps = {pkgs, ...}: {
|
||||
imports = with nixosModules; [
|
||||
less-pager
|
||||
helix-text-editor
|
||||
zellij-multiplexer
|
||||
fish-shell
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl
|
||||
dua
|
||||
eza # TODO: needs shell aliases
|
||||
fd
|
||||
file
|
||||
iputils
|
||||
nettools
|
||||
/*
|
||||
nodePackages.bash-language-server # just pull in as needed?
|
||||
shellcheck
|
||||
shfmt
|
||||
*/
|
||||
killall
|
||||
ripgrep
|
||||
rsync
|
||||
sd
|
||||
];
|
||||
environment = {
|
||||
variables = {
|
||||
PAGER = "bat --style=plain";
|
||||
MANPAGER = "bat --style=plain";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
curl
|
||||
dua
|
||||
bat
|
||||
eza
|
||||
fd
|
||||
file
|
||||
iputils
|
||||
nettools
|
||||
/*
|
||||
nodePackages.bash-language-server # just pull in as needed?
|
||||
shellcheck
|
||||
shfmt
|
||||
*/
|
||||
killall
|
||||
ripgrep
|
||||
rsync
|
||||
sd
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
traceroute.enable = true;
|
||||
|
@ -462,7 +453,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
development-tools = {pkgs, ...}: {
|
||||
development-tools = {
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = with nixosModules; [
|
||||
postgres
|
||||
podman
|
||||
|
@ -543,7 +538,7 @@
|
|||
};
|
||||
|
||||
programs.jujutsu = {
|
||||
enable = false; # disabling for now due to CVE
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
programs.k9s = {
|
||||
|
|
|
@ -20,16 +20,12 @@
|
|||
src = ./.;
|
||||
hooks = {
|
||||
alejandra.enable = true;
|
||||
# NOTE: These do not work well with `nix flake check` due to pure environments
|
||||
# https://github.com/cachix/git-hooks.nix/issues/452
|
||||
/*
|
||||
cargo-check.enable = true;
|
||||
clippy = {
|
||||
enable = true;
|
||||
packageOverrides.cargo = pkgs.cargo;
|
||||
packageOverrides.clippy = pkgs.rustPackages.clippy;
|
||||
};
|
||||
*/
|
||||
rustfmt = {
|
||||
enable = true;
|
||||
packageOverrides.rustfmt = pkgs.rustfmt;
|
||||
|
@ -40,7 +36,7 @@
|
|||
|
||||
packages = genPkgs (pkgs: {
|
||||
my-package = pkgs.rustPlatform.buildRustPackage {
|
||||
pname = "kodotag";
|
||||
pname = "my-package";
|
||||
version = "0.1.0";
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue