add a rescue iso usb build, make /tmp tmpfs, getty chaoticryptidz on lappy

This commit is contained in:
ChaotiCryptidz 2022-01-01 15:16:12 +00:00
parent fde0dc22d7
commit 4a5020043d
4 changed files with 57 additions and 0 deletions

View file

@ -17,6 +17,12 @@ in {
modules = defaultModules ++ [ ./lappy/lappy.nix ];
};
rescue-x86_64 = nixpkgs.lib.nixosSystem {
specialArgs = defaultSpecialArgs;
system = "x86_64-linux";
modules = defaultModules ++ [ ./rescue/rescue.nix ];
};
hetzner-vm = nixpkgs.lib.nixosSystem {
specialArgs = defaultSpecialArgs;
system = "x86_64-linux";

View file

@ -41,6 +41,12 @@
];
};
services.getty.extraArgs = [
"--skip-login"
"--login-options"
"chaoticryptidz"
];
networking.firewall.enable = true;
# let vscode, vivaldi, etc work.
security.unprivilegedUsernsClone = true;

44
hosts/rescue/rescue.nix Normal file
View file

@ -0,0 +1,44 @@
{ tree, modulesPath, config, pkgs, lib, ... }:
{
imports = with tree; [
users.root
users.chaoticryptidz
profiles.base
profiles.gui
profiles.network_manager
profiles.sway
profiles.tor
(modulesPath + "/installer/cd-dvd/installation-cd-base.nix")
];
home-manager.users.root = { imports = with tree; [ home.base ]; };
home-manager.users.chaoticryptidz = {
imports = with tree; [
home.base
home.gui
home.dev
home.network_manager
home.sway
home.apps.vivaldi
home.programming
home.programming.languages.nix
];
};
users.users.chaoticryptidz.initialPassword = "";
# let vscode, vivaldi, etc work.
security.unprivilegedUsernsClone = true;
networking = {
hostName = "rescue";
networkmanager.enable = true;
wireless.enable = lib.mkForce false;
};
time.timeZone = "Europe/London";
system.stateVersion = "21.11";
}

1
profiles/base/boot.nix Normal file
View file

@ -0,0 +1 @@
{ ... }: { boot.tmpOnTmpfs = true; }