Compare commits
10 commits
e6a8bbf95b
...
8027f6d8fe
Author | SHA1 | Date | |
---|---|---|---|
Artemis Tosini | 8027f6d8fe | ||
Artemis Tosini | 65326c9f46 | ||
Artemis Tosini | c1468db9e2 | ||
Artemis Tosini | eff2aceaff | ||
Artemis Tosini | 3efbdf866f | ||
Artemis Tosini | 696f20f632 | ||
Artemis Tosini | 6cf43e663e | ||
Artemis Tosini | 86d6a6eb32 | ||
Artemis Tosini | 68a65ddfbc | ||
Artemis Tosini | c1af877e9d |
26
externals/packages/avarice/default.nix
vendored
26
externals/packages/avarice/default.nix
vendored
|
@ -1,26 +0,0 @@
|
|||
{ 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
1
externals/packages/dptx-dummy/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
*.cmd
|
26
externals/packages/dptx-dummy/default.nix
vendored
26
externals/packages/dptx-dummy/default.nix
vendored
|
@ -1,26 +0,0 @@
|
|||
{ 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
1
externals/packages/dptx-dummy/src/Makefile
vendored
|
@ -1 +0,0 @@
|
|||
obj-m := dptx-dummy.o
|
|
@ -1,6 +0,0 @@
|
|||
#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
24
externals/packages/fujproj/default.nix
vendored
|
@ -1,24 +0,0 @@
|
|||
{ 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
72
externals/packages/hll2300d/default.nix
vendored
|
@ -1,72 +0,0 @@
|
|||
{ 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_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="}}
|
||||
{"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="}}
|
33
externals/packages/weechat-matrix-rs/default.nix
vendored
33
externals/packages/weechat-matrix-rs/default.nix
vendored
|
@ -1,33 +0,0 @@
|
|||
{ 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": 1695550077,
|
||||
"narHash": "sha256-xoxR/iY69/3lTnnZDP6gf3J46DUKPcf+Y1jH03tfZXE=",
|
||||
"lastModified": 1698250431,
|
||||
"narHash": "sha256-qs2gTeH4wpnWPO6Oi6sOhp2IhG0i0DzcnrJxIY3/CP8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "a88df2fb101778bfd98a17556b3a2618c6c66091",
|
||||
"rev": "09587fbbc6a669f7725613e044c2577dc5d43ab5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -243,13 +243,33 @@
|
|||
"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": 1695541019,
|
||||
"narHash": "sha256-rs++zfk41K9ArWkDAlmBDlGlKO8qeRIRzdjo+9SmNFI=",
|
||||
"lastModified": 1698053470,
|
||||
"narHash": "sha256-sP8D/41UiwC2qn0X40oi+DfuVzNHMROqIWdSdCI/AYA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "61283b30d11f27d5b76439d43f20d0c0c8ff5296",
|
||||
"rev": "80d98a7d55c6e27954a166cb583a41325e9512d7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -260,11 +280,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1695360818,
|
||||
"narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=",
|
||||
"lastModified": 1698134075,
|
||||
"narHash": "sha256-foCD+nuKzfh49bIoiCBur4+Fx1nozo+4C/6k8BYk4sg=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e35dcc04a3853da485a396bdd332217d0ac9054f",
|
||||
"rev": "8efd5d1e283604f75a808a20e6cde0ef313d07d4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -318,11 +338,11 @@
|
|||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1695300485,
|
||||
"narHash": "sha256-lPxXM584q9AVdUZxbEJgIPVeg39X6GWIENuENRxyHqo=",
|
||||
"lastModified": 1698386104,
|
||||
"narHash": "sha256-/QwUn8G1ERjl82RFFTTI/2ulOTV9Mbeog97old9tZl0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "32a64af2318beac3c89d4d1fa0b73ce237c5cf1e",
|
||||
"rev": "315bc508ee0bfb62b6608f8f445126158ca2cc35",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -370,11 +390,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1694364351,
|
||||
"narHash": "sha256-oadhSCqopYXxURwIA6/Anpe5IAG11q2LhvTJNP5zE6o=",
|
||||
"lastModified": 1698227354,
|
||||
"narHash": "sha256-Fi5H9jbaQLmLw9qBi/mkR33CoFjNbobo5xWdX4tKz1Q=",
|
||||
"owner": "cachix",
|
||||
"repo": "pre-commit-hooks.nix",
|
||||
"rev": "4f883a76282bc28eb952570afc3d8a1bf6f481d7",
|
||||
"rev": "bd38df3d508dfcdff52cd243d297f218ed2257bf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -416,11 +436,11 @@
|
|||
},
|
||||
"private": {
|
||||
"locked": {
|
||||
"lastModified": 1692761801,
|
||||
"narHash": "sha256-+mYwFUA7H5FG1uAst2CBuj+FFKQ7+u9N4KbBerFvVsA=",
|
||||
"lastModified": 1696997284,
|
||||
"narHash": "sha256-4Gh4M1kKThixZNc8Nm0oxm+tqkpaqM+lslr0UT2SS0o=",
|
||||
"ref": "unified",
|
||||
"rev": "2e75302ff38830fdebecaa24ee0debebb9fab3d8",
|
||||
"revCount": 32,
|
||||
"rev": "2dd16f02cfdba921cef8655879a0d59af2a89604",
|
||||
"revCount": 33,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/artemist/nixos-config-private"
|
||||
},
|
||||
|
@ -435,6 +455,7 @@
|
|||
"fonts": "fonts",
|
||||
"home-manager": "home-manager",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixvim": "nixvim",
|
||||
|
@ -479,11 +500,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1695603143,
|
||||
"narHash": "sha256-7iR+IWQcKdRwazFQSM5RxfvXihN1jILVN7jx2QObG2g=",
|
||||
"lastModified": 1696963281,
|
||||
"narHash": "sha256-gwLI5QDyw7Jj2d+W5t6UJOuHCTuCmm1B25UlO3eNvUQ=",
|
||||
"owner": "mildlyfunctionalgays",
|
||||
"repo": "rustybar",
|
||||
"rev": "ea274f26c9fc3a1adc88b9b80dd67f35330f65a3",
|
||||
"rev": "73886c37da6d3db8791fb6ed60dd370b5f3c8c5f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
19
flake.nix
19
flake.nix
|
@ -22,6 +22,10 @@
|
|||
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";
|
||||
|
@ -67,7 +71,18 @@
|
|||
modules = [ ./system/mistmane ];
|
||||
};
|
||||
} // utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in { formatter = pkgs.nixfmt; });
|
||||
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; });
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -6,8 +6,16 @@
|
|||
useGlobalPkgs = true;
|
||||
};
|
||||
home-manager.users.artemis = {
|
||||
imports =
|
||||
[ ./fish.nix ./gtk.nix ./git.nix ./mpv.nix ./kitty.nix ./ssh ./gpg.nix ];
|
||||
imports = [
|
||||
./fish.nix
|
||||
./gtk.nix
|
||||
./git.nix
|
||||
./mpv.nix
|
||||
./kitty.nix
|
||||
./ssh
|
||||
./gpg.nix
|
||||
./dirs.nix
|
||||
];
|
||||
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
|
||||
|
|
10
home/dirs.nix
Normal file
10
home/dirs.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ 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: FiraCode Nerd Font
|
||||
family: Fira Code
|
||||
size: 8
|
||||
|
||||
shell:
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
nix = {
|
||||
buildMachines = [{
|
||||
hostName = "starlight.manehattan.artem.ist";
|
||||
protocol = "ssh-ng";
|
||||
sshUser = "build";
|
||||
supportedFeatures = [ "kvm" "big-parallel" "benchmark" "nixos-text" ];
|
||||
system = "x86_64-linux";
|
||||
|
|
|
@ -18,6 +18,5 @@
|
|||
tinyprog
|
||||
wishbone-tool
|
||||
openfpgaloader
|
||||
(callPackage ../externals/packages/fujproj { })
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
|
@ -10,13 +10,11 @@
|
|||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
apktool
|
||||
aircrack-ng
|
||||
nmap
|
||||
pwndbg
|
||||
python3Packages.binwalk-full
|
||||
|
||||
fusee-launcher
|
||||
hactool
|
||||
];
|
||||
|
||||
users.users.artemis.extraGroups = [ "adbusers" "wireshark" ];
|
||||
|
|
|
@ -4,12 +4,14 @@ 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
|
||||
|
|
6
sets/nix-index.nix
Normal file
6
sets/nix-index.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ inputs, ... }: {
|
||||
imports = [ inputs.nix-index-database.nixosModules.nix-index ];
|
||||
|
||||
programs.command-not-found.enable = false;
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
}
|
|
@ -1,14 +1,6 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.nixvim.nixosModules.nixvim ];
|
||||
|
||||
environment.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
|
||||
# Basic editing / QoL
|
||||
|
@ -176,5 +168,4 @@
|
|||
})
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34,8 +34,9 @@
|
|||
|
||||
# Filesystems
|
||||
cifs-utils
|
||||
exfatprogs
|
||||
nfs-utils
|
||||
ntfs3g
|
||||
ntfsprogs
|
||||
udftools
|
||||
|
||||
# Useful CLI tools
|
||||
|
@ -91,10 +92,9 @@
|
|||
rustup
|
||||
|
||||
# Security
|
||||
(pass.withExtensions (exts: [ exts.pass-otp ]))
|
||||
pass
|
||||
wireguard-tools
|
||||
yubikey-manager
|
||||
yubioath-flutter
|
||||
|
||||
# GUI tools
|
||||
alacritty
|
||||
|
@ -102,6 +102,7 @@
|
|||
gnome3.eog
|
||||
gnome3.gnome-system-monitor
|
||||
libreoffice-fresh
|
||||
nheko
|
||||
qalculate-gtk
|
||||
libqalculate
|
||||
|
||||
|
|
|
@ -20,16 +20,17 @@
|
|||
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,24 +1,35 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ pkgs, inputs, ... }@args:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ ./sway.nix ./packages.nix ./pipewire.nix ./base.nix ./nvim.nix ../home ];
|
||||
imports = [
|
||||
./sway.nix
|
||||
./packages.nix
|
||||
./pipewire.nix
|
||||
./base.nix
|
||||
../home
|
||||
./nix-index.nix
|
||||
inputs.nixvim.nixosModules.nixvim
|
||||
];
|
||||
|
||||
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 { }) ];
|
||||
|
@ -26,6 +37,8 @@
|
|||
|
||||
programs.ssh.startAgent = true;
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
opengl.driSupport32Bit = (pkgs.system == "x86_64-linux");
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
../../sets/buildMachines.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/hardware.nix
|
||||
../../sets/ime.nix
|
||||
../../sets/krb5.nix
|
||||
../../sets/laptop.nix
|
||||
../../sets/secureBoot.nix
|
||||
|
|
|
@ -14,4 +14,9 @@
|
|||
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,11 +4,12 @@
|
|||
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
|
||||
];
|
||||
|
@ -16,7 +17,8 @@
|
|||
networking.hostName = "spike";
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
home-manager.users.artemis.xdg.configFile."rustybar/config.toml".text = ''
|
||||
home-manager.users.artemis = {
|
||||
xdg.configFile."rustybar/config.toml".text = ''
|
||||
[[tile]]
|
||||
type = "load"
|
||||
[[tile]]
|
||||
|
@ -30,7 +32,7 @@
|
|||
format = "%Y-%m-%dT%H:%M:%S"
|
||||
'';
|
||||
|
||||
home-manager.users.artemis.wayland.windowManager.sway.config = {
|
||||
wayland.windowManager.sway.config = {
|
||||
output."DSI-1" = {
|
||||
pos = "0 0";
|
||||
mode = "720x1280@60.083Hz";
|
||||
|
@ -41,4 +43,6 @@
|
|||
scroll_button = "BTN_MIDDLE";
|
||||
};
|
||||
};
|
||||
xdg.userDirs.music = "/media/µsd/Musik";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
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,7 +11,6 @@
|
|||
../../sets/fpga.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/hardware.nix
|
||||
../../sets/ime.nix
|
||||
../../sets/krb5.nix
|
||||
../../sets/music.nix
|
||||
../../sets/radio.nix
|
||||
|
@ -136,6 +135,10 @@
|
|||
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