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, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -97,9 +93,6 @@ in
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
# __ ___ _ _ _ _ _
|
# __ ___ _ _ _ _ _
|
||||||
# \ \ / (_)_ __| |_ _ _ __ _| (_)___ __ _| |_(_) ___ _ __
|
# \ \ / (_)_ __| |_ _ _ __ _| (_)___ __ _| |_(_) ___ _ __
|
||||||
|
@ -113,19 +106,6 @@ in
|
||||||
# - Docker
|
# - 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
|
# android container
|
||||||
virtualisation.waydroid.enable = true;
|
virtualisation.waydroid.enable = true;
|
||||||
|
|
||||||
|
@ -159,34 +139,14 @@ in
|
||||||
# services.xserver.libinput.enable = true;
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
programs.java.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:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = (with pkgs; [
|
environment.systemPackages = (with pkgs; [
|
||||||
(python3.withPackages(python-packages))
|
(python3.withPackages(python-packages))
|
||||||
|
|
||||||
conda
|
|
||||||
|
|
||||||
virt-manager
|
|
||||||
distrobox
|
distrobox
|
||||||
|
|
||||||
# Rust toolchain
|
|
||||||
rustup
|
|
||||||
libiconv
|
|
||||||
rust-analyzer
|
|
||||||
|
|
||||||
php
|
|
||||||
php.packages.composer
|
|
||||||
|
|
||||||
go
|
go
|
||||||
|
|
||||||
nodejs
|
nodejs
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
imports = [
|
imports = [
|
||||||
./language-server.nix
|
./language-server.nix
|
||||||
./dotnet.nix
|
./dotnet.nix
|
||||||
|
./docker-rootless.nix
|
||||||
./platformio.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
|
./dvd.nix
|
||||||
./yubikey.nix
|
./yubikey.nix
|
||||||
./wireguard.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
|
# Configuration for nix
|
||||||
|
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
|
||||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# cleanup nix store after every build
|
# cleanup nix store after every build
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
|
@ -23,12 +20,7 @@ in
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# enable unstable packages
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
packageOverrides = pkgs: with pkgs; {
|
allowAliases = true;
|
||||||
unstable = import unstableTarball {
|
|
||||||
config = config.nixpkgs.config;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{ pkgs, config, ... }: {
|
||||||
|
# put your nix module in here!
|
||||||
|
}
|
|
@ -22,6 +22,7 @@
|
||||||
"tty"
|
"tty"
|
||||||
"uucp"
|
"uucp"
|
||||||
"plugdev"
|
"plugdev"
|
||||||
|
"docker"
|
||||||
];
|
];
|
||||||
# use zsh
|
# use zsh
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
|
Loading…
Reference in New Issue