This commit is contained in:
fwastring 2025-11-24 11:06:05 +01:00
parent 0fb755d91b
commit 87e0ff243c
3 changed files with 54 additions and 0 deletions

View file

@ -10,3 +10,11 @@
@ Old Computers
- laptop (Acer Swift 3) † 2025-08-05
```
nixos-anywhere -- \
--flake .#kiosk \
--generate-hardware-config nixos-generate-config ./machines/kiosk/hardware-configuration.nix \
--target-host fw@192.168.1.186
```

View file

@ -26,6 +26,8 @@
minimal-tmux = {
url = "github:niksingh710/minimal-tmux-status";
inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
};
};
@ -39,6 +41,7 @@
catppuccin,
confetti,
bbk,
disko,
...
}@inputs:
let
@ -85,6 +88,8 @@
catppuccin.nixosModules.catppuccin
confetti.nixosModules.default
bbk.nixosModules.default
./maskiner/core/disk-config.nix
disko.nixosModules.disko
];
};

View file

@ -0,0 +1,41 @@
{ lib, ... }:
{
disko.devices = {
disk = {
main = {
device = lib.mkDefault "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "1G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
swap = {
size = "101G";
content = {
type = "swap";
};
};
};
};
};
};
};
}