Compare commits

...

3 Commits

Author SHA1 Message Date
Sebastian Fischer
70a10c6b73 [TASK] Improve install with flakes 2026-02-11 20:48:28 +01:00
Sebastian Fischer
b38ee2c8d6 [TASK] Refactor autostart 2026-02-11 20:38:22 +01:00
Sebastian Fischer
0518c9b34a [TASK] Add hytale launcher as flake 2026-02-11 07:59:24 +01:00
5 changed files with 30 additions and 15 deletions

View File

@ -150,7 +150,7 @@ nix-channel --add https://github.com/nix-community/home-manager/archive/release-
nix-channel --update nix-channel --update
# Konfiguration anwenden # Konfiguration anwenden
nixos-rebuild switch nixos-rebuild switch --option experimental-features "nix-command flakes"
reboot reboot
``` ```

View File

@ -1,7 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ # Include the results of the hardware scan. imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./common.nix ./common.nix
./mounts.nix ./mounts.nix
@ -11,13 +12,14 @@
<home-manager/nixos> <home-manager/nixos>
]; ];
# Home Manager Konfiguration # Home Manager configuration
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
# NixOS Version (nicht ändern nach Erstinstallation) # NixOS Version (don't change after first installation)
system.stateVersion = "25.11"; system.stateVersion = "25.11";
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
} }

5
config/flakes.nix Normal file
View File

@ -0,0 +1,5 @@
{ system ? "x86_64-linux" }:
{
hytale-launcher = (builtins.getFlake "github:TNAZEP/HytaleLauncherFlake").packages.${system}.default;
}

View File

@ -3,6 +3,7 @@
let let
localScripts = import ./scripts.nix { inherit pkgs; }; localScripts = import ./scripts.nix { inherit pkgs; };
flakePackages = import ./flakes.nix {};
in in
{ {
home.stateVersion = "25.11"; home.stateVersion = "25.11";
@ -37,6 +38,7 @@ in
lutris lutris
steam steam
prismlauncher prismlauncher
flakePackages.hytale-launcher
# Entwicklung # Entwicklung
jetbrains-toolbox jetbrains-toolbox

View File

@ -1,10 +1,24 @@
{ pkgs, ... }: { pkgs, ... }:
let
spice-vdagent-desktop = pkgs.makeDesktopItem {
name = "spice-vdagent-custom";
desktopName = "Spice vdagent Custom";
comment = "Startet das Clipboard für QEMU/Spice";
exec = "${pkgs.spice-vdagent}/bin/spice-vdagent";
terminal = false;
type = "Application";
categories = [ "Network" ];
extraConfig.StartupNotify = "false";
extraConfig."X-GNOME-Autostart-enabled" = "true";
};
in
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
spice-vdagent spice-vdagent
phodav phodav
wl-clipboard wl-clipboard
spice-vdagent-desktop
]; ];
# List services that you want to enable: # List services that you want to enable:
@ -18,15 +32,7 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
environment.etc."xdg/autostart/spice-vdagent-custom.desktop".text = '' # Symlink für Autostart
[Desktop Entry] environment.etc."xdg/autostart/spice-vdagent-custom.desktop".source =
Name=Spice vdagent Custom "${spice-vdagent-desktop}/share/applications/spice-vdagent-custom.desktop";
Comment=Startet das Clipboard für QEMU/Spice
Exec=${pkgs.spice-vdagent}/bin/spice-vdagent
Terminal=false
Type=Application
Categories=Network;
StartupNotify=false
X-GNOME-Autostart-enabled=true
'';
} }