Compare commits
3 Commits
7a4283ba3a
...
70a10c6b73
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70a10c6b73 | ||
|
|
b38ee2c8d6 | ||
|
|
0518c9b34a |
@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
@ -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
5
config/flakes.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ system ? "x86_64-linux" }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hytale-launcher = (builtins.getFlake "github:TNAZEP/HytaleLauncherFlake").packages.${system}.default;
|
||||||
|
}
|
||||||
@ -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
|
||||||
|
|||||||
@ -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
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user