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
|
|
|
];
|
|
|
|
|
2022-12-18 20:07:10 -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-27 03:08:37 -05:00
|
|
|
[ v4l2loopback.out ];
|
2022-12-12 00:34:25 -05:00
|
|
|
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-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 = {
|
2022-12-19 00:34:51 -05:00
|
|
|
enable = false;
|
2022-12-17 20:18:05 -05:00
|
|
|
};
|
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-17 20:18:05 -05:00
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2022-12-28 17:12:04 -05:00
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
2023-01-01 08:10:18 -05:00
|
|
|
|
|
|
|
hardware = {
|
|
|
|
nvidia = {
|
|
|
|
powerManagement.enable = true;
|
|
|
|
modesetting.enable = true;
|
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
|
|
};
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
nvidia-vaapi-driver
|
|
|
|
];
|
|
|
|
};
|
2023-01-20 01:22:16 -05:00
|
|
|
};
|
2022-12-28 17:12:04 -05:00
|
|
|
users = {
|
|
|
|
defaultUserShell = pkgs.nushell;
|
|
|
|
users.notoh = {
|
2022-12-06 01:24:54 -05:00
|
|
|
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-20 19:17:37 -05:00
|
|
|
helix
|
2022-12-06 01:24:54 -05:00
|
|
|
neofetch
|
|
|
|
bitwarden
|
2023-01-13 15:22:27 -05:00
|
|
|
discord-ptb
|
2022-12-28 17:05:05 -05:00
|
|
|
spotify
|
2022-12-08 04:45:47 -05:00
|
|
|
mpv
|
2022-12-12 00:34:25 -05:00
|
|
|
|
2022-12-14 19:26:48 -05:00
|
|
|
# coding
|
|
|
|
jetbrains.pycharm-community
|
|
|
|
lazygit
|
|
|
|
|
2022-12-18 20:07:10 -05:00
|
|
|
# utility
|
2022-12-08 04:45:47 -05:00
|
|
|
waybar
|
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-08 04:45:47 -05:00
|
|
|
obs-studio
|
|
|
|
pavucontrol
|
2022-12-12 00:34:25 -05:00
|
|
|
unzip
|
2023-01-20 01:22:16 -05:00
|
|
|
p7zip
|
2022-12-12 00:34:25 -05:00
|
|
|
etcher
|
2022-12-17 20:18:05 -05:00
|
|
|
virt-manager
|
2022-12-17 18:19:53 -05:00
|
|
|
imv
|
2022-12-18 01:39:58 -05:00
|
|
|
zathura
|
2022-12-19 17:55:54 -05:00
|
|
|
playerctl
|
2022-12-14 19:26:48 -05:00
|
|
|
ani-cli
|
|
|
|
trackma
|
2023-01-04 18:21:55 -05:00
|
|
|
appimage-run
|
|
|
|
qbittorrent
|
2023-01-09 20:40:49 -05:00
|
|
|
gdu
|
2023-01-20 01:22:16 -05:00
|
|
|
veracrypt
|
2022-12-13 21:35:56 -05:00
|
|
|
|
2022-12-06 21:36:50 -05:00
|
|
|
# gaming
|
|
|
|
wine
|
|
|
|
lutris
|
2022-12-19 17:55:54 -05:00
|
|
|
gamemode
|
2022-12-28 17:05:05 -05:00
|
|
|
gamescope
|
2023-01-04 18:21:55 -05:00
|
|
|
mangohud
|
2022-12-06 21:36:50 -05:00
|
|
|
bottles
|
2023-01-13 17:04:46 -05:00
|
|
|
osu-lazer-bin
|
2023-01-09 20:40:49 -05:00
|
|
|
runelite
|
2022-12-19 17:55:54 -05:00
|
|
|
prismlauncher
|
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
|
2023-01-09 20:40:49 -05:00
|
|
|
hollywood
|
|
|
|
cowsay
|
2022-12-06 01:24:54 -05:00
|
|
|
];
|
|
|
|
};
|
2022-12-28 17:12:04 -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 18:13:43 -05:00
|
|
|
stow
|
2022-12-18 20:07:10 -05:00
|
|
|
wezterm
|
2022-12-06 18:13:43 -05:00
|
|
|
starship
|
2022-12-18 01:39:58 -05:00
|
|
|
nushell
|
2022-12-06 18:13:43 -05:00
|
|
|
rustup
|
|
|
|
cargo
|
|
|
|
jre
|
|
|
|
jdk
|
2022-12-19 00:34:51 -05:00
|
|
|
jq
|
2022-12-06 18:13:43 -05:00
|
|
|
nodejs
|
|
|
|
polkit_gnome
|
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
|
|
|
qt6.qtwayland
|
|
|
|
qt5.qtwayland
|
2022-12-16 17:24:35 -05:00
|
|
|
qt6.full
|
|
|
|
qt5.full
|
2022-12-25 04:21:21 -05:00
|
|
|
gcc
|
|
|
|
cmake
|
2022-12-12 00:34:25 -05:00
|
|
|
libvirt
|
|
|
|
qemu_kvm
|
2022-12-27 03:08:37 -05:00
|
|
|
python3Full
|
2022-12-08 04:45:47 -05:00
|
|
|
python3.pkgs.pip
|
2022-12-14 19:26:48 -05:00
|
|
|
gnome-themes-extra
|
2023-01-09 20:40:49 -05:00
|
|
|
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 = {
|
2022-12-27 03:08:37 -05:00
|
|
|
monospace = ["JetBrainsMono Nerd Font Regular"];
|
2022-12-16 17:27:16 -05:00
|
|
|
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 = {
|
2022-12-27 03:08:37 -05:00
|
|
|
substituters = [
|
|
|
|
"https://hyprland.cachix.org"
|
|
|
|
"https://cache.nixos.org?priority=10"
|
|
|
|
];
|
2022-12-25 04:21:21 -05:00
|
|
|
trusted-public-keys = [
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
|
|
];
|
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 = {
|
2022-12-18 20:07:10 -05:00
|
|
|
enable = false;
|
2022-12-06 21:49:46 -05:00
|
|
|
channel = "https://nixos.org/channel/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|