add diskoConfigurations

This commit is contained in:
Gerg-L 2023-04-30 18:57:45 -04:00
parent 4d8e6420e5
commit a254150a88
5 changed files with 21 additions and 5 deletions

View file

@ -67,6 +67,10 @@
++ importAll (self + "/systems/" + name);
}
);
mkDisko = names:
lib.genAttrs names (
name: (import (self + "/systems/" + name + "/disko.nix") inputs)
);
in
{
nixosConfigurations =
@ -77,6 +81,13 @@
"game-laptop"
"moms-laptop"
];
diskoConfigurations =
mkDisko
[
"gerg-desktop"
"game-laptop"
"moms-laptop"
];
}
// flake-utils.lib.eachDefaultSystem (
system: let

View file

@ -1,4 +1,4 @@
_: {
{disko, ...}: {
lib,
modulesPath,
pkgs,
@ -12,7 +12,11 @@ _: {
environment = {
noXlibs = lib.mkOverride 500 false;
defaultPackages = [];
systemPackages = [pkgs.gitMinimal pkgs.neovim];
systemPackages = [
pkgs.gitMinimal
pkgs.neovim
disko.packages.${pkgs.system}.default
];
variables = {
EDITOR = "nvim";
};
@ -34,4 +38,5 @@ _: {
auto-optimise-store = true;
};
};
sound.enable = false;
}

View file

@ -1,4 +1,4 @@
{disko, ...}: {
{disko, ...}: {disks ? [], ...}: {
imports = [disko.nixosModules.disko];
disko.devices = {
disk.nvme0n1 = {

View file

@ -1,4 +1,4 @@
{disko, ...}: {
{disko, ...}: {disks ? [], ...}: {
imports = [disko.nixosModules.disko];
disko.devices = {
disk = {

View file

@ -1,4 +1,4 @@
{disko, ...}: {
{disko, ...}: {disks ? [], ...}: {
imports = [disko.nixosModules.disko];
disko.devices = {
disk.sda = {