Skip to content

Instantly share code, notes, and snippets.

@admiral0
Last active May 17, 2025 12:15
Show Gist options
  • Save admiral0/d02a18a2c247d7f4ec5d1bb0a481fba7 to your computer and use it in GitHub Desktop.
Save admiral0/d02a18a2c247d7f4ec5d1bb0a481fba7 to your computer and use it in GitHub Desktop.
Jovian configuration for my HTPC
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# nix-channel --add https://github.com/Jovian-Experiments/Jovian-NixOS/archive/refs/heads/development.tar.gz jovian
<jovian/modules>
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel instead of LTS
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "aphrodite"; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
# Enable bluetooth
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# Set your time zone.
time.timeZone = "Europe/Rome";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "it_IT.UTF-8";
LC_IDENTIFICATION = "it_IT.UTF-8";
LC_MEASUREMENT = "it_IT.UTF-8";
LC_MONETARY = "it_IT.UTF-8";
LC_NAME = "it_IT.UTF-8";
LC_NUMERIC = "it_IT.UTF-8";
LC_PAPER = "it_IT.UTF-8";
LC_TELEPHONE = "it_IT.UTF-8";
LC_TIME = "it_IT.UTF-8";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
# services.xserver.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
#nixpkgs.overlays = [
# (final: prev: {
# steamPackages = prev.steamPackages.overrideScope (scopeFinal: scopeSuper: {
# steam-fhsenv = scopeSuper.steam-fhsenv.override ({ extraLibraries ? pkgs': [], ... }: {
# extraLibraries = pkgs': (extraLibraries pkgs') ++ (with pkgs'; [
# gst_all_1.gst-plugins-good
# gst_all_1.gst-plugins-bad
# gst_all_1.gst-plugins-ugly
# gst_all_1.gst-libav
# ]);
# });
# steam = scopeSuper.steam;
# steam-fhsenv-small = scopeSuper.steam-fhsenv.small;
# });
# })
#];
programs.steam.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.admiral0 = {
isNormalUser = true;
description = "Radu Andries";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
kdePackages.kate
steamPackages.steam
flatpak
kdePackages.discover
# emulators - some are not in nixos any more
dolphin-emu
# cemu
# yuzu-mainline
# ryujinx
pcsx2
# rpcs3
steam-rom-manager
vesktop
# thunderbird
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
btop
screen
xorg.xhost
file
obs-studio-plugins.obs-vkcapture
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
programs.ssh.forwardX11 = true;
#services.openssh.settings.forwardX11 = true;
# We want flatpaks
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
# OBS
programs.obs-studio = {
enable = true;
enableVirtualCamera = true;
plugins = with pkgs.obs-studio-plugins; [
obs-gstreamer
obs-vaapi
obs-vkcapture
];
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
jovian = {
decky-loader = {
enable = true; # fails to build
extraPackages = with pkgs;[
python3
];
user = "admiral0";
};
steam = {
enable = true;
autoStart = true;
user = "admiral0";
desktopSession = "plasma";
};
steamos = {
useSteamOSConfig = true;
};
};
# Fix issue with missing systemd
systemd.services.decky-loader.path = [
"${pkgs.systemd}"
];
services.udev.extraRules = ''
SUBSYSTEM=="input", ENV{ID_INPUT_ACCELEROMETER}=="?*", TAG+="uaccess"
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment