78 lines
1.6 KiB
Nix
78 lines
1.6 KiB
Nix
{ den, modules, ... }:
|
|
{
|
|
den.aspects.doloro-bootable = {
|
|
nixos = {
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
networking.hostName = "doloro-recovery";
|
|
networking.networkmanager.enable = true;
|
|
services.openssh.enable = true;
|
|
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.device = "/dev/sda";
|
|
boot.loader.grub.efiSupport = true;
|
|
boot.loader.grub.efiInstallAsRemovable = true;
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"ata_piix"
|
|
"uhci_hcd"
|
|
"ehci_pci"
|
|
"xen_blkfront"
|
|
"sr_mod"
|
|
"nvme"
|
|
"virtio_pci"
|
|
"virtio_scsi"
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
btrfs-progs
|
|
btop
|
|
chntpw
|
|
ddrescue
|
|
e2fsprogs
|
|
fastfetch
|
|
fd
|
|
gpart
|
|
git
|
|
ntfs3g
|
|
parted
|
|
pavucontrol
|
|
pciutils
|
|
ranger
|
|
rsync
|
|
testdisk
|
|
util-linux
|
|
wl-clipboard
|
|
];
|
|
|
|
users.users.doloro = {
|
|
isNormalUser = true;
|
|
group = "doloro";
|
|
extraGroups = [ "wheel" "networkmanager" ];
|
|
initialPassword = "recovery";
|
|
};
|
|
|
|
users.groups.doloro = {};
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
services.getty.autologinUser = "doloro";
|
|
systemd.services."getty@tty1".enable = false;
|
|
systemd.services."autovt@tty1".enable = false;
|
|
|
|
services.xserver.enable = false;
|
|
|
|
system.stateVersion = "25.11";
|
|
};
|
|
};
|
|
}
|