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,
|
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-22 04:23:41 +00:00
|
|
|
|
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
|
|
|
|
sops.defaultSopsFormat = "yaml";
|
|
|
|
|
|
|
|
|
|
sops.age.keyFile = "/home/tacocat/.config/sops/age/keys.txt";
|
|
|
|
|
|
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";
|
2023-11-13 18:37:16 +00:00
|
|
|
|
# extraEntriesBeforeNixOS = true; # still primarily using void
|
2023-10-21 04:39:51 +00:00
|
|
|
|
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"];
|
2023-10-29 03:17:57 +00:00
|
|
|
|
nix.settings.auto-optimise-store = true;
|
2023-11-20 05:52:13 +00:00
|
|
|
|
nix.settings.trusted-users = ["root" "tacocat"];
|
2023-10-29 03:17:57 +00:00
|
|
|
|
|
|
|
|
|
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;
|
2023-11-13 18:37:16 +00:00
|
|
|
|
services.geoclue2.enable = true;
|
2023-11-22 03:30:31 +00:00
|
|
|
|
# services.tlp.enable = true;
|
|
|
|
|
# services.thermald.enable = true;
|
2023-10-21 04:39:51 +00:00
|
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
|
enable = true;
|
2023-11-19 01:19:49 +00:00
|
|
|
|
# wlr.enable = true;
|
2023-11-20 13:39:41 +00:00
|
|
|
|
extraPortals = with pkgs; [
|
2023-11-20 05:52:13 +00:00
|
|
|
|
# xdg-desktop-portal-wlr
|
2023-11-20 13:39:41 +00:00
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
|
];
|
2023-10-21 04:39:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
|
enable = 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-10-21 04:39:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
|
2023-11-13 18:37:16 +00:00
|
|
|
|
programs.sway.enable = true;
|
2023-11-19 01:19:49 +00:00
|
|
|
|
programs.sway.wrapperFeatures.gtk = true;
|
2023-11-13 18:37:16 +00:00
|
|
|
|
programs.sway.extraPackages = with pkgs; [
|
|
|
|
|
swaylock
|
|
|
|
|
swayidle
|
|
|
|
|
brightnessctl
|
2023-11-22 03:30:31 +00:00
|
|
|
|
wl-mirror
|
2023-11-13 18:37:16 +00:00
|
|
|
|
];
|
|
|
|
|
|
2023-11-19 01:19:49 +00:00
|
|
|
|
programs.waybar.enable = true;
|
2023-11-23 03:18:21 +00:00
|
|
|
|
programs.steam.enable = true;
|
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
|
"steam"
|
|
|
|
|
"steam-original"
|
|
|
|
|
"steam-run"
|
|
|
|
|
];
|
2023-11-07 02:43:16 +00:00
|
|
|
|
|
2023-10-21 04:39:51 +00:00
|
|
|
|
environment = {
|
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
|
vim
|
2023-11-13 18:37:16 +00:00
|
|
|
|
exfat
|
2023-11-23 03:18:21 +00:00
|
|
|
|
encfs
|
2023-11-22 03:30:31 +00:00
|
|
|
|
ntfs3g
|
2023-10-21 04:39:51 +00:00
|
|
|
|
];
|
|
|
|
|
defaultPackages = with pkgs; [
|
|
|
|
|
perl
|
|
|
|
|
rsync
|
|
|
|
|
strace
|
|
|
|
|
];
|
2023-11-20 05:50:18 +00:00
|
|
|
|
|
|
|
|
|
# TODO configure this under sway with home-manager
|
|
|
|
|
variables = {
|
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
|
QT_QPA_PLATFORM = "wayland";
|
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATIONS = "1";
|
|
|
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
|
};
|
2023-10-21 04:39:51 +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).
|
2023-10-30 02:29:30 +00:00
|
|
|
|
system.stateVersion = "23.05"; # Did you read the comment?
|
2023-10-21 04:39:51 +00:00
|
|
|
|
}
|