Skip to content

Instantly share code, notes, and snippets.

@shanedoolane
Last active February 22, 2026 22:37
Show Gist options
  • Select an option

  • Save shanedoolane/63a1ef519b4dfb5036211f248d87068b to your computer and use it in GitHub Desktop.

Select an option

Save shanedoolane/63a1ef519b4dfb5036211f248d87068b to your computer and use it in GitHub Desktop.
configuration.nix
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# hardware
hardware.enableRedistributableFirmware = true;
# Networking
networking.hostName = "media-player";
networking.networkmanager.enable = true;
# Enable a desktop environment (needed for Brave)
services.xserver.enable = true;
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
# Enable ssh
services.openssh = {
enable = true;
settings.PasswordAuthentication = true;
};
# enable tailscale services
services.tailscale.enable = true;
# enable jellyfin services
services.jellyfin.enable = true;
# Docker
virtualisation.docker.enable = true;
virtualisation.docker.enableOnBoot = true;
# Add your user to the docker group
users.users.nix = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" "networkmanager" ];
initialPassword = "changeme";
};
# enable mDNS/Avahi so your devices can discover the machine on the network
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
programs.chromium = {
enable = true;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
"fnaicdffflnofjppbagibeoednhnbjhg" # Floccus bookmark sync
];
};
# Packages
environment.systemPackages = with pkgs; [
brave
docker
docker-compose
git
wget
curl
qbittorrent
spotify
vlc
kodi
uxplay
ethtool
];
# Allow unfree packages (required for Brave)
nixpkgs.config.allowUnfree = true;
system.stateVersion = "24.05";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment