dots/modules/hosts/nixos/rainbow-planet/default.nix

186 lines
4.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, inputs, pkgs, username, ... }: {
imports = [
./hardware-configuration.nix
../../../system/common/linux/flatpaks.nix
];
system.stateVersion = "23.05";
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot= {
enable = true;
consoleMode = "1";
};
};
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages = with pkgs; [
# host specific apps
boinc
brightnessctl
butane
cilium-cli
displaylink
gnome.gnome-tweaks
gnome.nautilus
gnomeExtensions.dash-to-panel
gnome.networkmanager-openvpn
gnomeExtensions.pop-shell
gnomeExtensions.tailscale-qs
go
hubble
hugo
inputs.flox.packages.${pkgs.system}.default
kubectl
kubectx
kubernetes-helm
kubeseal
networkmanager-openvpn
nodejs
pavucontrol
polkit-kde-agent
ulauncher
pop-gtk-theme
pop-icon-theme
pop-launcher
#quickemu
rclone
rclone-browser
step-cli
virt-manager
whalebird
wmctrl
# common gui apps that really should be in another file
angryipscanner
firefox
gitkraken
libreoffice
meld
slack
tilix
xfce.xfce4-terminal
zoom-us
];
networking = {
networkmanager.enable = true;
useNetworkd = true;
};
programs = {
_1password.enable = true;
_1password-gui = {
enable = true;
# Certain features, including CLI integration and system authentication support,
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
polkitPolicyOwners = [ "${username}" ];
};
#hyprland.enable = true;
ssh.askPassword = "ssh-askpass";
# common programs that really should be in another file
# required for setting to be picked up by xfce4-terminal
xfconf.enable = true;
};
services = {
boinc.enable = true;
desktopManager.cosmic.enable = true;
desktopManager.plasma6.enable = true;
displayManager.sddm = {
enable = true;
wayland.enable = true;
};
fwupd.enable = true;
gnome.gnome-keyring.enable = true; # Provides secret storage
gvfs.enable = true; # Used by Nautilus
printing.enable = true; # Enable CUPS
tailscale = {
enable = true;
authKeyFile = config.sops.secrets.tailscale_key.path;
extraUpFlags = [
"--operator"
"${username}"
"--ssh"
];
useRoutingFeatures = "client";
};
thermald.enable = true;
xserver = {
enable = true; # Enable the X11 windowing system.
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
};
# displayManager = {
# gdm = {
# enable = true;
# wayland = true;
# };
# };
desktopManager.gnome.enable = true;
};
};
# 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;
wireplumber.enable = true;
};
sops = {
age.keyFile = /home/${username}/.config/sops/age/keys.txt;
defaultSopsFile = ./secrets.yaml;
secrets = {
local_git_config = {
owner = "${username}";
path = "/home/${username}/.gitconfig-local";
};
local_private_env = {
owner = "${username}";
path = "/home/${username}/.private-env";
};
tailscale_key = {
restartUnits = [ "tailscaled-autoconnect.service" ];
};
};
};
users.extraGroups.vboxusers.members = [ "${username}" ];
# Define a user account. Don't forget to set a password with passwd.
users.users.${username} = {
isNormalUser = true;
description = "Gene Liverman";
extraGroups = [ "networkmanager" "wheel" "dialout" "input" ];
packages = with pkgs; [
tailscale-systray
];
};
virtualisation = {
containers.enable = true;
libvirtd = {
enable = true;
qemu.package = pkgs.qemu_kvm;
};
podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
};
virtualbox.host.enable = true;
};
}