snowflake/configuration.nix

229 lines
4.7 KiB
Nix
Raw Normal View History

2022-12-06 01:24:54 -05:00
# 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).
2022-12-06 18:13:43 -05:00
{ config, pkgs, flake-self, inputs, ... }:
2022-12-06 01:24:54 -05:00
{
imports =
[ # Include the results of the hardware scan.
2022-12-06 18:13:43 -05:00
./hardware-configuration.nix
2022-12-08 04:45:47 -05:00
./modules/hyprland/default.nix
2022-12-06 01:24:54 -05:00
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 5;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2022-12-08 04:45:47 -05:00
boot.extraModulePackages = with config.boot.kernelPackages;
[ v4l2loopback.out ];
boot.kernelModules = [ "v4l2loopback" ];
2022-12-06 01:24:54 -05:00
networking.hostName = "nixos"; # 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;
# Set your time zone.
time.timeZone = "America/New_York";
# 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";
};
services = {
xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
displayManager = {
2022-12-06 18:13:43 -05:00
gdm.enable = true;
gdm.wayland = true;
2022-12-06 01:24:54 -05:00
};
desktopManager.plasma5.enable = true;
};
};
services.xserver = {
layout = "us";
xkbVariant = "";
};
2022-12-06 21:36:50 -05:00
services.printing.enable = true;
2022-12-08 04:45:47 -05:00
services.spotifyd.enable = true;
2022-12-06 01:24:54 -05:00
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
2022-12-08 04:45:47 -05:00
wireplumber.enable = true;
2022-12-06 01:24:54 -05:00
};
2022-12-06 21:36:50 -05:00
# enable fish
2022-12-06 18:13:43 -05:00
programs.fish.enable = true;
users.defaultUserShell = pkgs.fish;
2022-12-06 21:36:50 -05:00
#polkit
2022-12-06 18:13:43 -05:00
security.polkit.enable = true;
2022-12-06 01:24:54 -05:00
2022-12-08 04:45:47 -05:00
programs.steam.enable = true;
2022-12-06 21:36:50 -05:00
#users
2022-12-06 01:24:54 -05:00
users.users.notoh = {
isNormalUser = true;
description = "notoh";
2022-12-06 21:36:50 -05:00
extraGroups = [ "networkmanager" "wheel" "disk" "video" ];
2022-12-06 01:24:54 -05:00
packages = with pkgs; [
2022-12-06 21:36:50 -05:00
# essential
2022-12-06 01:24:54 -05:00
firefox
2022-12-06 18:13:43 -05:00
neovim
2022-12-06 01:24:54 -05:00
neofetch
bitwarden
2022-12-06 18:13:43 -05:00
discord
2022-12-08 04:45:47 -05:00
spotify-tui
spotifyd
mpv
ani-cli
trackma
2022-12-06 21:36:50 -05:00
# utility
hyprpaper
2022-12-08 04:45:47 -05:00
waybar
2022-12-06 21:36:50 -05:00
streamlink
ranger
2022-12-06 18:13:43 -05:00
btop
2022-12-06 21:36:50 -05:00
obsidian
lazygit
2022-12-08 04:45:47 -05:00
obs-studio
pavucontrol
2022-12-06 21:36:50 -05:00
# gaming
steam
wine
lutris
bottles
2022-12-08 04:45:47 -05:00
gamescope
2022-12-06 21:36:50 -05:00
# fun stuff
cbonsai
pipes-rs
cmatrix
2022-12-06 01:24:54 -05:00
];
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
2022-12-06 18:13:43 -05:00
git
2022-12-06 01:24:54 -05:00
alacritty
gcc
2022-12-06 18:13:43 -05:00
stow
starship
rustup
cargo
jre
jdk
nodejs
polkit_gnome
appimage-run
2022-12-06 21:36:50 -05:00
wlogout
2022-12-08 04:45:47 -05:00
wireplumber
2022-12-06 21:36:50 -05:00
dunst
2022-12-08 04:45:47 -05:00
appimage-run
qt6.qtwayland
qt5.qtwayland
qt6.full
qt5.full
cmake
meson
python3
python3.pkgs.pip
2022-12-06 01:24:54 -05:00
];
system.stateVersion = "23.05"; # Did you read the comment?
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
2022-12-06 21:49:46 -05:00
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
2022-12-06 18:13:43 -05:00
};
2022-12-06 21:49:46 -05:00
system.autoUpgrade = {
enable = true;
channel = "https://nixos.org/channel/nixos-unstable";
};
2022-12-06 18:13:43 -05:00
hardware = {
nvidia = {
powerManagement.enable = true;
modesetting.enable = true;
};
opengl.extraPackages = with pkgs; [nvidia-vaapi-driver];
};
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
fonts = {
enableDefaultFonts = true;
fontDir.enable = true;
fonts = with pkgs; [
inter
jetbrains-mono
nerdfonts
noto-fonts-cjk-sans
recursive
rubik
twemoji-color-font
font-awesome
powerline-fonts
fira-code-symbols
];
fontconfig = {
enable = true;
allowBitmaps = true;
defaultFonts = {
monospace = ["Maple Mono NF"];
sansSerif = ["Google Sans Text"];
};
hinting.style = "hintfull";
};
2022-12-06 01:24:54 -05:00
};
2022-12-08 04:45:47 -05:00
nixpkgs.config.permittedInsecurePackages = [
"qtwebkit-5.212.0-alpha4"
];
2022-12-06 01:24:54 -05:00
}