fix: make live-image work again
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
c43560ff95
commit
bd70062391
3 changed files with 55 additions and 6 deletions
51
devices/live-image/default.nix
Normal file
51
devices/live-image/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib) mkForce mkIf;
|
||||
|
||||
cfg = config.roles.server;
|
||||
in {
|
||||
|
@ -13,7 +13,7 @@ in {
|
|||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
PermitRootLogin = mkForce "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -118,10 +118,8 @@
|
|||
};
|
||||
|
||||
live-image = mkNixOS {
|
||||
extraModules = [
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
||||
# {vars.mainUser = "nixos";} FIXME: add default modules and stuff
|
||||
];
|
||||
mainUser = "nixos";
|
||||
extraModules = [./devices/live-image];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue