mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-20 14:04:13 -05:00
42 lines
857 B
Nix
42 lines
857 B
Nix
{
|
|
config,
|
|
inputs,
|
|
pkgs,
|
|
modulesPath,
|
|
lib,
|
|
...
|
|
}: let
|
|
loginKey = builtins.readFile ./installer.pub;
|
|
in {
|
|
imports = [
|
|
inputs.disko.nixosModules.disko
|
|
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
inputs.nvix.packages.${pkgs.system}.default
|
|
vim
|
|
git
|
|
just
|
|
curl
|
|
wget
|
|
disko
|
|
];
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
boot.supportedFilesystems = lib.mkForce ["zfs" "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs"];
|
|
|
|
networking = {
|
|
wireless.enable = lib.mkForce false;
|
|
networkmanager.enable = true;
|
|
enableIPv6 = false;
|
|
};
|
|
|
|
users.users.nixos.openssh.authorizedKeys.keys = [loginKey];
|
|
users.users.root.openssh.authorizedKeys.keys = [loginKey];
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
}
|