WIP mobile, broken build

This commit is contained in:
Henry Hiles 2025-07-12 18:21:49 -04:00
commit 4a03eb9193
No known key found for this signature in database
14 changed files with 95 additions and 82 deletions

6
modules/common/arch.nix Normal file
View file

@ -0,0 +1,6 @@
{lib, ...}: {
nixpkgs = {
hostPlatform = lib.mkDefault "x86_64-linux";
buildPlatform = "x86_64-linux";
};
}

View file

@ -1,23 +1,14 @@
{
inputs,
pkgs,
lib,
...
}: let
pkg = inputs.nh.packages.${pkgs.system}.default;
exe = lib.getExe pkg;
in {
programs.nh = {
enable = true;
package = pkg;
clean.enable = true;
flake = "/home/quadradical/.config/nixos";
};
environment.shellAliases = {
clean = "${exe} clean all";
clean = "nh clean all";
update = "env -C ~/.config/nixos nix flake update && rebuild";
rebuild = "${exe} os switch";
rebuild-server = "${exe} os switch --hostname quadraticserver --target-host 192.168.0.132";
rebuild = "nh os switch";
rebuild-server = "nh os switch --hostname quadraticserver --target-host 192.168.0.132";
};
}