michael
This commit is contained in:
@@ -33,6 +33,10 @@
|
||||
url = "git+https://tangled.org/tangled.org/core";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs @ {flake-parts, ...}:
|
||||
@@ -41,7 +45,7 @@
|
||||
constants = import ./lib/constants.nix;
|
||||
user = constants.user;
|
||||
darwinHosts = ["chidi" "jason"];
|
||||
nixosHosts = ["tahani"];
|
||||
nixosHosts = ["michael" "tahani"];
|
||||
overlays = import ./overlays {inherit inputs;};
|
||||
in {
|
||||
systems = [
|
||||
|
||||
40
hosts/michael/default.nix
Normal file
40
hosts/michael/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
modulesPath,
|
||||
hostname,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
./disk-config.nix
|
||||
./hardware-configuration.nix
|
||||
../../modules/nixos
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.tangled.nixosModules.knot
|
||||
];
|
||||
|
||||
services.tangled.knot = {
|
||||
enable = true;
|
||||
server = {
|
||||
hostname = "knot.schmatzler.com";
|
||||
owner = "did:plc:yiapylv5gwzlyzesppjmukvj";
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "yes";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
networking.hostName = hostname;
|
||||
}
|
||||
37
hosts/michael/disk-config.nix
Normal file
37
hosts/michael/disk-config.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
ESP = {
|
||||
size = "512M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = ["umask=0077"];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
18
hosts/michael/hardware-configuration.nix
Normal file
18
hosts/michael/hardware-configuration.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
}
|
||||
@@ -2,12 +2,10 @@
|
||||
config,
|
||||
hostname,
|
||||
user,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../modules/nixos
|
||||
inputs.tangled.nixosModules.knot
|
||||
];
|
||||
|
||||
services.adguardhome = {
|
||||
@@ -30,14 +28,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.tangled.knot = {
|
||||
enable = true;
|
||||
server = {
|
||||
hostname = "knot.schmatzler.com";
|
||||
owner = "did:plc:yiapylv5gwzlyzesppjmukvj";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user