Skip to content

Commit

Permalink
redfox: disko configure
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Jan 23, 2024
1 parent 91356e2 commit e5a618c
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 15 deletions.
1 change: 1 addition & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ in
system = "x86_64-linux";
modules = [
./redfox/_hardware.nix
inputs.disko.nixosModules.disko
inputs.bin.nixosModules.default
redfox-module
];
Expand Down
3 changes: 0 additions & 3 deletions hosts/redfox/_hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@

swapDevices = [ ];

networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens3.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
20 changes: 8 additions & 12 deletions hosts/redfox/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{ modulesPath, config, lib, pkgs, ... }: {
{ modulesPath, pkgs, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
];

boot.loader.systemd-boot.enable = true;

boot.loader.grub = {
device = "nodev";
efiSupport = true;
efiInstallAsRemovable = true;
};
boot.kernelPackages = pkgs.linuxPackages_latest;

environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.gitMinimal
environment.systemPackages = with pkgs; [
curl
wget
git
];

users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOqoRDiXXxBKU0FjnT2YcFnczYBKMKXGPgD9IVfBg5gq ocfox@arcticfox"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOqoRDiXXxBKU0FjnT2YcFnczYBKMKXGPgD9IVfBg5gq"
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHnLWTS5/vPyPFY+tCVYn3Ejf3NQpQzcGnWLQTyE7lbzAAAAC3NzaDpwYXNzZm94"
];

system.stateVersion = "24.05";
Expand Down
36 changes: 36 additions & 0 deletions hosts/redfox/disko.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
devices = {
disk = {
vdb = {
device = "/dev/vda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
end = "-2G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
plainSwap = {
size = "100%";
content.type = "swap";
};
};
};
};
};
};
}

0 comments on commit e5a618c

Please sign in to comment.