Adds p4box host

This commit is contained in:
willemml 2023-11-14 02:02:35 -08:00
parent 2d299f9466
commit 6ea3eb4b19
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
5 changed files with 38 additions and 43 deletions

View file

@ -83,6 +83,7 @@
nixosConfigurations.x86_64-live = mkNixos "x86_64" ./nixos/hosts/x86_64-live.nix;
nixosConfigurations.aarch64-live = mkNixos "aarch64" ./nixos/hosts/aarch64-live.nix;
nixosConfigurations.p4box = mkNixos "i686" ./nixos/hosts/p4box.nix;
nixosConfigurations.nixbox = mkNixos "x86_64" ./nixos/hosts/nixbox.nix;
nixosConfigurations.thinkpad = mkNixos "x86_64" ./nixos/hosts/thinkpad.nix;

View file

@ -63,8 +63,6 @@
hishtory = {
enable = true;
enableZshIntegration = true;
enableConfig = true;
settings.enable-control-r = true;
};
java = {

37
nixos/hosts/p4box.nix Normal file
View file

@ -0,0 +1,37 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../profiles/default.nix
../users/willem
../modules/zerotier.nix
];
boot.loader.grub.enable = true;
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "sata_sil" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/4f558bc6-e3b3-46e4-a3b1-520eab6d090f";
fsType = "ext4";
};
swapDevices = [
{device = "/dev/disk/by-uuid/413077c1-e921-4377-8c7d-ca2acf8a60d2";}
];
networking.useDHCP = lib.mkDefault true;
networking.hostName = "p4box";
nixpkgs.hostPlatform = lib.mkDefault "i686-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,4 +1,3 @@
_final: prev: {
org-auctex = prev.callPackage ./org-auctex.nix {};
hishtory = prev.callPackage ./hishtory.nix {};
}

View file

@ -1,40 +0,0 @@
{
buildGoModule,
fetchFromGitHub,
breakpointHook,
lib,
}:
buildGoModule rec {
pname = "hishtory";
version = "0.251";
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
hash = "sha256-as7OO14S2ia9ty/HRP35Zw9EOvFxBQeCzCluDWo/VnI=";
};
vendorHash = "sha256-HzHLGrPXUSkyt2Dr7tLjfJrbg/EPBHkljoXIlPWIppU=";
ldflags = [
"-s -w -X github.com/ddworken/hishtory/client/lib.Version=${version}"
"-extldflags '-static'"
];
excludedPackages = ["backend/server" "client"];
postInstall = ''
mkdir -p $out/share/hishtory
cp client/lib/config.* $out/share/hishtory
'';
doCheck = false;
meta = with lib; {
description = "Your shell history: synced, queryable, and in context";
homepage = "https://github.com/ddworken/hishtory";
license = licenses.mit;
maintainers = with maintainers; [Enzime];
};
}