refactor: hosts/
This commit is contained in:
1 parent
cedfbd6ef6
commit
3e662f72f7
21 files changed
+140
-14
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
services.flatpak = {
|
||||
enable = true;
|
||||
packages = [
|
||||
"com.vivaldi.Vivaldi"
|
||||
"dev.vencord.Vesktop"
|
||||
"com.github.tchx84.Flatseal"
|
||||
"com.heroicgameslauncher.hgl"
|
||||
"org.blender.Blender"
|
||||
"org.kde.krita"
|
||||
"com.mojang.Minecraft"
|
||||
"org.prismlauncher.PrismLauncher"
|
||||
"org.gnome.Showtime" #Duplicate -testing
|
||||
"io.github.diegopvlk.Cine" #Duplicate -testing
|
||||
"org.gnome.gThumb"
|
||||
"org.gnome.Calculator"
|
||||
"net.lutris.Lutris"
|
||||
];
|
||||
};
|
||||
systemd.services.flatpak-repo = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.flatpak ];
|
||||
script = ''
|
||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
'';
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
# Hardware / controller
|
||||
hardware.steam-hardware.enable = true;
|
||||
hardware.uinput.enable = true;
|
||||
# gamescope / display
|
||||
programs.gamescope.enable = true;
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# --- Display & window managers ---
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# --- KDE extras ---
|
||||
kdePackages.karousel
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# --- Display & window managers ---
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
programs.niri.enable = true;
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
programs.seahorse.enable = true;
|
||||
|
||||
services.blueman.enable = true; #bluetooth
|
||||
|
||||
environment.systemPackages = (
|
||||
(with pkgs; [
|
||||
# -- Stable system utilities --
|
||||
brightnessctl
|
||||
playerctl
|
||||
swaylock
|
||||
])
|
||||
++ (with pkgs.unstablePkgs; [
|
||||
# -- Fast-moving Wayland tools --
|
||||
xwayland-satellite
|
||||
fuzzel
|
||||
waybar
|
||||
])
|
||||
++ [
|
||||
# -- External flake inputs --
|
||||
inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww
|
||||
inputs.skwd-wall.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 25565 25567 ];
|
||||
allowedUDPPorts = [ 25565 25567];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pkgs.jdk21
|
||||
];
|
||||
|
||||
users.users = {
|
||||
minecraft = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.bashInteractive;
|
||||
openssh.authorizedKeys.keys = [
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user