2023-12-27 16:23:57 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
#Jovian Nixos
|
2024-01-11 13:24:48 +01:00
|
|
|
inputs.jovian.nixosModules.jovian
|
2023-12-27 16:23:57 +01:00
|
|
|
# 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-01-09 13:19:42 +01:00
|
|
|
# Import the locale settings
|
2024-02-07 13:50:03 +01:00
|
|
|
../../shared
|
2024-01-09 13:19:42 +01:00
|
|
|
|
2023-12-27 16:23:57 +01:00
|
|
|
# You can also split up your configuration and import pieces of it here:
|
|
|
|
# ./nvim.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
|
|
zramSwap.enable = false;
|
|
|
|
networking.domain = "";
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
# You can add overlays here
|
|
|
|
overlays = [
|
2023-12-31 15:06:51 +01:00
|
|
|
inputs.extest.overlays.default
|
2023-12-27 16:23:57 +01:00
|
|
|
];
|
|
|
|
# Configure your nixpkgs instance
|
|
|
|
config = {
|
|
|
|
# Disable if you don't want unfree packages
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#Set up sops config, and configure where the keyfile is, then set the mode for the unencrypted keys
|
2023-12-28 22:22:39 +01:00
|
|
|
sops.defaultSopsFile = ./secrets/sops.yaml;
|
2023-12-27 16:23:57 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
#System:
|
|
|
|
alejandra
|
2023-12-30 19:50:53 +01:00
|
|
|
btrfs-progs
|
2023-12-27 16:23:57 +01:00
|
|
|
git
|
|
|
|
git-filter-repo
|
|
|
|
home-manager
|
2024-01-16 09:56:38 +01:00
|
|
|
htop
|
2023-12-27 16:23:57 +01:00
|
|
|
noto-fonts
|
|
|
|
noto-fonts-emoji-blob-bin
|
|
|
|
noto-fonts-emoji
|
|
|
|
oh-my-zsh
|
|
|
|
rsync
|
2024-03-14 16:32:44 +01:00
|
|
|
rustdesk
|
2023-12-27 16:23:57 +01:00
|
|
|
wget
|
|
|
|
zsh
|
|
|
|
|
|
|
|
#KDE:
|
|
|
|
krunner-translator
|
2024-03-03 18:07:54 +01:00
|
|
|
kdePackages.discover
|
|
|
|
kdePackages.kcalc
|
|
|
|
kdePackages.kdepim-addons
|
|
|
|
kdePackages.kirigami
|
|
|
|
kdePackages.kdeconnect-kde
|
|
|
|
# kdePackages.krunner-ssh
|
|
|
|
# kdePackages.krunner-symbols
|
|
|
|
kdePackages.qtvirtualkeyboard
|
|
|
|
kdePackages.packagekit-qt
|
|
|
|
libportal
|
2023-12-27 16:23:57 +01:00
|
|
|
|
|
|
|
#Gaming:
|
2024-01-05 12:39:37 +01:00
|
|
|
heroic
|
2024-01-05 11:24:45 +01:00
|
|
|
legendary-gl
|
2024-01-05 11:29:45 +01:00
|
|
|
rare
|
2023-12-27 16:23:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
#Enable steam deck steam interface
|
|
|
|
jovian.steam.enable = true;
|
|
|
|
|
|
|
|
#Autostart this inteface at login
|
|
|
|
jovian.steam.autoStart = true;
|
|
|
|
|
|
|
|
#What desktop to start when switching to desktop session
|
2024-03-03 18:09:57 +01:00
|
|
|
jovian.steam.desktopSession = "plasma";
|
2023-12-27 16:23:57 +01:00
|
|
|
|
2023-12-27 16:26:39 +01:00
|
|
|
jovian.steam.user = "lillian";
|
2023-12-27 16:23:57 +01:00
|
|
|
|
|
|
|
#Enable gyro service for CEMU
|
|
|
|
jovian.devices.steamdeck.enableGyroDsuService = true;
|
|
|
|
|
2023-12-30 16:39:50 +01:00
|
|
|
#Enable steam deck specific services
|
|
|
|
jovian.devices.steamdeck.enable = true;
|
|
|
|
|
2023-12-27 16:23:57 +01:00
|
|
|
#Enable auto updates for the BIOS and controller firmware
|
|
|
|
jovian.devices.steamdeck.autoUpdate = true;
|
|
|
|
|
2024-02-05 17:44:05 +01:00
|
|
|
jovian.decky-loader.enable = true;
|
|
|
|
|
2024-02-29 09:59:48 +01:00
|
|
|
jovian.hardware.has.amd.gpu = true;
|
2024-02-05 17:44:05 +01:00
|
|
|
|
2023-12-27 16:23:57 +01:00
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
|
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
2024-01-01 22:41:50 +01:00
|
|
|
package = pkgs.steam.override {
|
2024-01-01 22:39:15 +01:00
|
|
|
extraProfile = ''export LD_PRELOAD=${pkgs.extest}/lib/libextest.so:$LD_PRELOAD'';
|
|
|
|
};
|
2023-12-27 16:23:57 +01:00
|
|
|
};
|
|
|
|
hardware.opengl.driSupport32Bit = true; # Enables support for 32bit libs that steam uses
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
# Enable the KDE Plasma Desktop Environment.
|
2024-03-14 13:50:43 +01:00
|
|
|
services.desktopManager.plasma6.enable = true;
|
2023-12-27 16:23:57 +01:00
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
2024-02-06 20:21:41 +01:00
|
|
|
services.xserver.displayManager.sddm.settings = {
|
|
|
|
Autologin = {
|
|
|
|
Session = "plasma.desktop";
|
|
|
|
User = "lillian";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-12-27 16:23:57 +01:00
|
|
|
# Enable flatpak support
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
services.packagekit.enable = true;
|
|
|
|
|
|
|
|
# Configure keymap in X11
|
|
|
|
services.xserver = {
|
2024-02-05 18:23:09 +01:00
|
|
|
xkb.layout = "us";
|
|
|
|
xkb.variant = "";
|
2023-12-27 16:23:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
networking.firewall.enable = true;
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [22];
|
|
|
|
|
2024-03-18 00:58:19 +01:00
|
|
|
# Enable automounting of removable media
|
|
|
|
services.udisks2.enable = true;
|
|
|
|
services.devmon.enable = true;
|
2024-03-18 01:56:24 +01:00
|
|
|
services.gvfs.enable = true;
|
2024-03-18 01:57:59 +01:00
|
|
|
environment.variables.GIO_EXTRA_MODULES = lib.mkForce ["${pkgs.gvfs}/lib/gio/modules"];
|
2024-03-18 00:58:19 +01:00
|
|
|
|
2023-12-27 16:23:57 +01:00
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
# Enable bluetooth hardware
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
# Enable fwupd daemon and user space client
|
|
|
|
services.fwupd.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;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.noisetorch = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-03-18 00:59:26 +01:00
|
|
|
users.users.lillian.extraGroups = ["decky" "storage"];
|
2023-12-27 16:23:57 +01:00
|
|
|
|
|
|
|
# Enable completion of system packages by zsh
|
|
|
|
environment.pathsToLink = ["/share/zsh"];
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {inherit inputs outputs;};
|
|
|
|
users = {
|
|
|
|
# Import your home-manager configuration
|
2024-02-07 13:52:23 +01:00
|
|
|
lillian = import ../../../home-manager/hosts/shodan;
|
2023-12-27 16:23:57 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "shodan";
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 3;
|
2024-01-01 22:56:53 +01:00
|
|
|
boot.loader.timeout = 0;
|
2023-12-27 16:23:57 +01:00
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2023-12-31 14:31:01 +01:00
|
|
|
boot.consoleLogLevel = 0;
|
2024-03-17 22:41:42 +01:00
|
|
|
boot.kernelParams = ["quiet" "udev.log_priority=0" "fbcon=vc:2-6" "console=tty0"];
|
2023-12-31 14:31:01 +01:00
|
|
|
boot.plymouth.enable = true;
|
2023-12-27 16:23:57 +01:00
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
|
|
system.stateVersion = "unstable";
|
|
|
|
}
|