53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
# Root access without password
|
|
users.users.root.initialHashedPassword = "";
|
|
security.sudo.wheelNeedsPassword = false;
|
|
# Remote-install tools (nix ssh-store, nixos-anywhere) run non-interactive commands over SSH
|
|
# that zsh's glob-nomatch abort breaks; keep root on bash for this image only.
|
|
users.users.root.shell = lib.mkForce pkgs.bash;
|
|
|
|
# Networking
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Skyg Settings
|
|
skyg = {
|
|
user.enable = true;
|
|
nixos.common = {
|
|
ssh-server.enable = true;
|
|
};
|
|
};
|
|
|
|
# SSH for remote installation
|
|
services.openssh.settings.PermitRootLogin = "yes";
|
|
# # GUI with lightweight desktop
|
|
# services.xserver.enable = true;
|
|
# services.xserver.displayManager.lightdm.enable = true;
|
|
# services.xserver.desktopManager.xfce.enable = true;
|
|
|
|
# Core system packages
|
|
environment.systemPackages = with pkgs; [
|
|
# Disk tools
|
|
parted
|
|
gparted # GUI partitioner
|
|
cryptsetup
|
|
btrfs-progs
|
|
dosfstools
|
|
ntfs3g
|
|
e2fsprogs
|
|
|
|
# Utilities
|
|
curl
|
|
wget
|
|
git
|
|
htop
|
|
zellij
|
|
|
|
# Documentation
|
|
man-pages
|
|
];
|
|
|
|
# Include documentation
|
|
documentation.nixos.enable = true;
|
|
}
|