137 lines
4.1 KiB
Nix
137 lines
4.1 KiB
Nix
# 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, lib, inputs, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
inputs.home-manager.nixosModules.default
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
networking.hostName = "cspark-nixos-laptop"; # Define your hostname.
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||
|
||
# Enable the Sway Tiling Compositor and add extra system packages.
|
||
programs.sway = {
|
||
enable = true;
|
||
extraPackages = with pkgs; [
|
||
swaylock # Locking
|
||
swayidle # Idle Detection (For locking)
|
||
foot # Terminal Emulator
|
||
dmenu # Application Launcher
|
||
wmenu # Application Launcher - Wayland
|
||
networkmanager_dmenu # Network Manager dmenu script
|
||
wdisplays # Manage wayland displays
|
||
wlsunset # Day/night gamma adjustment/filter for wayland
|
||
sway-contrib.grimshot # Screenshot tool for wayland
|
||
mako # Notification Daemon
|
||
|
||
themix-gui # Application to design GTK themes
|
||
|
||
lxqt.pcmanfm-qt # File Manager
|
||
lxqt.lxqt-archiver # Archiver
|
||
qt6Packages.qt6ct # Manage QT6 Themes
|
||
libsForQt5.qt5ct # Manage QT5 Themes
|
||
lxappearance # Manage GTK Themes
|
||
kdePackages.polkit-kde-agent-1 # Polkit Prompt for password prompts etc
|
||
];
|
||
};
|
||
# XDG Portal Integration (For file chooser/screensharing etc)
|
||
xdg.portal.enable = true;
|
||
xdg.portal.wlr.enable = true;
|
||
xdg.portal.extraPortals = with pkgs; [ kdePackages.xdg-desktop-portal-kde ];
|
||
# Whether to enable Qt configuration, including theming.
|
||
qt.enable = true;
|
||
# Enable xwayland support
|
||
programs.xwayland.enable = true;
|
||
# Enable polkit
|
||
security.polkit.enable = true;
|
||
|
||
# GTK themes are not applied in Wayland applications / Window Decorations missing / Cursor looks different
|
||
programs.dconf.enable = true;
|
||
|
||
# Enable CUPS to print documents.
|
||
services.printing.enable = true;
|
||
|
||
# Enable sound with pipewire.
|
||
sound.enable = true;
|
||
hardware.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;
|
||
|
||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||
# no need to redefine it in your config for now)
|
||
#media-session.enable = true;
|
||
};
|
||
|
||
# Home Manager Configuration
|
||
home-manager = {
|
||
extraSpecialArgs = { inherit inputs; };
|
||
users = {
|
||
"cspark" = import ./home.nix;
|
||
};
|
||
};
|
||
|
||
# Steam Game Platform
|
||
programs.steam = {
|
||
enable = true;
|
||
# remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||
# dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||
gamescopeSession.enable = true;
|
||
};
|
||
|
||
# Waydroid Android Emulation
|
||
virtualisation.waydroid.enable = true;
|
||
|
||
# List packages installed in system profile. To search, run:
|
||
# $ nix search wget
|
||
environment.systemPackages = with pkgs; [
|
||
git
|
||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||
cifs-utils
|
||
exfatprogs
|
||
neofetch
|
||
appimage-run
|
||
wl-clipboard
|
||
python3
|
||
usbutils
|
||
nvtop-intel
|
||
xdg-user-dirs
|
||
];
|
||
|
||
# Set konsole to be default terminal
|
||
environment.sessionVariables = {
|
||
TERM = "foot";
|
||
QT_QPA_PLATFORM = "wayland-egl";
|
||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||
SDL_VIDEODRIVER = "wayland";
|
||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||
};
|
||
environment.variables = {
|
||
TERM = "foot";
|
||
QT_QPA_PLATFORM = "wayland-egl";
|
||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||
SDL_VIDEODRIVER = "wayland";
|
||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||
};
|
||
|
||
}
|