2024-04-08 21:28:07 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-04-08 20:32:17 +02:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../common/default.nix
|
2024-04-17 20:39:12 +02:00
|
|
|
../../common/full-install.nix
|
|
|
|
../../common/allow-unfree.nix
|
2024-04-08 20:32:17 +02:00
|
|
|
|
|
|
|
../../common/locales/en.nix
|
|
|
|
../../common/locales/fr-keymap.nix
|
|
|
|
../../common/hardware/intelcpu.nix
|
|
|
|
../../common/hardware/amdgpu.nix
|
|
|
|
|
|
|
|
../../common/de/plasma6.nix
|
|
|
|
../../common/de/hyprland.nix
|
|
|
|
|
2024-04-08 21:28:07 +02:00
|
|
|
../../common/packages/syncthing.nix
|
|
|
|
../../common/packages/adguardhome.nix
|
2024-04-08 20:32:17 +02:00
|
|
|
|
|
|
|
# If you want to use modules your own flake exports (from modules/nixos):
|
|
|
|
# outputs.nixosModules.example
|
|
|
|
|
2024-04-17 20:39:12 +02:00
|
|
|
../../modules/nixos/vedirect-reader.nix
|
|
|
|
|
2024-04-08 20:32:17 +02:00
|
|
|
# Or modules from other flakes (such as nixos-hardware):
|
|
|
|
# inputs.hardware.nixosModules.common-cpu-amd
|
|
|
|
# inputs.hardware.nixosModules.common-ssd
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
# boot.kernelModules = [ "fuse" "kvm-intel" "coretemp" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "phoenix";
|
|
|
|
|
2024-04-17 20:39:12 +02:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [
|
|
|
|
8080 # ?
|
|
|
|
12345 # tildefriends
|
|
|
|
13378 # audiobookshelf
|
|
|
|
];
|
|
|
|
allowedUDPPorts = [
|
|
|
|
8080 # ?
|
|
|
|
];
|
|
|
|
};
|
2024-04-08 20:32:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
users.users.user = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "User";
|
2024-04-17 20:39:12 +02:00
|
|
|
extraGroups = ["networkmanager" "wheel" "syncthing"];
|
2024-04-08 20:32:17 +02:00
|
|
|
initialPassword = "correcthorsebatterystaple";
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.btrfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
interval = "weekly";
|
|
|
|
fileSystems = ["/" "/data"];
|
|
|
|
};
|
|
|
|
|
2024-04-17 20:39:12 +02:00
|
|
|
# services.vedirect-reader.enable = true;
|
|
|
|
|
2024-04-08 20:32:17 +02:00
|
|
|
virtualisation.docker.enable = true;
|
2024-04-17 20:39:12 +02:00
|
|
|
services.flatpak.enable = false;
|
2024-04-08 20:32:17 +02:00
|
|
|
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
# started in user sessions.
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = false; # Open ports in the firewall for Steam Remote Play
|
|
|
|
dedicatedServer.openFirewall = false; # Open ports in the firewall for Source Dedicated Server
|
|
|
|
};
|
|
|
|
|
2024-04-08 21:28:07 +02:00
|
|
|
services.syncthing = {
|
|
|
|
dataDir = lib.mkForce "/home/user";
|
|
|
|
configDir = lib.mkForce "/data/sync/configuration/";
|
|
|
|
};
|
|
|
|
|
2024-04-17 20:39:12 +02:00
|
|
|
# Needed to build enry
|
2024-04-13 21:42:05 +02:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
2024-04-08 20:32:17 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
bitwarden
|
|
|
|
nextdns
|
2024-04-17 20:39:12 +02:00
|
|
|
# android-tools
|
2024-04-08 20:32:17 +02:00
|
|
|
gocryptfs
|
|
|
|
#endless-sky
|
|
|
|
#gnucash
|
2024-04-17 20:39:12 +02:00
|
|
|
# obs-studio
|
|
|
|
# kdenlive
|
2024-04-08 20:32:17 +02:00
|
|
|
rustc
|
|
|
|
cargo
|
|
|
|
nodejs
|
|
|
|
rpi-imager
|
2024-04-17 20:39:12 +02:00
|
|
|
# wireshark
|
|
|
|
# appimage-run
|
2024-04-08 20:32:17 +02:00
|
|
|
#ssb-patchwork
|
|
|
|
simplex-chat-desktop
|
|
|
|
#android-studio
|
|
|
|
#swig
|
|
|
|
picard
|
|
|
|
kleopatra
|
|
|
|
qbittorrent
|
|
|
|
tor-browser
|
|
|
|
protonvpn-gui
|
|
|
|
# radicle-cli
|
|
|
|
# opensnitch-ui
|
|
|
|
yarn
|
|
|
|
nodePackages.node-gyp
|
|
|
|
nodePackages.node-pre-gyp
|
2024-04-17 20:39:12 +02:00
|
|
|
# superTuxKart
|
2024-04-08 20:32:17 +02:00
|
|
|
openssl
|
|
|
|
|
|
|
|
# qgis
|
|
|
|
helix
|
|
|
|
holehe
|
|
|
|
smartmontools
|
|
|
|
cheat
|
|
|
|
lazygit
|
|
|
|
ripgrep
|
|
|
|
jq
|
|
|
|
yq
|
|
|
|
neofetch
|
|
|
|
tldr
|
|
|
|
bat
|
|
|
|
dust
|
|
|
|
powertop
|
|
|
|
fzf
|
|
|
|
atuin
|
|
|
|
zellij
|
|
|
|
eza
|
|
|
|
lapce
|
|
|
|
gotty
|
|
|
|
gping
|
|
|
|
yazi
|
|
|
|
|
|
|
|
tildefriends
|
|
|
|
];
|
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|