first test

This commit is contained in:
Histausse 2023-04-10 00:44:28 +02:00
parent cb7f6d4f72
commit dbf3d50d66
2 changed files with 48 additions and 0 deletions

48
default.nix Normal file
View file

@ -0,0 +1,48 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.base;
in {
options.base = {
name = mkOption {
type = types.str;
description = "Name of the machine, use for hostname";
};
};
config = {
swapDevices = [
{
device = "/swapfile";
priority = 0;
size = 1024;
}
];
boot.kernelParams = [ "console=tty0" "console=ttyS0,115200"];
services.qemuGuest.enable = true;
networking.hostName = "${cfg.name}";
time.timeZone = "Europe/Paris";
console = {
font = "Lat2-Terminus16";
keyMap = "fr";
};
users.users.histausse = {
isNormalUser = true;
extraGroups = [
"wheel"
];
};
environment.systemPackages = with pkgs; [
vim
git
wget
];
services.openssh.enable = true;
};
}

View file