Compare commits
5 commits
0480e3c947
...
a3543b42f0
Author | SHA1 | Date | |
---|---|---|---|
a3543b42f0 | |||
10ba27769a | |||
f27adb15ff | |||
f296afc1f2 | |||
57892c4d47 |
7 changed files with 95 additions and 1 deletions
|
@ -174,6 +174,7 @@
|
|||
bolty = mkServer nixpkgs-stable "x86_64-linux" "bolty";
|
||||
cupsnet = mkServer nixpkgs-stable "aarch64-linux" "cupsnet";
|
||||
mb1 = mkServer nixpkgs-stable "x86_64-linux" "mb1";
|
||||
airnix = mkServer nixpkgs-stable "aarch64-linux" "airnix";
|
||||
homescreen = mkRaspi nixpkgs-stable "homescreen";
|
||||
|
||||
bootstrap = nixpkgs-stable.lib.nixosSystem rec {
|
||||
|
|
11
nixos/boxes/airnix/README.md
Normal file
11
nixos/boxes/airnix/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
## this is a VM on mac book air M1, so aarch64
|
||||
|
||||
- VM needs 4GB RAM, 64GB disk space
|
||||
- boot from minimal nixos installer image
|
||||
|
||||
> 604ad1abbcfdd93bc6258be695a7d289756921c0e6d9b4f3afb8e98c823052ec nixos-minimal-24.05.2780.53e81e790209-aarch64-linux.iso
|
||||
> https://releases.nixos.org/nixos/unstable/nixos-23.05pre470969.0e19daa510e/nixos-minimal-23.05pre470969.0e19daa510e-x86_64-linux.iso
|
||||
|
||||
- launch in paralells
|
||||
- change root password
|
||||
- From macbook host `nix run github:numtide/nixos-anywhere -- root@10.211.55.6 --flake '.#airnix' --build-on-remote`
|
11
nixos/boxes/airnix/boot.nix
Normal file
11
nixos/boxes/airnix/boot.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
}
|
25
nixos/boxes/airnix/default.nix
Normal file
25
nixos/boxes/airnix/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
|
||||
../cli.nix
|
||||
../send-logs.nix
|
||||
./boot.nix
|
||||
./disks.nix
|
||||
];
|
||||
networking.hostName = "airnix";
|
||||
networking.hostId = "92309ac5";
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 100;
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/London";
|
||||
}
|
43
nixos/boxes/airnix/disks.nix
Normal file
43
nixos/boxes/airnix/disks.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
a = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "64M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
zfs = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "zfs";
|
||||
pool = "zroot";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
zpool = {
|
||||
zroot = {
|
||||
type = "zpool";
|
||||
rootFsOptions = {
|
||||
compression = "zstd";
|
||||
};
|
||||
mountpoint = "/";
|
||||
|
||||
datasets = {
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -38,16 +38,18 @@
|
|||
|
||||
homebrew.enable = true;
|
||||
homebrew.casks = [
|
||||
"caffeine"
|
||||
"firefox"
|
||||
"istat-menus"
|
||||
"little-snitch"
|
||||
"maccy"
|
||||
"protonmail-bridge"
|
||||
"signal"
|
||||
"steam"
|
||||
"tailscale"
|
||||
"teamviewer"
|
||||
"protonmail-bridge"
|
||||
"utm"
|
||||
"zed"
|
||||
"zoom"
|
||||
];
|
||||
home-manager.users.cyryl = {...}: {
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
};
|
||||
help.autocorrect = 1;
|
||||
init.defaultBranch = "main";
|
||||
lfs."https://git.cyplo.dev/cyplo/dotfiles.git/info/lfs".locksverify = true;
|
||||
merge.renamelimit = 8192;
|
||||
mergetool.keepBackup = false;
|
||||
pull.ff = "only";
|
||||
|
|
Loading…
Reference in a new issue