Skip to content

Commit 4c66888

Browse files
committed
hosts/jupitertwo: init
1 parent 2ebc1b4 commit 4c66888

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
raisin = { };
116116
zeph = { };
117117
};
118+
"riscv64-linux" = {
119+
jupitertwo = {
120+
extraConfig = [ { nixpkgs.buildPlatform.system = "x86_64-linux"; } ];
121+
};
122+
};
118123
"aarch64-linux" = { };
119124
"aarch64-darwin" = { };
120125
};

hosts/jupitertwo/configuration.nix

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{ pkgs, inputs, ... }:
2+
3+
let
4+
hn = "jupitertwo";
5+
in
6+
{
7+
imports = [
8+
#../../profiles/interactive.nix
9+
../../profiles/core.nix
10+
../../mixins/common.nix
11+
12+
#inputs.determinate.nixosModules.default
13+
14+
"${inputs.nixos-hardware-k3}/spacemit/k3-pico-itx"
15+
];
16+
17+
config = {
18+
nixpkgs.hostPlatform.system = "riscv64-linux";
19+
system.stateVersion = "26.05";
20+
21+
time.timeZone = "America/Chicago";
22+
23+
networking.hostName = hn;
24+
nixcfg.common.hostColor = "blue";
25+
nixcfg.common.wifiWorkaround = true;
26+
27+
services.tailscale.useRoutingFeatures = "server";
28+
29+
systemd.network.enable = true;
30+
31+
fileSystems = {
32+
"/" = {
33+
fsType = "ext4";
34+
device = "/dev/disk/by-partlabel/root";
35+
neededForBoot = true;
36+
};
37+
"/boot" = {
38+
fsType = "vfat";
39+
device = "/dev/disk/by-partlabel/boot";
40+
neededForBoot = true;
41+
};
42+
};
43+
swapDevices = [ { device = "/dev/disk/by-partlabel/swap"; } ];
44+
};
45+
}

0 commit comments

Comments
 (0)