2023-10-21 04:39:51 +00:00
|
|
|
{
|
|
|
|
# config,
|
2023-11-23 03:18:21 +00:00
|
|
|
lib,
|
2023-10-21 04:39:51 +00:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
# ------------ System ------------
|
2023-11-23 04:54:46 +00:00
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
users.users.tacocat = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = ["wheel" "networkmanager" "audio" "video" "bluetooth" "kvm"];
|
|
|
|
home = "/home/tacocat";
|
|
|
|
description = "Aria Nolan";
|
|
|
|
};
|
2023-11-22 04:23:41 +00:00
|
|
|
|
2023-10-21 04:39:51 +00:00
|
|
|
boot.loader = {
|
2023-10-31 01:31:46 +00:00
|
|
|
efi.canTouchEfiVariables = false;
|
2023-10-21 04:39:51 +00:00
|
|
|
grub = {
|
|
|
|
efiSupport = true;
|
2023-10-29 03:17:57 +00:00
|
|
|
configurationLimit = 10;
|
2023-10-21 04:39:51 +00:00
|
|
|
device = "nodev";
|
|
|
|
extraEntries = ''
|
|
|
|
menuentry "Void" {
|
|
|
|
search --set=void --fs-uuid 987518fa-8ea0-49a6-b1e5-1fed4e4ae50f
|
|
|
|
configfile "($void)/boot/grub/grub.cfg"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
keyMap = "us";
|
|
|
|
};
|
|
|
|
|
2023-10-29 18:11:54 +00:00
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
networking.hostName = "JWST";
|
|
|
|
networking.networkmanager.enable = true;
|
2023-10-21 04:39:51 +00:00
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
# Sound
|
2023-10-21 04:39:51 +00:00
|
|
|
sound.enable = true;
|
2023-11-19 01:19:49 +00:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
pulse.enable = true;
|
2023-11-23 03:18:21 +00:00
|
|
|
jack.enable = true;
|
2023-11-19 01:19:49 +00:00
|
|
|
};
|
2023-10-21 04:39:51 +00:00
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
# Services/Hardware
|
|
|
|
hardware.opentabletdriver.enable = true;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
services.blueman.enable = true;
|
|
|
|
services.printing.enable = true;
|
|
|
|
services.geoclue2.enable = true;
|
2023-11-24 03:25:35 +00:00
|
|
|
security.rtkit.enable = true;
|
2023-11-23 17:34:23 +00:00
|
|
|
|
2023-12-09 00:27:35 +00:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
# 0d28:0204 DAPLink
|
|
|
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE:="666"
|
|
|
|
'';
|
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
# on your system were taken. It's perfectly fine and recommended to leave
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
system.stateVersion = "23.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
# ------------ Nix ------------
|
|
|
|
|
|
|
|
nix.settings = {
|
|
|
|
experimental-features = ["nix-command" "flakes"];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
trusted-users = ["root" "tacocat"];
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 1w";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-run"
|
|
|
|
"nvidia-x11"
|
|
|
|
"nvidia-settings"
|
2023-11-24 03:25:35 +00:00
|
|
|
"discord"
|
2023-11-23 17:34:23 +00:00
|
|
|
];
|
|
|
|
|
2023-11-27 02:51:58 +00:00
|
|
|
programs.nix-index.enable = true;
|
|
|
|
programs.command-not-found.enable = false;
|
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
# ------------ Software ------------
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
exfat
|
|
|
|
encfs
|
|
|
|
ntfs3g
|
|
|
|
];
|
|
|
|
# remove nano
|
|
|
|
defaultPackages = with pkgs; [
|
|
|
|
perl
|
|
|
|
rsync
|
|
|
|
strace
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
wrapperFeatures.gtk = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
swaylock
|
|
|
|
swayidle
|
|
|
|
brightnessctl
|
|
|
|
wl-mirror
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.waybar.enable = true;
|
|
|
|
programs.steam.enable = true;
|
2023-11-27 02:51:58 +00:00
|
|
|
programs.steam.remotePlay.openFirewall = true;
|
|
|
|
# programs.steam.gamescopeSession = {
|
|
|
|
# enable = true;
|
2023-11-25 00:19:48 +00:00
|
|
|
# args = [
|
|
|
|
# "-f"
|
|
|
|
# "--expose-wayland"
|
|
|
|
# ];
|
2023-11-27 02:51:58 +00:00
|
|
|
# };
|
2023-11-25 00:19:48 +00:00
|
|
|
programs.gamemode.enable = true;
|
2023-11-27 02:51:58 +00:00
|
|
|
# programs.gamescope.enable = true;
|
2023-11-23 17:34:23 +00:00
|
|
|
|
2023-10-21 04:39:51 +00:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2023-11-23 17:21:10 +00:00
|
|
|
wlr.enable = true;
|
2023-11-20 13:39:41 +00:00
|
|
|
extraPortals = with pkgs; [
|
2023-11-23 04:54:46 +00:00
|
|
|
xdg-desktop-portal-gtk
|
2023-11-20 13:39:41 +00:00
|
|
|
];
|
2023-10-21 04:39:51 +00:00
|
|
|
};
|
|
|
|
|
2023-11-27 02:51:58 +00:00
|
|
|
gtk.iconCache.enable = true;
|
|
|
|
|
2023-11-23 17:34:23 +00:00
|
|
|
# ------------ Graphics ------------
|
|
|
|
|
2023-10-21 04:39:51 +00:00
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
2023-11-23 17:21:10 +00:00
|
|
|
driSupport = true;
|
2023-11-14 04:51:19 +00:00
|
|
|
driSupport32Bit = true;
|
2023-11-07 02:43:16 +00:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
intel-compute-runtime
|
2023-11-23 17:21:10 +00:00
|
|
|
vaapiVdpau
|
2023-11-07 02:43:16 +00:00
|
|
|
];
|
2023-10-21 04:39:51 +00:00
|
|
|
};
|
|
|
|
|
2023-11-23 17:21:10 +00:00
|
|
|
hardware.nvidia = {
|
|
|
|
modesetting.enable = true;
|
|
|
|
powerManagement.enable = false;
|
|
|
|
powerManagement.finegrained = false;
|
|
|
|
open = false;
|
|
|
|
nvidiaSettings = true;
|
|
|
|
prime = {
|
|
|
|
offload.enable = true;
|
|
|
|
offload.enableOffloadCmd = true;
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
2023-10-21 04:39:51 +00:00
|
|
|
}
|