Files
2026-07-25 21:08:05 -07:00

105 lines
2.9 KiB
Nix

# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
lib,
config,
pkgs,
...
}:
let
hostname = "WarNyx";
in
{
# You can import other NixOS modules here
imports = [
# If you want to use modules your own flake exports (from modules/nixos):
# inputs.self.nixosModules.example
# Or modules from other flakes (such as nixos-hardware):
# inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-ssd
# You can also split up your configuration and import pieces of it here:
# ./users.nix
# Import your generated (nixos-generate-config) hardware configuration
./hardware-configuration.nix
../common/global/default.nix
../common/users/Winter/default.nix
../common/users/Ekisha/default.nix
../common/features/DesktopNiri.nix
../common/features/DesktopKDEPlasma.nix
../common/features/Applications.nix
../common/features/servers/minecraft.nix
inputs.home-manager.nixosModules.home-manager
];
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
inputs.self.overlays.additions
inputs.self.overlays.modifications
inputs.self.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
# build home-manager with nixos-rebuild and not home-manager command
home-manager = {
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "backup";
users = {
Winter = import ../../home/Winter/${hostname}.nix;
minecraft = import ../../home/Winter/minecraft.nix;
Ekisha = import ../../home/Ekisha/${hostname}.nix;
};
};
networking.extraHosts = "
10.0.0.194 thearcticcircle.ddns.net
";
environment.systemPackages = with pkgs; [
nvtopPackages.nvidia # GPU monitor
];
#nvidia drivers from nixOS wiki
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = false;
networking.hostName = hostname;
# This setups a SSH server. Very important if you're setting up a headless system.
# Feel free to remove if you don't need it.
#Unused, keeping for later reference
services.openssh = {
enable = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "25.11";
}