snowflake/configuration.nix

270 lines
4.7 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.
2022-12-17 20:18:05 -05:00
boot.loader = {
systemd-boot = {
enable = true;
configurationLimit = 5;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
2022-12-16 01:10:11 -05:00
boot.kernelPackages = pkgs.linuxPackages_latest;
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 22:06:02 -05:00
networking.nameservers = [ "192.168.1.45" ];
2022-12-17 18:19:53 -05:00
hardware.opentabletdriver.enable = true;
2022-12-13 21:35:56 -05:00
# pihole
2022-12-12 22:06:02 -05:00
environment.etc = {
"resolv.conf".text = "nameserver 192.168.1.45\n";
};
2022-12-06 01:24:54 -05:00
2022-12-13 21:35:56 -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 = {
2022-12-17 20:18:05 -05:00
fstrim = {
enable = true;
};
printing = {
enable = true;
};
2022-12-06 01:24:54 -05:00
xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
displayManager = {
2022-12-06 18:13:43 -05:00
gdm.enable = true;
gdm.wayland = true;
2022-12-17 20:18:05 -05:00
};
2022-12-06 01:24:54 -05:00
};
};
services.xserver = {
layout = "us";
xkbVariant = "";
};
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-17 20:18:05 -05:00
programs.fish = {
enable = true;
shellAliases = {
v = "nvim";
};
};
# enable steam
programs.steam = {
enable = true;
};
2022-12-06 18:13:43 -05:00
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-17 18:19:53 -05:00
security.pam.services.swaylock = {
text = ''
auth include login
'';
};
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-17 18:19:53 -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-14 19:26:48 -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
2022-12-12 00:34:25 -05:00
2022-12-14 19:26:48 -05:00
# coding
jetbrains.pycharm-community
lazygit
2022-12-06 21:36:50 -05:00
# utility
2022-12-08 04:45:47 -05:00
waybar
2022-12-06 21:36:50 -05:00
streamlink
2022-12-16 23:42:46 -05:00
xplr
2022-12-06 18:13:43 -05:00
btop
2022-12-16 15:53:00 -05:00
nvtop
2022-12-06 21:36:50 -05:00
obsidian
2022-12-08 04:45:47 -05:00
obs-studio
pavucontrol
2022-12-12 00:34:25 -05:00
unzip
etcher
2022-12-17 20:18:05 -05:00
virt-manager
2022-12-15 22:34:31 -05:00
drawio
2022-12-17 18:19:53 -05:00
imv
opentabletdriver
2022-12-12 00:34:25 -05:00
2022-12-13 21:35:56 -05:00
# entertainment
2022-12-14 19:26:48 -05:00
ani-cli
trackma
2022-12-13 21:35:56 -05:00
2022-12-06 21:36:50 -05:00
# gaming
steam
wine
lutris
bottles
2022-12-17 18:19:53 -05:00
osu-lazer
2022-12-06 21:36:50 -05:00
2022-12-14 19:26:48 -05:00
# theming
catppuccin-gtk
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-17 18:19:53 -05:00
gh
2022-12-06 01:24:54 -05:00
alacritty
2022-12-06 18:13:43 -05:00
stow
starship
rustup
cargo
jre
jdk
nodejs
polkit_gnome
appimage-run
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
2022-12-16 17:24:35 -05:00
qt6.full
qt5.full
2022-12-12 00:34:25 -05:00
libvirt
qemu_kvm
2022-12-08 04:45:47 -05:00
python3
python3.pkgs.pip
2022-12-14 19:26:48 -05:00
gnome-themes-extra
gtk-engine-murrine
2022-12-06 01:24:54 -05:00
2022-12-12 00:34:25 -05:00
];
2022-12-17 20:18:05 -05:00
fonts = {
2022-12-16 17:27:16 -05:00
enableDefaultFonts = true;
fontDir.enable = true;
fonts = with pkgs; [
inter
jetbrains-mono
nerdfonts
noto-fonts-cjk-sans
twemoji-color-font
font-awesome
fira-code-symbols
kochi-substitute
ipafont
];
fontconfig = {
enable = true;
allowBitmaps = true;
defaultFonts = {
monospace = ["JetBrains Mono"];
sansSerif = ["Google Sans Text"];
};
hinting.style = "hintfull";
};
};
2022-12-06 01:24:54 -05:00
nix = {
package = pkgs.nixFlakes;
2022-12-16 03:45:51 -05:00
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
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-17 20:18:05 -05:00
};
settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
2022-12-06 21:49:46 -05:00
};
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];
};
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-12 22:06:02 -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
}