add argiletum
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 9s
Check Nix flake / Perform Nix flake checks (pull_request) Failing after 2m17s

This commit is contained in:
2026-05-03 14:09:35 -04:00
parent 9222be4052
commit 43c026c451
6 changed files with 80 additions and 19 deletions
Generated
+21
View File
@@ -68,6 +68,26 @@
"type": "github" "type": "github"
} }
}, },
"disko": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1777713215,
"narHash": "sha256-8GzXDOXckDWwST8TY5DbwYFjdvQLlP7K9CLSVx6iTTo=",
"owner": "nix-community",
"repo": "disko",
"rev": "63b4e7e6cf75307c1d26ac3762b886b5b0247267",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "disko",
"type": "github"
}
},
"firefox-addons": { "firefox-addons": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -565,6 +585,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"disko": "disko",
"firefox-addons": "firefox-addons", "firefox-addons": "firefox-addons",
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
+5
View File
@@ -38,6 +38,11 @@
systems.url = "github:nix-systems/default"; systems.url = "github:nix-systems/default";
# flake inputs with dependencies (in alphabetic order) # flake inputs with dependencies (in alphabetic order)
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = { firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs = { inputs = {
+4 -2
View File
@@ -1,9 +1,11 @@
{ lib, ... }: { lib, ... }:
{ {
imports = [ ./disk.nix ];
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
networking = { networking = {
hostId = "5f8a1c2e"; hostId = "c3798ccc";
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [ 80 ]; allowedTCPPorts = [ 80 ];
@@ -21,5 +23,5 @@
services.tang.enable = true; services.tang.enable = true;
system.stateVersion = "25.11"; system.stateVersion = "26.11";
} }
+1
View File
@@ -7,5 +7,6 @@
users = [ "alice" ]; users = [ "alice" ];
modules = [ modules = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4 inputs.nixos-hardware.nixosModules.raspberry-pi-4
inputs.disko.nixosModules.disko
]; ];
} }
+46
View File
@@ -0,0 +1,46 @@
{
disko.devices = {
disk = {
# SD card — change device to /dev/sda if booting from USB instead
main = {
type = "disk";
device = "/dev/mmcblk0";
content = {
type = "table";
format = "mbr";
partitions = [
{
# Raspberry Pi firmware partition — must be vfat and first
name = "firmware";
type = "primary";
start = "1MiB";
end = "512MiB";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/firmware";
mountOptions = [
"fmask=0077"
"dmask=0077"
];
};
}
{
# Root filesystem
name = "root";
type = "primary";
start = "512MiB";
end = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}
+3 -17
View File
@@ -1,21 +1,7 @@
# TODO: replace with the output of: # TODO: after first boot, regenerate with:
# sudo nixos-generate-config --show-hardware-config # sudo nixos-generate-config --no-filesystems
# run on the Pi after initial boot into the NixOS installer. # (disko owns fileSystems; do not add them here)
{ ... }: { ... }:
{ {
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot/firmware" = {
device = "/dev/disk/by-label/NIXOS_BOOT";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ]; swapDevices = [ ];
} }