Skip to content

Instantly share code, notes, and snippets.

@YellowOnion
Created January 23, 2021 03:11
Show Gist options
  • Save YellowOnion/24f09be327277aac68bb8c1b9aeaa1d2 to your computer and use it in GitHub Desktop.
Save YellowOnion/24f09be327277aac68bb8c1b9aeaa1d2 to your computer and use it in GitHub Desktop.
# This module defines a small NixOS installation CD. It does not
# contain any graphical stuff.
{config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix>
# Provide an initial copy of the NixOS channel so that the user
# doesn't need to run "nix-channel --update" first.
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
];
# boot.kernelPackages = pkgs.linuxPackages_latest;
console.keyMap = "dvorak";
boot.supportedFilesystems = ["bcachefs"];
services.xserver.layout = "us";
services.xserver.xkbVariant = "dvorak";
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
let pubfile = builtins.fetchurl https://gist.githubusercontent.com/redacted/id_ed25519.pub; in
users.users.root.openssh.authorizedKeys.keyFiles = [ pubfile ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment