feat: added recovery nixos config
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
den,
|
||||||
|
modules,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
den.aspects.doloro-bootable = {
|
||||||
|
includes = [
|
||||||
|
<den/primary-user>
|
||||||
|
den.aspects.doloro-shared
|
||||||
|
modules.nixvim
|
||||||
|
];
|
||||||
|
homeManager = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
btrfs-progs
|
||||||
|
chntpw
|
||||||
|
ddrescue
|
||||||
|
fd
|
||||||
|
gpart
|
||||||
|
ntfs3g
|
||||||
|
parted
|
||||||
|
ranger
|
||||||
|
rsync
|
||||||
|
testdisk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
{ 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -37,6 +37,13 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
den.hosts.x86_64-linux.doloro-bootable = {
|
||||||
|
users.doloro = {
|
||||||
|
aspect = "doloro-bootable";
|
||||||
|
homeManager.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
den.schema.user.classes = lib.mkDefault ["homeManager"];
|
den.schema.user.classes = lib.mkDefault ["homeManager"];
|
||||||
|
|
||||||
# Fixes 'The option `flake.homeConfigurations' is defined multiple times while it's expected to be unique.'
|
# Fixes 'The option `flake.homeConfigurations' is defined multiple times while it's expected to be unique.'
|
||||||
|
|||||||
Reference in New Issue
Block a user