add argiletum
This commit is contained in:
Generated
+21
@@ -68,6 +68,26 @@
|
||||
"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": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -565,6 +585,7 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"disko": "disko",
|
||||
"firefox-addons": "firefox-addons",
|
||||
"flake-compat": "flake-compat",
|
||||
"flake-parts": "flake-parts",
|
||||
|
||||
@@ -38,6 +38,11 @@
|
||||
systems.url = "github:nix-systems/default";
|
||||
|
||||
# flake inputs with dependencies (in alphabetic order)
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
firefox-addons = {
|
||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
inputs = {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [ ./disk.nix ];
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
networking = {
|
||||
hostId = "5f8a1c2e";
|
||||
hostId = "c3798ccc";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 ];
|
||||
@@ -21,5 +23,5 @@
|
||||
|
||||
services.tang.enable = true;
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
system.stateVersion = "26.11";
|
||||
}
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
users = [ "alice" ];
|
||||
modules = [
|
||||
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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 = "/";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,21 +1,7 @@
|
||||
# TODO: replace with the output of:
|
||||
# sudo nixos-generate-config --show-hardware-config
|
||||
# run on the Pi after initial boot into the NixOS installer.
|
||||
# TODO: after first boot, regenerate with:
|
||||
# sudo nixos-generate-config --no-filesystems
|
||||
# (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 = [ ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user