Compare commits
No commits in common. "65720489b501597a59b967c073f1bfeb78729140" and "fce74c64a96c3a451e41bcb3bc7836b8c35bb8e1" have entirely different histories.
65720489b5
...
fce74c64a9
11 changed files with 109 additions and 34 deletions
24
flake.lock
generated
24
flake.lock
generated
|
|
@ -144,15 +144,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1745251259,
|
"lastModified": 1744743431,
|
||||||
"narHash": "sha256-Hf8WEJMMoP6Fe+k+PYkVJFk5UKory2S0jW7HqRVqQFc=",
|
"narHash": "sha256-iyn/WBYDc7OtjSawbegINDe/gIkok888kQxk3aVnkgg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "82ee14ff60611b46588ea852f267aafcc117c8c8",
|
"rev": "c61bfe3ae692f42ce688b5865fac9e0de58e1387",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
|
"ref": "release-24.11",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -292,22 +293,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1744932701,
|
|
||||||
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
|
@ -321,7 +306,6 @@
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-full": "nixpkgs-full",
|
"nixpkgs-full": "nixpkgs-full",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,13 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11-small";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11-small";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
nixpkgs-full.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs-full.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
flake-utils = {
|
flake-utils = {
|
||||||
url = "github:numtide/flake-utils";
|
url = "github:numtide/flake-utils";
|
||||||
inputs.systems.follows = "systems";
|
inputs.systems.follows = "systems";
|
||||||
};
|
};
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager/release-24.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
|
|
||||||
|
|
@ -403,11 +403,11 @@ in
|
||||||
bindsym $mod+grave exec busctl --user call org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow lockAllDatabases && swaylock -c #fdf6e3
|
bindsym $mod+grave exec busctl --user call org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow lockAllDatabases && swaylock -c #fdf6e3
|
||||||
|
|
||||||
# class border backgr. text indicator child_border
|
# class border backgr. text indicator child_border
|
||||||
client.focused #${background} #${foreground} #${background} #${foreground} #${background}
|
client.focused #${bright6} #${foreground} #${background} #${bright5} #${regular4}
|
||||||
client.focused_inactive #${background} #${background} #${foreground} #${foreground} #${background}
|
client.focused_inactive #${regular0} #${regular0} #${foreground} #${bright5} #${regular0}
|
||||||
client.unfocused #${background} #${background} #${foreground} #${foreground} #${background}
|
client.unfocused #${regular0} #${background} #${bright2} #${bright5} #${regular0}
|
||||||
client.urgent #${background} #${background} #${foreground} #${foreground} #${background}
|
client.urgent #${bright1} #${bright0} #${regular4} #${background} #${bright0}
|
||||||
client.placeholder #${background} #${background} #${foreground} #${foreground} #${background}
|
client.placeholder #${background} #${bright2} #${foreground} #${background} #${bright2}
|
||||||
|
|
||||||
client.background #${foreground}
|
client.background #${foreground}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"ui.popup" = { modifiers=["reversed"] }
|
"ui.popup" = { modifiers=["reversed"] }
|
||||||
"ui.popup.info" = { modifiers=["reversed"] }
|
"ui.popup.info" = { modifiers=["reversed"] }
|
||||||
"ui.text.info" = { modifiers=["reversed"] }
|
"ui.text.info" = { modifiers=["reversed"] }
|
||||||
"ui.menu" = { bg="black", fg="white" }
|
"ui.menu" = { modifiers=["reversed"] }
|
||||||
"ui.menu.selected" = { bg="white", fg="black" }
|
"ui.menu.selected" = { bg="white", fg="black" }
|
||||||
"ui.window" = { bg="white" }
|
"ui.window" = { bg="white" }
|
||||||
"diagnostic" = { modifiers=["reversed"] }
|
"diagnostic" = { modifiers=["reversed"] }
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ in
|
||||||
|
|
||||||
preexec() { echo -n -e "\033]0;$1\007" }
|
preexec() { echo -n -e "\033]0;$1\007" }
|
||||||
|
|
||||||
PROMPT="%F{red}%?%f %F{green}%m%f:%F{blue}%~%f"$'\n'"╰─> "
|
PROMPT="%F{red}%?%f %F{green}%m%f:%F{blue}%~%f "
|
||||||
RPROMPT='$(git_super_status)'
|
RPROMPT='$(git_super_status)'
|
||||||
#NIX_BUILD_SHELL="${pkgs.zsh}/bin/zsh"
|
#NIX_BUILD_SHELL="${pkgs.zsh}/bin/zsh"
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ with pkgs; [
|
||||||
delta # feature-rich diff viewer
|
delta # feature-rich diff viewer
|
||||||
dig
|
dig
|
||||||
direnv
|
direnv
|
||||||
|
dstat
|
||||||
duf # disk usage
|
duf # disk usage
|
||||||
dune3d
|
|
||||||
dyff # diff tool for YAML
|
dyff # diff tool for YAML
|
||||||
element-desktop
|
element-desktop
|
||||||
evince
|
evince
|
||||||
|
|
@ -38,6 +38,7 @@ with pkgs; [
|
||||||
gimp
|
gimp
|
||||||
glow
|
glow
|
||||||
glow # render markdown
|
glow # render markdown
|
||||||
|
gnome.gnome-tweaks
|
||||||
gnumake
|
gnumake
|
||||||
gnupg
|
gnupg
|
||||||
gping # ping with graphs
|
gping # ping with graphs
|
||||||
|
|
@ -64,6 +65,7 @@ with pkgs; [
|
||||||
josm
|
josm
|
||||||
jq
|
jq
|
||||||
kanshi
|
kanshi
|
||||||
|
kcachegrind
|
||||||
keepassxc
|
keepassxc
|
||||||
kubetail
|
kubetail
|
||||||
krita
|
krita
|
||||||
|
|
@ -105,8 +107,12 @@ with pkgs; [
|
||||||
prusa-slicer
|
prusa-slicer
|
||||||
pv
|
pv
|
||||||
pwgen
|
pwgen
|
||||||
(python3.withPackages (pkgs: [pkgs.pandas pkgs.requests]))
|
(python3.withPackages (python-pkgs: with python-pkgs; [
|
||||||
|
pandas
|
||||||
|
requests
|
||||||
|
]))
|
||||||
ranger
|
ranger
|
||||||
|
recipemd
|
||||||
reptyr
|
reptyr
|
||||||
ripgrep
|
ripgrep
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
@ -138,6 +144,7 @@ with pkgs; [
|
||||||
wireshark
|
wireshark
|
||||||
xdg-utils
|
xdg-utils
|
||||||
xmlstarlet
|
xmlstarlet
|
||||||
|
xsv # cut for csv
|
||||||
unixtools.xxd
|
unixtools.xxd
|
||||||
xxh # portable shells
|
xxh # portable shells
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
, homepage
|
, homepage
|
||||||
, nixos-hardware
|
, nixos-hardware
|
||||||
, nixos-generators
|
, nixos-generators
|
||||||
, nixpkgs-unstable
|
|
||||||
, ...
|
, ...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
|
@ -26,7 +25,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
gorgon = nixosSystem rec {
|
gorgon = nixosSystem rec {
|
||||||
n_nixpkgs = nixpkgs-unstable;
|
n_nixpkgs = nixpkgs-full;
|
||||||
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config
|
{ config
|
||||||
|
, pkgs
|
||||||
, lib
|
, lib
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
@ -24,6 +25,11 @@ with lib; {
|
||||||
|
|
||||||
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||||
|
|
||||||
|
fonts.packages = mkDefault (with pkgs; [
|
||||||
|
source-code-pro
|
||||||
|
vegur
|
||||||
|
]);
|
||||||
|
|
||||||
users.mutableUsers = mkDefault true;
|
users.mutableUsers = mkDefault true;
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,8 @@ in
|
||||||
#linuxPackages.acpi_call
|
#linuxPackages.acpi_call
|
||||||
pam_u2f
|
pam_u2f
|
||||||
pamtester
|
pamtester
|
||||||
yubioath-flutter
|
yubikey-manager
|
||||||
|
yubikey-manager-qt
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
overlays.nix
21
overlays.nix
|
|
@ -1,2 +1,23 @@
|
||||||
{
|
{
|
||||||
|
kanboard = final: prev: {
|
||||||
|
kanboard = prev.kanboard.overrideAttrs (oldAttrs: {
|
||||||
|
src = prev.fetchFromGitHub {
|
||||||
|
owner = "kanboard";
|
||||||
|
repo = "kanboard";
|
||||||
|
rev = "v${oldAttrs.version}";
|
||||||
|
sha256 = "sha256-WG2lTPpRG9KQpRdb+cS7CqF4ZDV7JZ8XtNqAI6eVzm0=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
recipemd = final: prev: {
|
||||||
|
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
||||||
|
(
|
||||||
|
python-final: python-prev: {
|
||||||
|
recipemd = python-final.callPackage ./pkgs/recipemd.nix { };
|
||||||
|
}
|
||||||
|
)
|
||||||
|
];
|
||||||
|
recipemd = prev.python3Packages.toPythonApplication final.python3Packages.recipemd;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
58
pkgs/recipemd.nix
Normal file
58
pkgs/recipemd.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonPackages
|
||||||
|
, installShellFiles
|
||||||
|
, pythonOlder
|
||||||
|
, pythonAtLeast
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "recipemd";
|
||||||
|
version = "4.0.8";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7" || pythonAtLeast "4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "tstehr";
|
||||||
|
repo = "RecipeMD";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-eumV2zm7TIJcTPRtWSckYz7jiyH3Ek4nIAVtuJs3sJc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
|
dataclasses-json
|
||||||
|
yarl
|
||||||
|
CommonMark
|
||||||
|
argcomplete
|
||||||
|
pyparsing
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
${pythonPackages.argcomplete}/bin/register-python-argcomplete -s bash ${pname} > $out/completions.bash
|
||||||
|
installShellCompletion --bash --name recipemd.bash $out/completions.bash
|
||||||
|
|
||||||
|
${pythonPackages.argcomplete}/bin/register-python-argcomplete -s fish ${pname} > $out/completions.fish
|
||||||
|
installShellCompletion --fish --name recipemd.fish $out/completions.fish
|
||||||
|
|
||||||
|
# The version of argcomplete in nixpkgs-stable does not have support for zsh
|
||||||
|
#${pythonPackages.argcomplete}/bin/register-python-argcomplete -s zsh ${pname} > $out/completions.zsh
|
||||||
|
#installShellCompletion --zsh --name _recipemd $out/completions.zsh
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pythonPackages.pytestcov
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Markdown recipe manager, reference implementation of RecipeMD";
|
||||||
|
homepage = "https://recipemd.org";
|
||||||
|
license = [ licenses.lgpl3Only ];
|
||||||
|
maintainers = [ maintainers.dadada ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue