finalized buildbox integration

This commit is contained in:
2025-07-30 02:27:44 -07:00
parent 3df4913796
commit e8508fbc73
8 changed files with 103 additions and 31 deletions

69
flake.lock generated
View File

@@ -39,6 +39,24 @@
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_3"
},
"locked": {
"lastModified": 1681202837,
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -136,6 +154,20 @@
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1682134069,
"narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fd901ef4bf93499374c5af385b2943f5801c0833",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts",
@@ -188,7 +220,8 @@
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim"
"nixvim": "nixvim",
"vscode-server": "vscode-server"
}
},
"systems": {
@@ -220,6 +253,40 @@
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"vscode-server": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1753541826,
"narHash": "sha256-foGgZu8+bCNIGeuDqQ84jNbmKZpd+JvnrL2WlyU4tuU=",
"owner": "nix-community",
"repo": "nixos-vscode-server",
"rev": "6d5f074e4811d143d44169ba4af09b20ddb6937d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-vscode-server",
"type": "github"
}
}
},
"root": "root",

View File

@@ -18,9 +18,11 @@
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
inputs.nixpkgs.follows = "nixpkgs";
};
vscode-server = {
url = "github:nix-community/nixos-vscode-server";
};
};
outputs =
@@ -30,20 +32,31 @@
home-manager,
nixvim,
nixos-hardware,
vscode-server,
...
}@inputs:
let
system = "x86_64-linux";
configPath = "/etc/nixos";
pkgs-unstable = import nixpkgs-unstable {
system = system;
config.allowUnfree = true;
};
system = "x86_64-linux";
configPath = "/etc/nixos";
pkgs-unstable = import nixpkgs-unstable {
system = system;
config.allowUnfree = true;
};
in
{
nixosConfigurations = {
buildbox = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs pkgs-unstable configPath;} // {hostname = "buildbox";};
system = system;
modules = [
./hosts/buildbox/configuration.nix
inputs.home-manager.nixosModules.default
vscode-server.nixosModules.default({ config, pkgs, ... }: {services.vscode-server.enable = true;})
];
};
eva-01 = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs pkgs-unstable configPath;} // {hostname = "eva-01";};
specialArgs = {inherit inputs pkgs-unstable configPath;} // {hostname = "eva-01";};
system = system;
modules = [
./hosts/eva-01/configuration.nix
@@ -53,8 +66,7 @@
};
eva-03 = nixpkgs.lib.nixosSystem {
hostname = "eva-03";
specialArgs = {inherit inputs pkgs-unstable configPath;} // {hostname = "eva-03";};
specialArgs = {inherit inputs pkgs-unstable configPath;} // {hostname = "eva-03";};
system = system;
modules = [
./hosts/eva-03/configuration.nix

View File

@@ -30,7 +30,6 @@
dust
ffmpeg-full
fzf
fzf
gemini-cli
git-filter-repo
kitty

View File

@@ -1,3 +1,9 @@
{
hostname,
lib,
...
}:
{
programs = {
git = {
@@ -5,6 +11,7 @@
userName = "rogueking";
userEmail = "miguel@muniz.org";
lfs.enable = true;
} // lib.optionalAttrs (hostname != "buildbox") {
signing = {
signByDefault = true;
gpgPath = "/opt/1Password/op-ssh-sign";
@@ -14,9 +21,7 @@
gpg = {
format = "ssh";
};
};
};
};
}
}

View File

@@ -6,7 +6,8 @@
./rofi/rofi.nix
];
home.packages = with pkgs; [
home.packages =
lib.optionals (hostname != "buildbox") (with pkgs; [
#pwndbg
bambu-studio
blender
@@ -53,7 +54,7 @@
vscode
wireshark
yubikey-agent
]
])
++ lib.optionals (hostname == "eva-01") [

View File

@@ -9,6 +9,7 @@
inputs,
configPath,
hostname,
lib,
...
}:
@@ -21,8 +22,6 @@
];
# Bootloader.
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.enable = lib.mkDefault true;
boot.loader.grub.devices = [ "nodev" ];

View File

@@ -10,7 +10,7 @@
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ kvm-intel ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =

View File

@@ -37,17 +37,6 @@
persistent = true;
options = "--delete-older-than 30d";
};
#let
# system = pkgs.system;
# unstable = import (builtins.fetchTarball {
# url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
# sha256 = "09dahi81cn02gnzsc8a00n945dxc18656ar0ffx5vgxjj1nhgsvy";
# }) {
# inherit system;
# config.allowUnfree = true;
# };
#in
# Dynamic power managment
# powerManagement = {