nix-conf/hosts/nixos/configuration.nix

118 lines
2.6 KiB
Nix
Raw Normal View History

{
inputs,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2025-02-04 22:53:35 +01:00
# Use the xanmod kernel
boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
# Get nicer hostname
networking.hostName = "nixos"; # Define your hostname.
# Enable flakes
nix.settings.experimental-features = ["nix-command" "flakes"];
2025-02-09 21:53:56 +01:00
# Disable plasma
2025-02-02 23:59:46 +01:00
crony.plasma.enable = false;
2025-02-17 20:36:35 +01:00
# Disable amdgpu
crony.amdgpu.enable = false;
# Setup gpu
hardware.graphics = {
enable = true;
enable32Bit = true;
};
# Enable networking
networking.networkmanager.enable = true;
2025-02-16 12:53:40 +01:00
networking.nameservers = ["192.168.0.10" "1.1.1.1"];
services.resolved = {
enable = true;
fallbackDns = ["192.168.0.10" "1.1.1.1"];
};
# Set your time zone.
time.timeZone = "Europe/Zagreb";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "hr_HR.UTF-8";
LC_IDENTIFICATION = "hr_HR.UTF-8";
LC_MEASUREMENT = "hr_HR.UTF-8";
LC_MONETARY = "hr_HR.UTF-8";
LC_NAME = "hr_HR.UTF-8";
LC_NUMERIC = "hr_HR.UTF-8";
LC_PAPER = "hr_HR.UTF-8";
LC_TELEPHONE = "hr_HR.UTF-8";
LC_TIME = "hr_HR.UTF-8";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
options = "caps:escape";
};
2025-02-01 23:02:49 +01:00
# Enable fstrim
services.fstrim.enable = true;
# Enable ratbagd to customize mouse options
services.ratbagd.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
# Fix not saving my state
hardware.alsa.enablePersistence = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.crony = {
isNormalUser = true;
description = "Crony";
2025-02-06 23:05:19 +01:00
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode"];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile
environment.systemPackages = with pkgs; [
neovim
mangohud
2025-01-30 12:32:10 +01:00
lm_sensors
2025-02-09 15:10:55 +01:00
libva-utils
alsa-utils
];
# Enable nixd to see nixpkgs path
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
# DO NOT CHANGE
system.stateVersion = "24.11";
}