litten: Add jmespath to ansible build inputs, and minor syntax changes for NixOS 24.11

This commit is contained in:
Brian Lee 2024-12-05 09:15:42 -08:00
parent 632f85b58d
commit 0e0a18c078

View File

@ -22,6 +22,13 @@ in
"zoom"
];
};
nixpkgs.overlays = [
(self: super: {
ansible = super.ansible.overrideAttrs (oldAttrs: {
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ super.python312Packages.jmespath ];
}); # Add jmespath to ansible build inputs
})
];
boot = {
loader = {
@ -34,7 +41,7 @@ in
bluetooth.enable = true;
keyboard.qmk.enable = true;
opengl = { # https://wiki.nixos.org/wiki/Accelerated_Video_Playback
graphics = { # https://wiki.nixos.org/wiki/Accelerated_Video_Playback
enable = true;
extraPackages = with pkgs; [
intel-media-driver
@ -89,7 +96,7 @@ in
isNormalUser = true;
extraGroups = [
"wheel"
# "docker"
"docker"
"glance"
];
packages = with pkgs; [
@ -132,10 +139,10 @@ in
packer
terraform
ansible
python311 # Not working in 3.12 yet: openwebui
python311
python311Packages.pip
python311Packages.ipython
python311Packages.jmespath # for Ansible playbooks with json_query (grafana, caddy)
# python311Packages.jmespath # for Ansible playbooks with json_query (grafana, caddy)
libreoffice-qt
hunspell
hunspellDicts.uk_UA
@ -245,7 +252,10 @@ in
# };
fish.enable = true;
vim.defaultEditor = true;
vim = {
enable = true;
defaultEditor = true;
};
bash = {
shellAliases = {
ll = "ls -lAF --classify --group-directories-first";
@ -461,17 +471,17 @@ in
};
# virtualisation.docker = {
# enable = true;
# rootless = {
# enable = true;
# setSocketVariable = true;
# };
# autoPrune = {
# enable = true;
# dates = "monthly";
# };
# };
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
autoPrune = {
enable = true;
dates = "monthly";
};
};
system.stateVersion = "23.05";
}