nix-config/hosts/JWST/configuration.nix

134 lines
3.3 KiB
Nix
Raw Normal View History

2023-10-21 04:39:51 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
# config,
# lib,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader = {
efi.canTouchEfiVariables = true;
2023-10-29 18:11:54 +00:00
# efi.efiSysMountPoint = "/boot/efi";
2023-10-21 04:39:51 +00:00
grub = {
efiSupport = true;
configurationLimit = 10;
2023-10-21 04:39:51 +00:00
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.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
2023-10-21 04:39:51 +00:00
networking.hostName = "JWST";
networking.networkmanager.enable = true;
# Select internationalisation properties.
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-10-21 04:39:51 +00:00
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
sound.enable = true;
services.pipewire.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
# xdg-desktop-portal-gtk
];
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-compute-runtime
];
};
hardware.opentabletdriver.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";
packages = with pkgs; [
kitty
];
};
programs.river.enable = true;
# programs.river.extraPackages = with pkgs; [
# swaylock
# swayidle
# dunst
# wlsunset
# nm-applet
# grim
# slurp
# waybar
# wbg
# ];
2023-10-21 04:39:51 +00:00
environment = {
systemPackages = with pkgs; [
vim
];
defaultPackages = with pkgs; [
perl
rsync
strace
];
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# 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.11"; # Did you read the comment?
}