Install jujutsu, disable emacs, bat for pager
All checks were successful
/ check (push) Successful in 5m31s

This commit is contained in:
Daniel Flanagan 2024-12-16 10:44:00 -06:00
parent 08f8e07f03
commit 5481cdb362
4 changed files with 49 additions and 45 deletions

View file

@ -89,7 +89,7 @@
forSystems = nixpkgs.lib.genAttrs systems; forSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = system: (import nixpkgs {inherit system;}).extend overlays.default; pkgsFor = system: (import nixpkgs {inherit system;}).extend overlays.default;
genPkgs = func: (forSystems (system: func (pkgsFor system))); 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 = { unstable = {
forSystems = nixpkgs-unstable.lib.genAttrs systems; forSystems = nixpkgs-unstable.lib.genAttrs systems;

View file

@ -39,7 +39,7 @@
emacs = {pkgs, ...}: { emacs = {pkgs, ...}: {
programs.emacs = { programs.emacs = {
enable = true; enable = false;
/* /*
extraConfig = '' extraConfig = ''
''; '';
@ -84,6 +84,7 @@
bat bat
homeManagerModules.helix homeManagerModules.helix
git git
jujutsu
zellij zellij
htop htop
@ -112,7 +113,7 @@
packages = with pkgs; [ packages = with pkgs; [
# tools I use when editing nix code # tools I use when editing nix code
kanidm # kanidm
nil nil
alejandra alejandra
gnupg gnupg
@ -132,7 +133,7 @@
# https://github.com/lotabout/skim/issues/494 # https://github.com/lotabout/skim/issues/494
enable = false; enable = false;
enableFishIntegration = true; enableFishIntegration = true;
defaultOptions = ["--no-clear-start" "--color=16"]; defaultOptions = ["--no-clear-start" "--color=16" "--height=20"];
}; };
programs.atuin = { programs.atuin = {
@ -362,6 +363,18 @@
}; };
}; };
jujutsu = {...}: {
programs.jujutsu = {
enable = true;
settings = {
user = {
email = "daniel@lyte.dev";
name = "Daniel Flanagan";
};
};
};
};
git = {lib, ...}: let git = {lib, ...}: let
email = lib.mkDefault "daniel@lyte.dev"; email = lib.mkDefault "daniel@lyte.dev";
in { in {

View file

@ -107,8 +107,6 @@
environment = { environment = {
variables = { variables = {
VISUAL = "hx"; VISUAL = "hx";
PAGER = "less";
MANPAGER = "less";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
@ -197,22 +195,9 @@
}; };
}; };
less-pager = {pkgs, ...}: {
environment = {
systemPackages = [
pkgs.less
];
variables = {
PAGER = "less";
MANPAGER = "less";
};
};
};
helix-text-editor = {pkgs, ...}: { helix-text-editor = {pkgs, ...}: {
environment = { environment = {
systemPackages = [ systemPackages = [
pkgs.less
helix.packages.${pkgs.system}.helix helix.packages.${pkgs.system}.helix
]; ];
variables = { variables = {
@ -252,30 +237,36 @@
my-favorite-default-system-apps = {pkgs, ...}: { my-favorite-default-system-apps = {pkgs, ...}: {
imports = with nixosModules; [ imports = with nixosModules; [
less-pager
helix-text-editor helix-text-editor
zellij-multiplexer zellij-multiplexer
fish-shell fish-shell
]; ];
environment.systemPackages = with pkgs; [ environment = {
curl variables = {
dua PAGER = "bat --style=plain";
eza # TODO: needs shell aliases MANPAGER = "bat --style=plain";
fd };
file systemPackages = with pkgs; [
iputils curl
nettools dua
/* bat
nodePackages.bash-language-server # just pull in as needed? eza
shellcheck fd
shfmt file
*/ iputils
killall nettools
ripgrep /*
rsync nodePackages.bash-language-server # just pull in as needed?
sd shellcheck
]; shfmt
*/
killall
ripgrep
rsync
sd
];
};
programs = { programs = {
traceroute.enable = true; traceroute.enable = true;
@ -462,7 +453,11 @@
}; };
}; };
development-tools = {pkgs, ...}: { development-tools = {
pkgs,
lib,
...
}: {
imports = with nixosModules; [ imports = with nixosModules; [
postgres postgres
podman podman
@ -543,7 +538,7 @@
}; };
programs.jujutsu = { programs.jujutsu = {
enable = false; # disabling for now due to CVE enable = lib.mkDefault true;
}; };
programs.k9s = { programs.k9s = {

View file

@ -20,16 +20,12 @@
src = ./.; src = ./.;
hooks = { hooks = {
alejandra.enable = true; 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; cargo-check.enable = true;
clippy = { clippy = {
enable = true; enable = true;
packageOverrides.cargo = pkgs.cargo; packageOverrides.cargo = pkgs.cargo;
packageOverrides.clippy = pkgs.rustPackages.clippy; packageOverrides.clippy = pkgs.rustPackages.clippy;
}; };
*/
rustfmt = { rustfmt = {
enable = true; enable = true;
packageOverrides.rustfmt = pkgs.rustfmt; packageOverrides.rustfmt = pkgs.rustfmt;
@ -40,7 +36,7 @@
packages = genPkgs (pkgs: { packages = genPkgs (pkgs: {
my-package = pkgs.rustPlatform.buildRustPackage { my-package = pkgs.rustPlatform.buildRustPackage {
pname = "kodotag"; pname = "my-package";
version = "0.1.0"; version = "0.1.0";
/* /*