NixOS-Config/nixos/hosts/shodan/configuration.nix

251 lines
5.5 KiB
Nix
Raw Normal View History

{
inputs,
outputs,
lib,
pkgs,
...
}: {
imports = [
#Jovian Nixos
inputs.jovian.nixosModules.jovian
# If you want to use modules your own flake exports (from modules/home-manager):
# outputs.homeManagerModules.example
inputs.home-manager.nixosModules.home-manager
# Or modules exported from other flakes (such as nix-colors):
# inputs.nix-colors.homeManagerModules.default
2024-12-23 19:22:28 +01:00
outputs.nixosModules.vpn-ip
# Import the shared settings
2024-04-22 14:50:33 +02:00
../../desktop/package-configs/firefox
# You can also split up your configuration and import pieces of it here:
# ./nvim.nix
./hardware-configuration.nix
2024-03-20 21:07:22 +01:00
../../../disko/shodan
./auto-mount.nix
];
2024-12-22 22:48:13 +01:00
boot = {
tmp.cleanOnBoot = true;
loader = {
# TPM2TOOLS_TCTI and TPM2_PKCS11_TCTI env variables
# tss group has access to TPM devices
# Lanzaboote currently replaces the systemd-boot module.
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
# for now.
systemd-boot.enable = lib.mkForce false;
systemd-boot.configurationLimit = 3;
timeout = 0;
efi.canTouchEfiVariables = true;
};
initrd.systemd.enable = true;
2024-12-22 22:48:13 +01:00
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
consoleLogLevel = 0;
kernelParams = ["quiet" "udev.log_priority=0" "fbcon=vc:2-6" "console=tty0"];
plymouth.enable = true;
};
zramSwap.enable = false;
2024-12-22 22:48:13 +01:00
networking = {
domain = "";
# Enable networking
networkmanager.enable = true;
firewall.enable = true;
firewall.allowedTCPPorts = [22];
hostName = "shodan";
};
2024-12-23 19:22:28 +01:00
services.vpn-ip = {
ip = "4";
};
2024-12-22 22:48:13 +01:00
services = {
openssh.enable = true; # Enables support for 32bit libs that steam uses
# Enable the X11 windowing system.
xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
desktopManager.plasma6.enable = true;
avahi = {
nssmdns4 = true;
enable = true;
ipv4 = true;
ipv6 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
displayManager = {
defaultSession = "plasma";
sddm.wayland.enable = lib.mkForce true;
sddm.settings = {
Autologin = {
Session = "plasma.desktop";
User = "lillian";
};
};
};
# Enable flatpak support
flatpak.enable = true;
packagekit.enable = true;
# Configure keymap in X11
xserver = {
xkb.layout = "us";
xkb.variant = "";
};
# Enable CUPS to print documents.
printing.enable = true;
# Enable fwupd daemon and user space client
fwupd.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
nixpkgs = {
# You can add overlays here
overlays = [
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
environment.systemPackages = with pkgs; [
2024-03-20 23:23:40 +01:00
# Custom tools
2024-06-28 23:20:37 +02:00
auto-mount
2024-03-20 23:23:40 +01:00
#System:
2023-12-30 19:50:53 +01:00
btrfs-progs
2024-04-27 13:52:50 +02:00
decky-loader
2024-03-20 16:55:00 +01:00
efitools
2024-03-18 21:10:06 +01:00
jq
2024-12-08 17:14:13 +01:00
# noto-fonts
# noto-fonts-emoji-blob-bin
# noto-fonts-emoji
2024-11-14 21:41:27 +01:00
qjackctl
2024-08-17 20:09:13 +02:00
#rustdesk
2024-03-20 16:55:00 +01:00
sbctl
udisks
util-linux
waypipe
python3
protonup-qt
#KDE:
krunner-translator
2024-12-08 16:44:36 +01:00
# kdePackages.discover
2024-03-03 18:07:54 +01:00
kdePackages.kcalc
kdePackages.kdepim-addons
kdePackages.kirigami
kdePackages.kdeconnect-kde
# kdePackages.krunner-ssh
# kdePackages.krunner-symbols
kdePackages.qtvirtualkeyboard
kdePackages.packagekit-qt
kdePackages.krdc
kdePackages.krfb
2024-03-03 18:07:54 +01:00
libportal
#Gaming:
2024-01-05 12:39:37 +01:00
heroic
2024-01-05 11:24:45 +01:00
legendary-gl
2024-07-11 22:49:08 +02:00
protontricks
2024-01-05 11:29:45 +01:00
rare
];
jovian = {
steam = {
enable = true;
autoStart = true;
user = "lillian";
desktopSession = "plasma";
};
decky-loader = {
enable = true;
package = pkgs.decky-loader-prerelease;
extraPackages = [pkgs.python3];
};
devices.steamdeck = {
enable = true;
autoUpdate = true;
enableGyroDsuService = true;
};
};
2024-12-22 22:48:13 +01:00
programs = {
steam = lib.mkForce {
2024-12-01 01:40:11 +01:00
enable = true;
2024-12-22 22:48:13 +01:00
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
extest.enable = true;
2024-12-01 01:40:11 +01:00
};
2024-12-22 22:48:13 +01:00
kdeconnect.enable = true;
2024-12-01 01:40:11 +01:00
2024-12-22 22:48:13 +01:00
noisetorch = {
enable = true;
2024-02-06 20:21:41 +01:00
};
2024-12-22 22:48:13 +01:00
git = {
enable = true;
};
};
# # Enable automounting of removable media
# services.udisks2.enable = true;
# services.devmon.enable = true;
# services.gvfs.enable = true;
# environment.variables.GIO_EXTRA_MODULES = lib.mkForce ["${pkgs.gvfs}/lib/gio/modules"];
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
2024-12-22 22:48:13 +01:00
hardware = {
graphics.enable32Bit = true;
2024-12-22 22:48:13 +01:00
# Enable bluetooth hardware
bluetooth.enable = true;
2024-12-22 22:48:13 +01:00
# Enable sound with pipewire.
pulseaudio.enable = false;
};
2024-03-25 19:33:58 +01:00
users.users.lillian.extraGroups = ["decky" "tss" "input"];
# Enable completion of system packages by zsh
environment.pathsToLink = ["/share/zsh"];
2024-12-22 22:48:13 +01:00
security = {
rtkit.enable = true;
tpm2 = {
enable = true;
pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so
tctiEnvironment.enable = true;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.11";
}