fix: make live-image work again
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-22 23:25:38 -05:00
parent c43560ff95
commit bd70062391
3 changed files with 55 additions and 6 deletions

View file

@ -0,0 +1,51 @@
{
mainUser,
nixpkgs,
self,
...
}: {
# ------------------------------------------------
# Imports
# ------------------------------------------------
imports = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
self.nixosModules.base
self.nixosModules.server
];
# ------------------------------------------------
# `Self` Modules configuration
# ------------------------------------------------
roles.base = {
enable = true;
user = mainUser;
};
roles.server = {
user = mainUser;
sshd.enable = true;
};
services.kmscon.enable = true;
home-manager.users.${mainUser} = {
imports = [
self.homeManagerModules.neovim
self.homeManagerModules.shell
];
programs = {
bash = {
enable = true;
promptMainColor = "purple";
};
neovim = {
enable = true;
enableIde = true;
user = mainUser;
};
};
};
}

View file

@ -3,7 +3,7 @@
lib, lib,
... ...
}: let }: let
inherit (lib) mkIf; inherit (lib) mkForce mkIf;
cfg = config.roles.server; cfg = config.roles.server;
in { in {
@ -13,7 +13,7 @@ in {
enable = true; enable = true;
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = false;
PermitRootLogin = "no"; PermitRootLogin = mkForce "no";
}; };
}; };
}; };

View file

@ -118,10 +118,8 @@
}; };
live-image = mkNixOS { live-image = mkNixOS {
extraModules = [ mainUser = "nixos";
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" extraModules = [./devices/live-image];
# {vars.mainUser = "nixos";} FIXME: add default modules and stuff
];
}; };
}; };