Compare commits

..

5 commits

Author SHA1 Message Date
a3543b42f0 add lfs lock support for the clients
Some checks failed
use nix / build (push) Failing after 5m39s
2024-07-17 10:53:33 +01:00
10ba27769a fix zfs boot on mac vm 2024-07-17 10:49:03 +01:00
f27adb15ff add caffeine on a mac 2024-07-17 10:49:02 +01:00
f296afc1f2 add airnix stub 2024-07-17 10:49:02 +01:00
57892c4d47 add zed on airy 2024-07-17 10:49:02 +01:00
7 changed files with 95 additions and 1 deletions

View file

@ -174,6 +174,7 @@
bolty = mkServer nixpkgs-stable "x86_64-linux" "bolty"; bolty = mkServer nixpkgs-stable "x86_64-linux" "bolty";
cupsnet = mkServer nixpkgs-stable "aarch64-linux" "cupsnet"; cupsnet = mkServer nixpkgs-stable "aarch64-linux" "cupsnet";
mb1 = mkServer nixpkgs-stable "x86_64-linux" "mb1"; mb1 = mkServer nixpkgs-stable "x86_64-linux" "mb1";
airnix = mkServer nixpkgs-stable "aarch64-linux" "airnix";
homescreen = mkRaspi nixpkgs-stable "homescreen"; homescreen = mkRaspi nixpkgs-stable "homescreen";
bootstrap = nixpkgs-stable.lib.nixosSystem rec { bootstrap = nixpkgs-stable.lib.nixosSystem rec {

View 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`

View 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;
}

View 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";
}

View 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 = {
};
};
};
};
}

View file

@ -38,16 +38,18 @@
homebrew.enable = true; homebrew.enable = true;
homebrew.casks = [ homebrew.casks = [
"caffeine"
"firefox" "firefox"
"istat-menus" "istat-menus"
"little-snitch" "little-snitch"
"maccy" "maccy"
"protonmail-bridge"
"signal" "signal"
"steam" "steam"
"tailscale" "tailscale"
"teamviewer" "teamviewer"
"protonmail-bridge"
"utm" "utm"
"zed"
"zoom" "zoom"
]; ];
home-manager.users.cyryl = {...}: { home-manager.users.cyryl = {...}: {

View file

@ -27,6 +27,7 @@
}; };
help.autocorrect = 1; help.autocorrect = 1;
init.defaultBranch = "main"; init.defaultBranch = "main";
lfs."https://git.cyplo.dev/cyplo/dotfiles.git/info/lfs".locksverify = true;
merge.renamelimit = 8192; merge.renamelimit = 8192;
mergetool.keepBackup = false; mergetool.keepBackup = false;
pull.ff = "only"; pull.ff = "only";