200 lines
5.0 KiB
Nix
200 lines
5.0 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, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
./modules/networking.nix
|
||
#<home-manager/nixos>
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||
# boot.kernelParams = [
|
||
# "iommu=pt"
|
||
# "vfio-pci.ids='1002:747e,1002:ab30'"
|
||
# "pcie_aspm=off"
|
||
#];
|
||
#boot.kernelModules = [
|
||
# "kvm-amd"
|
||
#];
|
||
|
||
# boot.initrd.preDeviceCommands = ''
|
||
# DEVS="0000:03:00.0 0000:03:00.1"
|
||
# for DEV in $DEVS; do
|
||
# echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
|
||
# done
|
||
# modprobe -i vfio-pci
|
||
# '';
|
||
|
||
#home-manager.useGlobalPkgs = true;
|
||
#home-manager.useUserPackages = true;
|
||
home-manager.backupFileExtension = "backup";
|
||
|
||
#home-manager.users.rainy = import ./home.nix;
|
||
|
||
networking.hostName = "rainix"; # Define your hostname.
|
||
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||
|
||
# Configure network proxy if necessary
|
||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||
|
||
# Enable networking
|
||
#networking.networkmanager.enable = true;
|
||
#networking.networkmanager.wifi.powersave = false;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "America/Los_Angeles";
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "en_US.UTF-8";
|
||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||
LC_MEASUREMENT = "en_US.UTF-8";
|
||
LC_MONETARY = "en_US.UTF-8";
|
||
LC_NAME = "en_US.UTF-8";
|
||
LC_NUMERIC = "en_US.UTF-8";
|
||
LC_PAPER = "en_US.UTF-8";
|
||
LC_TELEPHONE = "en_US.UTF-8";
|
||
LC_TIME = "en_US.UTF-8";
|
||
};
|
||
|
||
# Configure keymap in X11
|
||
services.xserver = {
|
||
layout = "us";
|
||
xkbVariant = "";
|
||
};
|
||
|
||
# nix stuff
|
||
|
||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||
|
||
nix.gc = {
|
||
automatic = true;
|
||
dates = "weekly";
|
||
options = "--delete-older-than 7d";
|
||
};
|
||
|
||
programs.nix-ld.enable = true;
|
||
programs.nix-ld.libraries = with pkgs; [
|
||
glibc
|
||
zlib
|
||
openssl
|
||
libffi
|
||
util-linux
|
||
bzip2
|
||
sqlite
|
||
ncurses
|
||
readline
|
||
gdbm
|
||
libnsl
|
||
libtirpc
|
||
libxcrypt
|
||
gcc
|
||
util-linux
|
||
freetype
|
||
];
|
||
|
||
|
||
# cosmic
|
||
services.desktopManager.cosmic.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.rainy = {
|
||
isNormalUser = true;
|
||
description = "rainy";
|
||
extraGroups = [ "networkmanager" "wheel" ];
|
||
ignoreShellProgramCheck = true;
|
||
packages = with pkgs; [
|
||
pavucontrol
|
||
#inputs.zen-browser.packages."${system}".specific
|
||
#kitty
|
||
#krita
|
||
#steam
|
||
#floorp
|
||
#legcord
|
||
#fastfetch
|
||
#chromium
|
||
#element-desktop
|
||
#vscodium
|
||
#upscayl
|
||
#helix
|
||
#protonup
|
||
#spotify
|
||
#unzip
|
||
#zip
|
||
];
|
||
shell = pkgs.fish;
|
||
};
|
||
|
||
#steam
|
||
|
||
programs.steam.enable = true;
|
||
|
||
#virt
|
||
virtualisation.virtualbox.host.enable = true;
|
||
users.extraGroups.vboxusers.members = [ "rainy" ];
|
||
virtualisation.podman = {
|
||
enable = true;
|
||
dockerCompat = true;
|
||
};
|
||
#programs.fish.enable = true;
|
||
|
||
# Allow unfree packages
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
#hardware.pulseaudio.enable = true;
|
||
#hardware.pulseaudio.support32Bit = 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.
|
||
# wget
|
||
# pipewire-pulse
|
||
distrobox
|
||
];
|
||
|
||
# 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;
|
||
|
||
# Open ports in the firewall.
|
||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||
# Or disable the firewall altogether.
|
||
networking.firewall.enable = false;
|
||
|
||
# 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?
|
||
|
||
}
|