- Redid the flake module to be based on extendModules instead - Added wrappers - Refactored code - Updated dependencies
35 lines
678 B
Nix
35 lines
678 B
Nix
{
|
|
self,
|
|
inputs,
|
|
config,
|
|
...
|
|
}: {
|
|
configurations.nixos.hijiri-vm = {
|
|
modulesPath,
|
|
lib,
|
|
username,
|
|
...
|
|
}: {
|
|
_file = ./default.nix;
|
|
|
|
imports = [
|
|
"${modulesPath}/profiles/qemu-guest.nix"
|
|
./disks.nix
|
|
];
|
|
boot = {
|
|
supportedFilesystems = ["btrfs"];
|
|
loader.systemd-boot.enable = true;
|
|
loader.systemd-boot.configurationLimit = 1;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
nixpkgs.system = "aarch64-linux";
|
|
|
|
users.users.${username} = {
|
|
openssh.authorizedKeys.keys = lib.attrValues config.assets.sshKeys.user;
|
|
};
|
|
|
|
networking.domain = "hijiri";
|
|
networking.hostName = "vm";
|
|
};
|
|
}
|