Files
nixos-conf/system/yukigekko/configuration.nix
2025-10-09 18:13:27 -06:00

128 lines
2.9 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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, home-manager, timezone, user, system, locale, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
#system configs
../defaults/system.nix
../defaults/locale.nix
../defaults/boot.nix
../defaults/services.nix
../defaults/users.nix
#system packages
../packages/sddm/sddm.nix
#flatpaks
# ../extras/flatpak.nix
];
networking.hostName = "yukigekko"; # Define your hostname.
networking.networkmanager.enable = true;
networking.extraHosts = ''
10.0.0.217 hoardfrost
174.63.4.139 frosty
'';
services.logind.lidSwitchExternalPower = "ignore";
services.blueman.enable = true;
time.timeZone = "${timezone}";
programs.river-classic.enable = true;
xdg.portal = {
enable = true;
config.common.default = "*";
extraPortals = [
pkgs.kdePackages.xdg-desktop-portal-kde
];
};
programs.firefox.enable = true;
programs.zsh.enable = true;
programs.appimage.enable = true;
# programs.openvpn3.enable = true;
# Enable OpenGL
hardware.graphics = {
enable = true;
};
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
# hardware.nvidia.prime.intelBusId = "PCI:0@0:2:0";
# hardware.nvidia.prime.nvidiaBusId = "PCI:1@0:0:0";
# hardware.nvidia.prime.sync.enable = true;
# hardware.nvidia.prime.offload.enable = false;
# hardware.nvidia.prime.offload.enableOffloadCmd = false;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
pavucontrol
nh
docker
docker-compose
podman
skopeo
buildkit
tree
swaylock-effects
code-cursor-fhs
moonlight-qt
# wayland
# wayland-protocols
# libxkbcommon
# expat
# fontconfig
# freetype
# freetype.dev
# libGL
# pkg-config
# xorg.libX11
# xorg.libXcursor
# xorg.libXi
# xorg.libXrandr
];
environment.pathsToLink = ["/share/zsh"];
virtualisation.containers.policy = {
default = [{type = "insecureAcceptAnything";}];
transports = {
docker-daemon = {
"" = [{type = "insecureAcceptAnything";}];
};
};
};
nix.settings.experimental-features = ["nix-command" "flakes"];
system.stateVersion = "25.05";
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
system.autoUpgrade.flake = "../../flake.nix";
qt.platformTheme = "kde6";
}