snowflake/configuration.nix

229 lines
4.2 KiB
Nix
Raw Normal View History

2022-12-12 00:34:25 -05:00
{ config, pkgs, inputs, ... }:
2022-12-06 01:24:54 -05:00
{
imports =
2022-12-12 00:34:25 -05:00
[
2022-12-06 18:13:43 -05:00
./hardware-configuration.nix
2022-12-12 00:34:25 -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;
2022-12-12 00:34:25 -05:00
[ v4l2loopback.out ];
boot.kernelModules = [ "v4l2loopback" "kvm-intel" ];
2022-12-06 01:24:54 -05:00
2022-12-12 00:34:25 -05:00
virtualisation.libvirtd.enable = true;
2022-12-06 01:24:54 -05:00
2022-12-12 00:34:25 -05:00
networking.hostName = "nixos";
2022-12-06 01:24:54 -05:00
networking.networkmanager.enable = true;
2022-12-12 00:34:25 -05:00
time.timeZone = "America/New_York";
2022-12-06 01:24:54 -05:00
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-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-12 00:34:25 -05:00
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-12 00:34:25 -05:00
unzip
etcher
virt-manager
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-12 00:34:25 -05:00
cava
2022-12-06 21:36:50 -05:00
2022-12-06 01:24:54 -05:00
];
};
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
2022-12-12 00:34:25 -05:00
libvirt
qemu_kvm
2022-12-08 04:45:47 -05:00
cmake
meson
2022-12-12 02:46:51 -05:00
lz4
2022-12-08 04:45:47 -05:00
python3
python3.pkgs.pip
2022-12-06 01:24:54 -05:00
2022-12-12 00:34:25 -05:00
];
# programs
programs.steam.enable = true;
2022-12-06 01:24:54 -05:00
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 = [
2022-12-12 00:34:25 -05:00
"qtwebkit-5.212.0-alpha4"
"electron-12.2.3"
];
2022-12-08 04:45:47 -05:00
2022-12-12 00:34:25 -05:00
nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.05";
2022-12-06 01:24:54 -05:00
2022-12-12 00:34:25 -05:00
}