Skip to content

Commit ee0f957

Browse files
committed
move and fix template
1 parent 2f440f3 commit ee0f957

File tree

13 files changed

+8
-111
lines changed

13 files changed

+8
-111
lines changed

templates/basic/flake.nix

Lines changed: 0 additions & 57 deletions
This file was deleted.

templates/default.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{config, ...}: {
22
flake.templates = {
3-
default = config.flake.templates.basic;
4-
basic = {
5-
path = ./basic;
3+
default = {
4+
path = ./default;
65
description = "Example flake using spo-anywhere";
76
};
87
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

templates/basic/modules/hardware.nix renamed to templates/default/disko.nix

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
{modulesPath, ...}: {
2-
imports = [
3-
(modulesPath + "/profiles/minimal.nix")
4-
];
5-
hardware.enableAllFirmware = true;
6-
# nixpkgs.config.allowUnfree = true;
1+
{
72
disko.devices = {
83
disk = {
9-
vda = {
10-
device = "/dev/vda";
4+
main = {
115
type = "disk";
6+
device = "/dev/sda";
127
content = {
138
type = "gpt";
149
partitions = {
1510
boot = {
1611
size = "1M";
1712
type = "EF02";
13+
priority = 1;
1814
};
1915
ESP = {
20-
size = "100M";
16+
size = "512M";
2117
type = "EF00";
2218
content = {
2319
type = "filesystem";

templates/hetzner/flake.nix renamed to templates/default/flake.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
inputs = {
3-
# spo-anywhere.url = "github:mlabs-haskell/spo-anywhere/aciceri/hetzner-template"; # TODO go back to `main` once merged
4-
spo-anywhere.url = "../..";
3+
spo-anywhere.url = "github:mlabs-haskell/spo-anywhere";
54
srvos.url = "github:nix-community/srvos";
65
nixpkgs.follows = "srvos/nixpkgs";
76
disko.follows = "spo-anywhere/disko";
File renamed without changes.

0 commit comments

Comments
 (0)