Compare commits
No commits in common. "8027f6d8fed5bfeb51049e147b99fbaaafeefddf" and "e6a8bbf95b76b1f5820a39b227d492eba5760b34" have entirely different histories.
8027f6d8fe
...
e6a8bbf95b
26
externals/packages/avarice/default.nix
vendored
Normal file
26
externals/packages/avarice/default.nix
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, stdenv, fetchurl, perl, libbfd, libusb-compat-0_1, hidapi }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "avarice";
|
||||
version = "2.14";
|
||||
src = fetchurl {
|
||||
url =
|
||||
"mirror://sourceforge/project/avarice/avarice/avarice-${version}/avarice-${version}.tar.bz2";
|
||||
sha256 = "1ab2pxnkbw501iv1i9z9nj7hfzz4y7hid4l4q58cifm3aw17skjb";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
buildInputs = [ libbfd libusb-compat-0_1 hidapi ];
|
||||
prePatch = ''
|
||||
find src -type f -name '*.cc' -exec sed -i "s@ __unused@@g" {} \;
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://avarice.sourceforge.net/";
|
||||
description =
|
||||
"A program to facilitate AVR debugging using an Atmel or AVR ICE";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.artemist ];
|
||||
};
|
||||
}
|
1
externals/packages/dptx-dummy/.gitignore
vendored
Normal file
1
externals/packages/dptx-dummy/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.cmd
|
26
externals/packages/dptx-dummy/default.nix
vendored
Normal file
26
externals/packages/dptx-dummy/default.nix
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv, lib, kernel }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dptx-dummy";
|
||||
version = "0.1";
|
||||
src = ./src;
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
setSourceRoot = ''
|
||||
export sourceRoot=$(pwd)/src;
|
||||
'';
|
||||
makeFlags = [
|
||||
"-C"
|
||||
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"M=$(sourceRoot)"
|
||||
];
|
||||
buildFlags = [ "modules" ];
|
||||
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
|
||||
installTargets = [ "modules_install" ];
|
||||
meta = with lib; {
|
||||
description = "Dummy module that requires rockchip/dptx.bin";
|
||||
homepage = "https://artem.ist";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.artemist ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
1
externals/packages/dptx-dummy/src/Makefile
vendored
Normal file
1
externals/packages/dptx-dummy/src/Makefile
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
obj-m := dptx-dummy.o
|
6
externals/packages/dptx-dummy/src/dptx-dummy.c
vendored
Normal file
6
externals/packages/dptx-dummy/src/dptx-dummy.c
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <linux/module.h>
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Artemis Tosini <me@artem.ist>");
|
||||
MODULE_DESCRIPTION("Dummy module that requires rockchip/dptx.bin");
|
||||
MODULE_FIRMWARE("rockchip/dptx.bin");
|
24
externals/packages/fujproj/default.nix
vendored
Normal file
24
externals/packages/fujproj/default.nix
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libusb1, libftdi1 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fujprog";
|
||||
version = "4.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kost";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "08kzkzd5a1wfd1aycywdynxh3qy6n7z9i8lihkahmb4xac3chmz5";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ libftdi1 libusb1 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "FPGA JTAG programmer for ULX2/3S boards";
|
||||
homepage = "https://github.com/kost/fujprog";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ artemist ];
|
||||
};
|
||||
}
|
72
externals/packages/hll2300d/default.nix
vendored
Normal file
72
externals/packages/hll2300d/default.nix
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
{ stdenv, lib, fetchurl, cups, dpkg, gnused, makeWrapper, ghostscript, file
|
||||
, a2ps, coreutils, gawk, perl, gnugrep, which }:
|
||||
let
|
||||
version = "3.2.0-1";
|
||||
lprdeb = fetchurl {
|
||||
url =
|
||||
"https://download.brother.com/welcome/dlf101900/hll2300dlpr-${version}.i386.deb";
|
||||
sha256 = "093ya7qykhk8mnbiwz1wy0qly66mmk0ghd1rgla25biask5nnmwv";
|
||||
};
|
||||
|
||||
cupsdeb = fetchurl {
|
||||
url =
|
||||
"https://download.brother.com/welcome/dlf101901/hll2300dcupswrapper-${version}.i386.deb";
|
||||
sha256 = "1fylsbnxbljh517lbdr3324jsi4fwhbfh6gzrdvifg0wl20vfwqr";
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "cups-brother-hll2300dw";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ cups ghostscript dpkg a2ps ];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
dpkg-deb -x ${cupsdeb} $out
|
||||
dpkg-deb -x ${lprdeb} $out
|
||||
|
||||
substituteInPlace $out/opt/brother/Printers/HLL2300D/lpd/filter_HLL2300D \
|
||||
--replace /opt "$out/opt" \
|
||||
--replace /usr/bin/perl ${perl}/bin/perl \
|
||||
--replace "BR_PRT_PATH =~" "BR_PRT_PATH = \"$out/opt/brother/Printers/HLL2300D/\"; #" \
|
||||
--replace "PRINTER =~" "PRINTER = \"HLL2300D\"; #"
|
||||
|
||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||
$out/opt/brother/Printers/HLL2300D/lpd/brprintconflsr3
|
||||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||
$out/opt/brother/Printers/HLL2300D/lpd/rawtobr3
|
||||
|
||||
for f in \
|
||||
$out/opt/brother/Printers/HLL2300D/cupswrapper/brother_lpdwrapper_HLL2300D \
|
||||
$out/opt/brother/Printers/HLL2300D/cupswrapper/paperconfigml1 \
|
||||
; do
|
||||
wrapProgram $f \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [ coreutils ghostscript gnugrep gnused ]
|
||||
}
|
||||
done
|
||||
|
||||
mkdir -p $out/lib/cups/filter/
|
||||
ln -s $out/opt/brother/Printers/HLL2300D/lpd/filter_HLL2300D $out/lib/cups/filter/brother_lpdwrapper_HLL2300D
|
||||
|
||||
mkdir -p $out/share/cups/model
|
||||
ln -s $out/opt/brother/Printers/HLL2300D/cupswrapper/brother-HLL2300D-cups-en.ppd $out/share/cups/model/
|
||||
|
||||
wrapProgram $out/opt/brother/Printers/HLL2300D/lpd/filter_HLL2300D \
|
||||
--prefix PATH ":" ${
|
||||
lib.makeBinPath [ ghostscript a2ps file gnused gnugrep coreutils which ]
|
||||
}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.brother.com/";
|
||||
description = "Brother hl-l2300dw printer driver";
|
||||
license = licenses.unfree;
|
||||
platforms = platforms.linux;
|
||||
downloadPage =
|
||||
"https://support.brother.com/g/b/downloadlist.aspx?c=de&lang=de&prod=hll2300d_us_eu_as&os=128&flang=English";
|
||||
maintainers = [ maintainers.artemist ];
|
||||
};
|
||||
}
|
2
externals/packages/jlink/version.json
vendored
2
externals/packages/jlink/version.json
vendored
|
@ -1 +1 @@
|
|||
{"x86_64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792m_x86_64.tgz", "version": "7.92m", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-BuLwiszQfdQJdTdMUbOqflYG4zU3HHMDf+JejvIQkps="}, "i686-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792m_i686.tgz", "version": "7.92m", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-QOdjOlBGqKKuOzYpKE2p6P1mBimXzxE2oKB0iWbp440="}, "armv7l-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792m_arm.tgz", "version": "7.92m", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-KUpP6aNh7e3HA/X3Mov3nz3didcKMUaIAaFA5cYd2Kg="}, "aarch64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792m_arm64.tgz", "version": "7.92m", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-hF3cBCRDRwvVudafOFFdD0pEIjoYWjiJtVz7vgtclx8="}}
|
||||
{"x86_64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792d_x86_64.tgz", "version": "7.92d", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-G46nq135PAp4xYu1BJEtgZ1bF+n2DsaHPMmbOXHdvgY="}, "i686-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792d_i686.tgz", "version": "7.92d", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-Neh1ifv3l3mpmxFvH4FEj5T6bnn5LuafRO9CVtA0fww="}, "armv7l-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792d_arm.tgz", "version": "7.92d", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-Lp3ffshRbB5dzgei4dyxlH5iyDTrDwR/yNq4NigVajg="}, "aarch64-linux": {"url": "https://www.segger.com/downloads/jlink/JLink_Linux_V792d_arm64.tgz", "version": "7.92d", "curlOpts": "-d accept_license_agreement=accepted -d submit=Download+software", "hash": "sha256-XacF5u7LF1a50eYJ5czUIQ+bjbmfZXu3XjxrWZwPPNw="}}
|
33
externals/packages/weechat-matrix-rs/default.nix
vendored
Normal file
33
externals/packages/weechat-matrix-rs/default.nix
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, cmake, openssl
|
||||
, llvmPackages, weechat }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "weechat-matrix-rs";
|
||||
version = "20210530";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "poljar";
|
||||
repo = pname;
|
||||
rev = "a846e76b7abf9b70fbcbf955255f99fde185b9cb";
|
||||
sha256 = "1gx5vxc8391i8cr6d8r6gwywypl0zn3d1xjydg6y6228qcxl3vmm";
|
||||
};
|
||||
|
||||
cargoSha256 = "0ikarh474dmbbmg6nz24fap6dqgxg0hy2kp3jpknaz8rgdvjsvjb";
|
||||
|
||||
WEECHAT_PLUGIN_FILE = "${weechat}/include/weechat/weechat-plugin.h";
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||
nativeBuildInputs = [ pkg-config cmake llvmPackages.clang ];
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
preFixup = ''
|
||||
mkdir -p $out/lib/weechat/plugins
|
||||
mv $out/lib/libmatrix.so $out/lib/weechat/plugins/matrix.so
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rust rewrite of the python weechat-matrix script.";
|
||||
homepage = "https://github.com/poljar/weechat-matrix-rs";
|
||||
license = licenses.mit;
|
||||
matinainers = [ maintainers.artemist ];
|
||||
};
|
||||
}
|
65
flake.lock
65
flake.lock
|
@ -201,11 +201,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1698250431,
|
||||
"narHash": "sha256-qs2gTeH4wpnWPO6Oi6sOhp2IhG0i0DzcnrJxIY3/CP8=",
|
||||
"lastModified": 1695550077,
|
||||
"narHash": "sha256-xoxR/iY69/3lTnnZDP6gf3J46DUKPcf+Y1jH03tfZXE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "09587fbbc6a669f7725613e044c2577dc5d43ab5",
|
||||
"rev": "a88df2fb101778bfd98a17556b3a2618c6c66091",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -243,33 +243,13 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-index-database": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1697946153,
|
||||
"narHash": "sha256-7k7qIwWLaYPgQ4fxmEdew3yCffhK6rM4I4Jo3X/79DA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "5a2006282caaf32663cdcd582c5b18809c7d7d8d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1698053470,
|
||||
"narHash": "sha256-sP8D/41UiwC2qn0X40oi+DfuVzNHMROqIWdSdCI/AYA=",
|
||||
"lastModified": 1695541019,
|
||||
"narHash": "sha256-rs++zfk41K9ArWkDAlmBDlGlKO8qeRIRzdjo+9SmNFI=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "80d98a7d55c6e27954a166cb583a41325e9512d7",
|
||||
"rev": "61283b30d11f27d5b76439d43f20d0c0c8ff5296",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -280,11 +260,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1698134075,
|
||||
"narHash": "sha256-foCD+nuKzfh49bIoiCBur4+Fx1nozo+4C/6k8BYk4sg=",
|
||||
"lastModified": 1695360818,
|
||||
"narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8efd5d1e283604f75a808a20e6cde0ef313d07d4",
|
||||
"rev": "e35dcc04a3853da485a396bdd332217d0ac9054f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -338,11 +318,11 @@
|
|||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1698386104,
|
||||
"narHash": "sha256-/QwUn8G1ERjl82RFFTTI/2ulOTV9Mbeog97old9tZl0=",
|
||||
"lastModified": 1695300485,
|
||||
"narHash": "sha256-lPxXM584q9AVdUZxbEJgIPVeg39X6GWIENuENRxyHqo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "315bc508ee0bfb62b6608f8f445126158ca2cc35",
|
||||
"rev": "32a64af2318beac3c89d4d1fa0b73ce237c5cf1e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -390,11 +370,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1698227354,
|
||||
"narHash": "sha256-Fi5H9jbaQLmLw9qBi/mkR33CoFjNbobo5xWdX4tKz1Q=",
|
||||
"lastModified": 1694364351,
|
||||
"narHash": "sha256-oadhSCqopYXxURwIA6/Anpe5IAG11q2LhvTJNP5zE6o=",
|
||||
"owner": "cachix",
|
||||
"repo": "pre-commit-hooks.nix",
|
||||
"rev": "bd38df3d508dfcdff52cd243d297f218ed2257bf",
|
||||
"rev": "4f883a76282bc28eb952570afc3d8a1bf6f481d7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -436,11 +416,11 @@
|
|||
},
|
||||
"private": {
|
||||
"locked": {
|
||||
"lastModified": 1696997284,
|
||||
"narHash": "sha256-4Gh4M1kKThixZNc8Nm0oxm+tqkpaqM+lslr0UT2SS0o=",
|
||||
"lastModified": 1692761801,
|
||||
"narHash": "sha256-+mYwFUA7H5FG1uAst2CBuj+FFKQ7+u9N4KbBerFvVsA=",
|
||||
"ref": "unified",
|
||||
"rev": "2dd16f02cfdba921cef8655879a0d59af2a89604",
|
||||
"revCount": 33,
|
||||
"rev": "2e75302ff38830fdebecaa24ee0debebb9fab3d8",
|
||||
"revCount": 32,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/artemist/nixos-config-private"
|
||||
},
|
||||
|
@ -455,7 +435,6 @@
|
|||
"fonts": "fonts",
|
||||
"home-manager": "home-manager",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixvim": "nixvim",
|
||||
|
@ -500,11 +479,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1696963281,
|
||||
"narHash": "sha256-gwLI5QDyw7Jj2d+W5t6UJOuHCTuCmm1B25UlO3eNvUQ=",
|
||||
"lastModified": 1695603143,
|
||||
"narHash": "sha256-7iR+IWQcKdRwazFQSM5RxfvXihN1jILVN7jx2QObG2g=",
|
||||
"owner": "mildlyfunctionalgays",
|
||||
"repo": "rustybar",
|
||||
"rev": "73886c37da6d3db8791fb6ed60dd370b5f3c8c5f",
|
||||
"rev": "ea274f26c9fc3a1adc88b9b80dd67f35330f65a3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
19
flake.nix
19
flake.nix
|
@ -22,10 +22,6 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.flake-utils.follows = "utils";
|
||||
};
|
||||
nix-index-database = {
|
||||
url = "github:nix-community/nix-index-database";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
rustybar = {
|
||||
url = "github:mildlyfunctionalgays/rustybar";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -71,18 +67,7 @@
|
|||
modules = [ ./system/mistmane ];
|
||||
};
|
||||
} // utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
formatter = pkgs.nixfmt;
|
||||
packages = {
|
||||
jlink = pkgs.callPackage ./externals/packages/jlink { };
|
||||
nvim = inputs.nixvim.legacyPackages."${system}".makeNixvim
|
||||
(import ./sets/nvim.nix { inherit pkgs inputs; });
|
||||
};
|
||||
});
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in { formatter = pkgs.nixfmt; });
|
||||
}
|
||||
|
||||
|
|
|
@ -6,16 +6,8 @@
|
|||
useGlobalPkgs = true;
|
||||
};
|
||||
home-manager.users.artemis = {
|
||||
imports = [
|
||||
./fish.nix
|
||||
./gtk.nix
|
||||
./git.nix
|
||||
./mpv.nix
|
||||
./kitty.nix
|
||||
./ssh
|
||||
./gpg.nix
|
||||
./dirs.nix
|
||||
];
|
||||
imports =
|
||||
[ ./fish.nix ./gtk.nix ./git.nix ./mpv.nix ./kitty.nix ./ssh ./gpg.nix ];
|
||||
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
xdg.userDirs = with lib; {
|
||||
enable = true;
|
||||
documents = mkDefault "${config.home.homeDirectory}/Dokumente";
|
||||
music = mkDefault "${config.home.homeDirectory}/Musik";
|
||||
pictures = mkDefault "${config.home.homeDirectory}/Bilder";
|
||||
};
|
||||
}
|
|
@ -3,7 +3,7 @@ scrolling:
|
|||
|
||||
font:
|
||||
normal:
|
||||
family: Fira Code
|
||||
family: FiraCode Nerd Font
|
||||
size: 8
|
||||
|
||||
shell:
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
nix = {
|
||||
buildMachines = [{
|
||||
hostName = "starlight.manehattan.artem.ist";
|
||||
protocol = "ssh-ng";
|
||||
sshUser = "build";
|
||||
supportedFeatures = [ "kvm" "big-parallel" "benchmark" "nixos-text" ];
|
||||
system = "x86_64-linux";
|
||||
|
|
|
@ -18,5 +18,6 @@
|
|||
tinyprog
|
||||
wishbone-tool
|
||||
openfpgaloader
|
||||
(callPackage ../externals/packages/fujproj { })
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
|
@ -10,11 +10,13 @@
|
|||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
apktool
|
||||
aircrack-ng
|
||||
nmap
|
||||
pwndbg
|
||||
python3Packages.binwalk-full
|
||||
|
||||
fusee-launcher
|
||||
hactool
|
||||
];
|
||||
|
||||
users.users.artemis.extraGroups = [ "adbusers" "wireshark" ];
|
||||
|
|
|
@ -4,14 +4,12 @@ in {
|
|||
services.udev.packages = [
|
||||
(pkgs.callPackage ../externals/rules/adafruit.nix { })
|
||||
(pkgs.callPackage ../externals/rules/limesuite.nix { })
|
||||
pkgs.glasgow
|
||||
pkgs.libsigrok
|
||||
pkgs.openocd
|
||||
pkgs.platformio
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
glasgow
|
||||
jlink
|
||||
kicad
|
||||
openocd
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{ inputs, ... }: {
|
||||
imports = [ inputs.nix-index-database.nixosModules.nix-index ];
|
||||
|
||||
programs.command-not-found.enable = false;
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
}
|
313
sets/nvim.nix
313
sets/nvim.nix
|
@ -1,171 +1,180 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
vimAlias = true;
|
||||
imports = [ inputs.nixvim.nixosModules.nixvim ];
|
||||
|
||||
# Basic editing / QoL
|
||||
editorconfig.enable = true;
|
||||
colorschemes.kanagawa.enable = true;
|
||||
plugins = {
|
||||
nix.enable = true;
|
||||
fugitive.enable = true;
|
||||
gitgutter.enable = true;
|
||||
lualine.enable = true;
|
||||
typst-vim.enable = true;
|
||||
telescope = {
|
||||
environment.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
|
||||
# Basic editing / QoL
|
||||
editorconfig.enable = true;
|
||||
colorschemes.kanagawa.enable = true;
|
||||
plugins = {
|
||||
nix.enable = true;
|
||||
fugitive.enable = true;
|
||||
gitgutter.enable = true;
|
||||
lualine.enable = true;
|
||||
typst-vim.enable = true;
|
||||
telescope = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
"<leader>tgf" = "git_files";
|
||||
"<leader>tb" = "buffers";
|
||||
"<leader>tl" = "live_grep";
|
||||
"<leader>ts" = "grep_string";
|
||||
"<leader>tf" = "find_files";
|
||||
"<leader>tt" = "builtin";
|
||||
|
||||
gd = "lsp_definitions";
|
||||
gt = "lsp_type_definitions";
|
||||
gr = "lsp_references";
|
||||
gi = "lsp_implementations";
|
||||
gcd = "diagnostics";
|
||||
gsd = "lsp_document_symbols";
|
||||
gsw = "lsp_workspace_symbols";
|
||||
gci = "lsp_incoming_calls";
|
||||
gco = "lsp_outgoing_calls";
|
||||
|
||||
"<leader>tgs" = "git_status";
|
||||
"<leader>tgb" = "git_branches";
|
||||
"<leader>tgc" = "git_commits";
|
||||
};
|
||||
};
|
||||
};
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-fetch
|
||||
vim-fish
|
||||
vim-flatbuffers
|
||||
vim-nftables
|
||||
vim-protobuf
|
||||
vim-toml
|
||||
];
|
||||
options = {
|
||||
hidden = true;
|
||||
backup = false;
|
||||
writebackup = false;
|
||||
cmdheight = 2;
|
||||
shortmess = "filnxtToOFc";
|
||||
signcolumn = "yes";
|
||||
number = true;
|
||||
};
|
||||
|
||||
# LSP
|
||||
plugins.rust-tools = {
|
||||
enable = true;
|
||||
server.standalone = false;
|
||||
};
|
||||
plugins.clangd-extensions.enable = true;
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
clangd.enable = true;
|
||||
java-language-server.enable = true;
|
||||
jsonls.enable = true;
|
||||
nil_ls.enable = true;
|
||||
pylsp.enable = true;
|
||||
texlab.enable = true;
|
||||
tsserver.enable = true;
|
||||
typst-lsp.enable = true;
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
"<leader>tgf" = "git_files";
|
||||
"<leader>tb" = "buffers";
|
||||
"<leader>tl" = "live_grep";
|
||||
"<leader>ts" = "grep_string";
|
||||
"<leader>tf" = "find_files";
|
||||
"<leader>tt" = "builtin";
|
||||
silent = true;
|
||||
diagnostic = {
|
||||
"<leader>rk" = "goto_prev";
|
||||
"<leader>rj" = "goto_next";
|
||||
};
|
||||
lspBuf = {
|
||||
K = "hover";
|
||||
gD = "declaration";
|
||||
|
||||
gd = "lsp_definitions";
|
||||
gt = "lsp_type_definitions";
|
||||
gr = "lsp_references";
|
||||
gi = "lsp_implementations";
|
||||
gcd = "diagnostics";
|
||||
gsd = "lsp_document_symbols";
|
||||
gsw = "lsp_workspace_symbols";
|
||||
gci = "lsp_incoming_calls";
|
||||
gco = "lsp_outgoing_calls";
|
||||
|
||||
"<leader>tgs" = "git_status";
|
||||
"<leader>tgb" = "git_branches";
|
||||
"<leader>tgc" = "git_commits";
|
||||
"<leader>ra" = "code_action";
|
||||
"<leader>rn" = "rename";
|
||||
"<leader>rs" = "signature_help";
|
||||
"<leader>f" = "format";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-fetch
|
||||
vim-fish
|
||||
vim-flatbuffers
|
||||
vim-nftables
|
||||
vim-protobuf
|
||||
vim-toml
|
||||
];
|
||||
options = {
|
||||
hidden = true;
|
||||
backup = false;
|
||||
writebackup = false;
|
||||
cmdheight = 2;
|
||||
shortmess = "filnxtToOFc";
|
||||
signcolumn = "yes";
|
||||
number = true;
|
||||
};
|
||||
|
||||
# LSP
|
||||
plugins.rust-tools = {
|
||||
enable = true;
|
||||
server.standalone = false;
|
||||
};
|
||||
plugins.clangd-extensions.enable = true;
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
clangd.enable = true;
|
||||
java-language-server.enable = true;
|
||||
jsonls.enable = true;
|
||||
nil_ls.enable = true;
|
||||
pylsp.enable = true;
|
||||
texlab.enable = true;
|
||||
tsserver.enable = true;
|
||||
typst-lsp.enable = true;
|
||||
onAttach = ''
|
||||
if client.server_capabilities.documentHighlightProvider then
|
||||
vim.api.nvim_create_augroup("lsp_document_highlight", { clear = true })
|
||||
vim.api.nvim_clear_autocmds { buffer = bufnr, group = "lsp_document_highlight" }
|
||||
vim.api.nvim_create_autocmd("CursorHold", {
|
||||
callback = vim.lsp.buf.document_highlight,
|
||||
buffer = bufnr,
|
||||
group = "lsp_document_highlight",
|
||||
desc = "Document Highlight",
|
||||
})
|
||||
vim.api.nvim_create_autocmd("CursorMoved", {
|
||||
callback = vim.lsp.buf.clear_references,
|
||||
buffer = bufnr,
|
||||
group = "lsp_document_highlight",
|
||||
desc = "Clear All the References",
|
||||
})
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
diagnostic = {
|
||||
"<leader>rk" = "goto_prev";
|
||||
"<leader>rj" = "goto_next";
|
||||
};
|
||||
lspBuf = {
|
||||
K = "hover";
|
||||
gD = "declaration";
|
||||
|
||||
"<leader>ra" = "code_action";
|
||||
"<leader>rn" = "rename";
|
||||
"<leader>rs" = "signature_help";
|
||||
"<leader>f" = "format";
|
||||
# Autocomplete
|
||||
plugins = {
|
||||
luasnip.enable = true;
|
||||
cmp-cmdline.enable = true;
|
||||
cmp-git.enable = true;
|
||||
cmp-buffer.enable = true;
|
||||
nvim-cmp = {
|
||||
enable = true;
|
||||
snippet.expand = "luasnip";
|
||||
sources = [
|
||||
{ name = "luasnip"; }
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "path"; }
|
||||
{ name = "calc"; }
|
||||
{ name = "emoji"; }
|
||||
];
|
||||
mappingPresets = [ "insert" "cmdline" ];
|
||||
mapping = {
|
||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||
"<C-Space>" = "cmp.mapping.complete()";
|
||||
"<C-e>" = "cmp.mapping.abort()";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
onAttach = ''
|
||||
if client.server_capabilities.documentHighlightProvider then
|
||||
vim.api.nvim_create_augroup("lsp_document_highlight", { clear = true })
|
||||
vim.api.nvim_clear_autocmds { buffer = bufnr, group = "lsp_document_highlight" }
|
||||
vim.api.nvim_create_autocmd("CursorHold", {
|
||||
callback = vim.lsp.buf.document_highlight,
|
||||
buffer = bufnr,
|
||||
group = "lsp_document_highlight",
|
||||
desc = "Document Highlight",
|
||||
# For some reason you can't do this directly in nix?
|
||||
extraConfigLuaPost = ''
|
||||
do
|
||||
local cmp = require('cmp')
|
||||
cmp.setup.filetype('gitcommit', {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'git' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
vim.api.nvim_create_autocmd("CursorMoved", {
|
||||
callback = vim.lsp.buf.clear_references,
|
||||
buffer = bufnr,
|
||||
group = "lsp_document_highlight",
|
||||
desc = "Clear All the References",
|
||||
})
|
||||
|
||||
cmp.setup.cmdline({ '/', '?' }, {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = {
|
||||
{ name = 'buffer' }
|
||||
}
|
||||
})
|
||||
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
})
|
||||
})
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
# Autocomplete
|
||||
plugins = {
|
||||
luasnip.enable = true;
|
||||
cmp-cmdline.enable = true;
|
||||
cmp-git.enable = true;
|
||||
cmp-buffer.enable = true;
|
||||
nvim-cmp = {
|
||||
enable = true;
|
||||
snippet.expand = "luasnip";
|
||||
sources = [
|
||||
{ name = "luasnip"; }
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "path"; }
|
||||
{ name = "calc"; }
|
||||
{ name = "emoji"; }
|
||||
];
|
||||
mappingPresets = [ "insert" "cmdline" ];
|
||||
mapping = {
|
||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||
"<C-Space>" = "cmp.mapping.complete()";
|
||||
"<C-e>" = "cmp.mapping.abort()";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# For some reason you can't do this directly in nix?
|
||||
extraConfigLuaPost = ''
|
||||
do
|
||||
local cmp = require('cmp')
|
||||
cmp.setup.filetype('gitcommit', {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'git' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
})
|
||||
|
||||
cmp.setup.cmdline({ '/', '?' }, {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = {
|
||||
{ name = 'buffer' }
|
||||
}
|
||||
})
|
||||
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
})
|
||||
})
|
||||
end
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -34,9 +34,8 @@
|
|||
|
||||
# Filesystems
|
||||
cifs-utils
|
||||
exfatprogs
|
||||
nfs-utils
|
||||
ntfsprogs
|
||||
ntfs3g
|
||||
udftools
|
||||
|
||||
# Useful CLI tools
|
||||
|
@ -92,9 +91,10 @@
|
|||
rustup
|
||||
|
||||
# Security
|
||||
pass
|
||||
(pass.withExtensions (exts: [ exts.pass-otp ]))
|
||||
wireguard-tools
|
||||
yubikey-manager
|
||||
yubioath-flutter
|
||||
|
||||
# GUI tools
|
||||
alacritty
|
||||
|
@ -102,7 +102,6 @@
|
|||
gnome3.eog
|
||||
gnome3.gnome-system-monitor
|
||||
libreoffice-fresh
|
||||
nheko
|
||||
qalculate-gtk
|
||||
libqalculate
|
||||
|
||||
|
|
|
@ -20,17 +20,16 @@
|
|||
mako
|
||||
polkit_gnome
|
||||
slurp
|
||||
swayidle
|
||||
swaylock
|
||||
waypipe
|
||||
wf-recorder
|
||||
wl-clipboard
|
||||
wofi
|
||||
wofi-emoji
|
||||
wtype
|
||||
xdg-user-dirs
|
||||
xdg_utils
|
||||
xsettingsd
|
||||
swaylock
|
||||
swayidle
|
||||
];
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
|
|
|
@ -1,35 +1,24 @@
|
|||
{ pkgs, inputs, ... }@args:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./sway.nix
|
||||
./packages.nix
|
||||
./pipewire.nix
|
||||
./base.nix
|
||||
../home
|
||||
./nix-index.nix
|
||||
inputs.nixvim.nixosModules.nixvim
|
||||
];
|
||||
imports =
|
||||
[ ./sway.nix ./packages.nix ./pipewire.nix ./base.nix ./nvim.nix ../home ];
|
||||
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
i18n.supportedLocales = [ "all" ];
|
||||
|
||||
environment = {
|
||||
variables.EDITOR = "nvim";
|
||||
variables.VISUAL = "nvim";
|
||||
variables.TERMINAL = "kitty";
|
||||
enableDebugInfo = true;
|
||||
};
|
||||
|
||||
programs.nixvim = import ./nvim.nix args // { enable = true; };
|
||||
|
||||
services = {
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
};
|
||||
flatpak.enable = true;
|
||||
fwupd.enable = true;
|
||||
pcscd.enable = true;
|
||||
printing.enable = true;
|
||||
udev.packages = [ (pkgs.callPackage ../externals/rules/uhk.nix { }) ];
|
||||
|
@ -37,8 +26,6 @@
|
|||
|
||||
programs.ssh.startAgent = true;
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
opengl.driSupport32Bit = (pkgs.system == "x86_64-linux");
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
../../sets/buildMachines.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/hardware.nix
|
||||
../../sets/ime.nix
|
||||
../../sets/krb5.nix
|
||||
../../sets/laptop.nix
|
||||
../../sets/secureBoot.nix
|
||||
|
|
|
@ -14,9 +14,4 @@
|
|||
allowDiscards = true;
|
||||
};
|
||||
}];
|
||||
|
||||
# This has to go in crypttab because we won't have the keyfile in the initrd
|
||||
environment.etc.crypttab.text = ''
|
||||
microsd /dev/disk/by-uuid/51ed9e97-06cf-4c54-a71a-c182bb0ced9e /var/lib/private/µsd_key
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -4,12 +4,11 @@
|
|||
imports = [
|
||||
./boot-config.nix
|
||||
./hardware-configuration.nix
|
||||
../../sets/1password.nix
|
||||
../../sets/buildMachines.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/laptop.nix
|
||||
../../sets/secureBoot.nix
|
||||
../../sets/sshd.nix
|
||||
../../sets/buildMachines.nix
|
||||
../../sets/workstation.nix
|
||||
inputs.nixos-hardware.nixosModules.gpd-micropc
|
||||
];
|
||||
|
@ -17,32 +16,29 @@
|
|||
networking.hostName = "spike";
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
home-manager.users.artemis = {
|
||||
xdg.configFile."rustybar/config.toml".text = ''
|
||||
[[tile]]
|
||||
type = "load"
|
||||
[[tile]]
|
||||
type = "memory"
|
||||
[[tile]]
|
||||
type = "hostname"
|
||||
[[tile]]
|
||||
type = "battery"
|
||||
[[tile]]
|
||||
type = "time"
|
||||
format = "%Y-%m-%dT%H:%M:%S"
|
||||
'';
|
||||
home-manager.users.artemis.xdg.configFile."rustybar/config.toml".text = ''
|
||||
[[tile]]
|
||||
type = "load"
|
||||
[[tile]]
|
||||
type = "memory"
|
||||
[[tile]]
|
||||
type = "hostname"
|
||||
[[tile]]
|
||||
type = "battery"
|
||||
[[tile]]
|
||||
type = "time"
|
||||
format = "%Y-%m-%dT%H:%M:%S"
|
||||
'';
|
||||
|
||||
wayland.windowManager.sway.config = {
|
||||
output."DSI-1" = {
|
||||
pos = "0 0";
|
||||
mode = "720x1280@60.083Hz";
|
||||
transform = "90";
|
||||
};
|
||||
input."24704:32865:AMR-4630-XXX-0-_0-1023_USB_KEYBOARD_Mouse" = {
|
||||
scroll_method = "on_button_down";
|
||||
scroll_button = "BTN_MIDDLE";
|
||||
};
|
||||
home-manager.users.artemis.wayland.windowManager.sway.config = {
|
||||
output."DSI-1" = {
|
||||
pos = "0 0";
|
||||
mode = "720x1280@60.083Hz";
|
||||
transform = "90";
|
||||
};
|
||||
input."24704:32865:AMR-4630-XXX-0-_0-1023_USB_KEYBOARD_Mouse" = {
|
||||
scroll_method = "on_button_down";
|
||||
scroll_button = "BTN_MIDDLE";
|
||||
};
|
||||
xdg.userDirs.music = "/media/µsd/Musik";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,11 +22,6 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/media/µsd" = {
|
||||
device = "/dev/disk/by-uuid/9fc168c9-849d-4897-8f0c-564f0b74b3ef";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
../../sets/fpga.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/hardware.nix
|
||||
../../sets/ime.nix
|
||||
../../sets/krb5.nix
|
||||
../../sets/music.nix
|
||||
../../sets/radio.nix
|
||||
|
@ -135,10 +136,6 @@
|
|||
type = "time"
|
||||
format = "%Y-%m-%dT%H:%M:%S"
|
||||
'';
|
||||
xdg.userDirs = {
|
||||
music = "/media/data/Musik";
|
||||
pictures = "/media/luna/photos";
|
||||
};
|
||||
};
|
||||
# NixOS
|
||||
system.stateVersion = "21.11";
|
||||
|
|
Loading…
Reference in a new issue