moved qmeu, steam and various dev configs
This commit is contained in:
parent
99c6727cda
commit
cc08b0d2f2
|
@ -1,7 +1,3 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running nixos-help).
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
|
@ -97,9 +93,6 @@ in
|
|||
# Configure console keymap
|
||||
console.keyMap = "de";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
################################################
|
||||
# __ ___ _ _ _ _ _
|
||||
# \ \ / (_)_ __| |_ _ _ __ _| (_)___ __ _| |_(_) ___ _ __
|
||||
|
@ -113,19 +106,6 @@ in
|
|||
# - Docker
|
||||
################################################
|
||||
|
||||
# enable rootless docker for more security
|
||||
virtualisation.docker.rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
# regulary clean unused docker images
|
||||
virtualisation.docker.autoPrune.enable = true;
|
||||
# add user teridax to docker group
|
||||
users.extraGroups.docker.members = [ "servostar" ];
|
||||
|
||||
# KVM
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
# android container
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
|
@ -159,34 +139,14 @@ in
|
|||
# services.xserver.libinput.enable = true;
|
||||
|
||||
programs.java.enable = true;
|
||||
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
|
||||
};
|
||||
hardware.opengl.driSupport32Bit = true; # Enables support for 32bit libs that steam uses
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = (with pkgs; [
|
||||
(python3.withPackages(python-packages))
|
||||
|
||||
conda
|
||||
|
||||
virt-manager
|
||||
distrobox
|
||||
|
||||
# Rust toolchain
|
||||
rustup
|
||||
libiconv
|
||||
rust-analyzer
|
||||
|
||||
php
|
||||
php.packages.composer
|
||||
|
||||
go
|
||||
|
||||
nodejs
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
imports = [
|
||||
./language-server.nix
|
||||
./dotnet.nix
|
||||
./docker-rootless.nix
|
||||
./platformio.nix
|
||||
./qemu.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, config, ... }: {
|
||||
# enable rootless docker for more security
|
||||
virtualisation.docker.rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
# regulary clean unused docker images
|
||||
virtualisation.docker.autoPrune.enable = true;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, config, ... }: {
|
||||
environment.systemPackages = (with pkgs; [
|
||||
php
|
||||
php.packages.composer
|
||||
])
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, config, ... }: {
|
||||
# KVM
|
||||
virtualisation.libvirtd.enable = true;
|
||||
# programs.virt-manager.enable = true; # after 23.11
|
||||
|
||||
# only before 23.11
|
||||
environment.systemPackages = (with pkgs; [
|
||||
virt-manager
|
||||
]);
|
||||
}
|
|
@ -4,5 +4,6 @@
|
|||
./dvd.nix
|
||||
./yubikey.nix
|
||||
./wireguard.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, config, ... }: {
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
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
|
||||
};
|
||||
hardware.opengl.driSupport32Bit = true; # Enables support for 32bit libs that steam uses
|
||||
}
|
|
@ -8,9 +8,6 @@
|
|||
# Configuration for nix
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
||||
in
|
||||
{
|
||||
# cleanup nix store after every build
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
@ -23,12 +20,7 @@ in
|
|||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
# enable unstable packages
|
||||
nixpkgs.config = {
|
||||
packageOverrides = pkgs: with pkgs; {
|
||||
unstable = import unstableTarball {
|
||||
config = config.nixpkgs.config;
|
||||
};
|
||||
};
|
||||
allowAliases = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{ pkgs, config, ... }: {
|
||||
# put your nix module in here!
|
||||
}
|
|
@ -22,6 +22,7 @@
|
|||
"tty"
|
||||
"uucp"
|
||||
"plugdev"
|
||||
"docker"
|
||||
];
|
||||
# use zsh
|
||||
shell = pkgs.zsh;
|
||||
|
|
Loading…
Reference in New Issue