102 lines
2.4 KiB
Nix
102 lines
2.4 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
beatific.hostName = "imperium";
|
|
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "/dev/sda";
|
|
};
|
|
|
|
fileSystems."/home/tvb/backyard" = {
|
|
device = "//backyard.home/tvb";
|
|
fsType = "cifs";
|
|
options = [
|
|
"x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,credentials=/home/tvb/.local/state/smb/backyard,uid=1000,gid=988"
|
|
];
|
|
};
|
|
|
|
# ZFS support
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
networking.hostId = "1bf3214b"; # this must be consistent for ZFS
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
displayManager.gdm.enable = true;
|
|
desktopManager.gnome.enable = true;
|
|
|
|
# keyboard
|
|
xkb.layout = "us";
|
|
xkb.variant = "";
|
|
};
|
|
|
|
# Enable sound with pipewire.
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
# This seems to be sufficient to autodetect the printing functionality of HP OfficeJet 6950
|
|
services.printing.enable = true;
|
|
services.printing.drivers = [ pkgs.hplip ];
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
users.users.tvb = {
|
|
extraGroups = [ "networkmanager" "docker" ];
|
|
packages = [
|
|
(pkgs.writeShellScriptBin "yt-dlp" ''exec $HOME/.yt-dlp/bin/yt-dlp "$@"'')
|
|
];
|
|
};
|
|
|
|
# Configs needed to run TF2 on integrated graphics
|
|
programs.steam.enable = true;
|
|
nixpkgs.config.allowUnfree = true;
|
|
services.xserver.videoDrivers = [ "i915" ];
|
|
hardware.graphics.enable = true;
|
|
hardware.graphics.enable32Bit = true;
|
|
|
|
beatific.extraPrograms = true;
|
|
environment.systemPackages = with pkgs; [
|
|
audacity
|
|
bitwarden
|
|
bitwarden-cli
|
|
comic-mono
|
|
firefox
|
|
gnome-terminal
|
|
gthumb
|
|
libreoffice
|
|
mpv
|
|
obsidian
|
|
pv
|
|
unzip
|
|
];
|
|
programs.nix-ld.enable = true;
|
|
|
|
networking.firewall = {
|
|
enable = false;
|
|
};
|
|
|
|
# This value governs how some stateful data, like databases, are handled
|
|
# across different versions of NixOS. This should not be changed to a new
|
|
# release unless the sysadmin has determined that no services would be
|
|
# adversely affected by changing this.
|
|
system.stateVersion = "23.11";
|
|
}
|