add a rescue iso usb build, make /tmp tmpfs, getty chaoticryptidz on lappy
This commit is contained in:
parent
fde0dc22d7
commit
4a5020043d
|
@ -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";
|
||||
|
|
|
@ -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
44
hosts/rescue/rescue.nix
Normal 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
1
profiles/base/boot.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{ ... }: { boot.tmpOnTmpfs = true; }
|
Loading…
Reference in a new issue