2023-12-15 21:13:23 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
beatific.hostName = "imperium";
|
|
|
|
|
2024-04-13 04:55:58 +00:00
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/sda";
|
|
|
|
};
|
2023-12-15 21:13:23 +00:00
|
|
|
|
2024-04-25 18:42:18 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-15 21:13:23 +00:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome.enable = true;
|
|
|
|
|
|
|
|
# keyboard
|
2024-06-29 03:37:35 +00:00
|
|
|
xkb.layout = "us";
|
|
|
|
xkb.variant = "";
|
2023-12-15 21:13:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-02-19 15:29:38 +00:00
|
|
|
# This seems to be sufficient to autodetect the printing functionality of HP OfficeJet 6950
|
2023-12-18 20:38:47 +00:00
|
|
|
services.printing.enable = true;
|
2024-02-19 15:29:38 +00:00
|
|
|
services.printing.drivers = [ pkgs.hplip ];
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
2024-06-29 03:37:35 +00:00
|
|
|
nssmdns4 = true;
|
2024-02-19 15:29:38 +00:00
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-12-18 20:38:47 +00:00
|
|
|
|
2023-12-15 21:13:23 +00:00
|
|
|
users.users.tvb = {
|
2024-08-17 01:20:35 +00:00
|
|
|
extraGroups = [ "networkmanager" "docker" ];
|
2024-06-03 13:42:47 +00:00
|
|
|
packages = [
|
|
|
|
(pkgs.writeShellScriptBin "yt-dlp" ''exec $HOME/.yt-dlp/bin/yt-dlp "$@"'')
|
|
|
|
];
|
2023-12-15 21:13:23 +00:00
|
|
|
};
|
|
|
|
|
2023-12-16 19:34:20 +00:00
|
|
|
# Configs needed to run TF2 on integrated graphics
|
|
|
|
programs.steam.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
services.xserver.videoDrivers = [ "i915" ];
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
2024-01-04 02:03:46 +00:00
|
|
|
beatific.extraPrograms = true;
|
2023-12-15 21:13:23 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-08-17 01:21:14 +00:00
|
|
|
audacity
|
2024-06-26 03:12:52 +00:00
|
|
|
bitwarden
|
|
|
|
bitwarden-cli
|
2024-04-10 03:29:34 +00:00
|
|
|
comic-mono
|
2023-12-15 21:13:23 +00:00
|
|
|
firefox
|
2024-04-10 03:29:34 +00:00
|
|
|
gnome.gnome-terminal
|
2024-07-19 05:11:25 +00:00
|
|
|
gthumb
|
2023-12-15 21:13:23 +00:00
|
|
|
libreoffice
|
|
|
|
mpv
|
2023-12-23 06:06:57 +00:00
|
|
|
obsidian
|
2023-12-15 21:13:23 +00:00
|
|
|
unzip
|
|
|
|
];
|
2024-08-17 01:20:35 +00:00
|
|
|
programs.nix-ld.enable = true;
|
|
|
|
|
2023-12-15 21:13:23 +00:00
|
|
|
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";
|
|
|
|
}
|