mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 03:37:18 +00:00
Adds p4box host
This commit is contained in:
parent
2d299f9466
commit
6ea3eb4b19
5 changed files with 38 additions and 43 deletions
|
@ -83,6 +83,7 @@
|
||||||
nixosConfigurations.x86_64-live = mkNixos "x86_64" ./nixos/hosts/x86_64-live.nix;
|
nixosConfigurations.x86_64-live = mkNixos "x86_64" ./nixos/hosts/x86_64-live.nix;
|
||||||
nixosConfigurations.aarch64-live = mkNixos "aarch64" ./nixos/hosts/aarch64-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.nixbox = mkNixos "x86_64" ./nixos/hosts/nixbox.nix;
|
||||||
nixosConfigurations.thinkpad = mkNixos "x86_64" ./nixos/hosts/thinkpad.nix;
|
nixosConfigurations.thinkpad = mkNixos "x86_64" ./nixos/hosts/thinkpad.nix;
|
||||||
|
|
||||||
|
|
|
@ -63,8 +63,6 @@
|
||||||
hishtory = {
|
hishtory = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
enableConfig = true;
|
|
||||||
settings.enable-control-r = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
java = {
|
java = {
|
||||||
|
|
37
nixos/hosts/p4box.nix
Normal file
37
nixos/hosts/p4box.nix
Normal 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;
|
||||||
|
}
|
|
@ -1,4 +1,3 @@
|
||||||
_final: prev: {
|
_final: prev: {
|
||||||
org-auctex = prev.callPackage ./org-auctex.nix {};
|
org-auctex = prev.callPackage ./org-auctex.nix {};
|
||||||
hishtory = prev.callPackage ./hishtory.nix {};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue