WIP mobile, broken build
This commit is contained in:
parent
b506e8af60
commit
4a03eb9193
14 changed files with 95 additions and 82 deletions
6
modules/common/arch.nix
Normal file
6
modules/common/arch.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{lib, ...}: {
|
||||
nixpkgs = {
|
||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
buildPlatform = "x86_64-linux";
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue