Skip to content

Instantly share code, notes, and snippets.

@devhell
Created July 9, 2020 10:20
Show Gist options
  • Save devhell/d23b0d09470894060645ad13b35e4c3c to your computer and use it in GitHub Desktop.
Save devhell/d23b0d09470894060645ad13b35e4c3c to your computer and use it in GitHub Desktop.
for flokli
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";
boot.kernelPackages = pkgs.linuxPackages_latest;
### CONSOLE TEST AREA
# boot.loader.grub.extraConfig = ''
# serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
# terminal_input --append serial
# terminal_output --append serial
# '';
# boot.kernelParams = [ "console=tty0 console=ttyS0,115200" ];
# systemd.services."serial-getty@ttyS0" = {
# enable = true;
# wantedBy = [ "getty.target" ]; # to start at boot
# serviceConfig.Restart = "always"; # restart when session is closed
# };
### END
networking.hostName = "console-kaputt-vm";
networking.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "de";
};
time.timeZone = "Europe/Berlin";
environment.systemPackages = with pkgs; [
vim
w3m
wget
];
programs.less.enable = true;
programs.ssh.startAgent = true;
programs.vim.defaultEditor = true;
services.openssh.enable = true;
sound.enable = false;
hardware.pulseaudio.enable = false;
users.users.jane = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
system.stateVersion = "20.03";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment