disko
This commit is contained in:
parent
0fb755d91b
commit
87e0ff243c
3 changed files with 54 additions and 0 deletions
|
|
@ -10,3 +10,11 @@
|
||||||
|
|
||||||
@ Old Computers
|
@ Old Computers
|
||||||
- laptop (Acer Swift 3) † 2025-08-05
|
- 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
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
minimal-tmux = {
|
minimal-tmux = {
|
||||||
url = "github:niksingh710/minimal-tmux-status";
|
url = "github:niksingh710/minimal-tmux-status";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
disko.url = "github:nix-community/disko";
|
||||||
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -39,6 +41,7 @@
|
||||||
catppuccin,
|
catppuccin,
|
||||||
confetti,
|
confetti,
|
||||||
bbk,
|
bbk,
|
||||||
|
disko,
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
|
@ -85,6 +88,8 @@
|
||||||
catppuccin.nixosModules.catppuccin
|
catppuccin.nixosModules.catppuccin
|
||||||
confetti.nixosModules.default
|
confetti.nixosModules.default
|
||||||
bbk.nixosModules.default
|
bbk.nixosModules.default
|
||||||
|
./maskiner/core/disk-config.nix
|
||||||
|
disko.nixosModules.disko
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
41
maskiner/core/disk-config.nix
Normal file
41
maskiner/core/disk-config.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue