snowflake/configuration.nix

194 lines
3.9 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
./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";
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-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-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-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
spotify
2022-12-06 18:13:43 -05:00
discord
waybar
2022-12-06 21:36:50 -05:00
# utility
hyprpaper
streamlink
ranger
2022-12-06 18:13:43 -05:00
btop
2022-12-06 21:36:50 -05:00
obsidian
lazygit
# gaming
steam
wine
lutris
bottles
# 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
dunst
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 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
};
}