157 lines
3.6 KiB
Nix
157 lines
3.6 KiB
Nix
{
|
||
# config,
|
||
lib,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
imports = [
|
||
# Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
||
sops.defaultSopsFormat = "yaml";
|
||
|
||
sops.age.keyFile = "/home/tacocat/.config/sops/age/keys.txt";
|
||
|
||
boot.loader = {
|
||
efi.canTouchEfiVariables = false;
|
||
grub = {
|
||
efiSupport = true;
|
||
configurationLimit = 10;
|
||
device = "nodev";
|
||
# extraEntriesBeforeNixOS = true; # still primarily using void
|
||
extraEntries = ''
|
||
menuentry "Void" {
|
||
search --set=void --fs-uuid 987518fa-8ea0-49a6-b1e5-1fed4e4ae50f
|
||
configfile "($void)/boot/grub/grub.cfg"
|
||
}
|
||
'';
|
||
};
|
||
};
|
||
|
||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||
nix.settings.auto-optimise-store = true;
|
||
nix.settings.trusted-users = ["root" "tacocat"];
|
||
|
||
nix.gc = {
|
||
automatic = true;
|
||
dates = "weekly";
|
||
options = "--delete-older-than 1w";
|
||
};
|
||
|
||
networking.hostName = "JWST";
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
console = {
|
||
font = "Lat2-Terminus16";
|
||
keyMap = "us";
|
||
};
|
||
|
||
time.timeZone = "America/New_York";
|
||
|
||
# Enable CUPS to print documents.
|
||
services.printing.enable = true;
|
||
services.geoclue2.enable = true;
|
||
|
||
# Enable sound.
|
||
sound.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
pulse.enable = true;
|
||
jack.enable = true;
|
||
};
|
||
|
||
xdg.portal = {
|
||
enable = true;
|
||
wlr.enable = true;
|
||
extraPortals = with pkgs; [
|
||
xdg-desktop-portal-gtk
|
||
];
|
||
};
|
||
|
||
hardware.opengl = {
|
||
enable = true;
|
||
driSupport = true;
|
||
driSupport32Bit = true;
|
||
extraPackages = with pkgs; [
|
||
intel-compute-runtime
|
||
vaapiVdpau
|
||
];
|
||
};
|
||
|
||
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"];
|
||
|
||
|
||
hardware.opentabletdriver.enable = true;
|
||
hardware.bluetooth.enable = true;
|
||
services.blueman.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.tacocat = {
|
||
isNormalUser = true;
|
||
extraGroups = ["wheel" "networkmanager" "audio" "video" "bluetooth" "kvm"];
|
||
home = "/home/tacocat";
|
||
description = "Aria Nolan";
|
||
};
|
||
|
||
programs.sway.enable = true;
|
||
programs.sway.wrapperFeatures.gtk = true;
|
||
programs.sway.extraPackages = with pkgs; [
|
||
swaylock
|
||
swayidle
|
||
brightnessctl
|
||
wl-mirror
|
||
];
|
||
|
||
programs.waybar.enable = true;
|
||
programs.steam.enable = true;
|
||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||
builtins.elem (lib.getName pkg) [
|
||
"steam"
|
||
"steam-original"
|
||
"steam-run"
|
||
"nvidia-x11"
|
||
"nvidia-settings"
|
||
];
|
||
|
||
environment = {
|
||
systemPackages = with pkgs; [
|
||
vim
|
||
exfat
|
||
encfs
|
||
ntfs3g
|
||
];
|
||
defaultPackages = with pkgs; [
|
||
perl
|
||
rsync
|
||
strace
|
||
];
|
||
};
|
||
|
||
# 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?
|
||
}
|