Compare commits

..

3 Commits

Author SHA1 Message Date
5db7c62dd1 enabled steam 2024-05-21 00:02:07 +03:00
470c58dc09 added nix-alien 2024-05-21 00:01:29 +03:00
a9e6f0b7cc enabled docker 2024-05-20 23:58:30 +03:00
2 changed files with 32 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./nix-alien.nix
];
# Bootloader.
@@ -101,6 +102,14 @@
# Install firefox.
programs.firefox.enable = true;
programs.nix-ld.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
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
@@ -150,4 +159,12 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
}

15
nix-alien.nix Normal file
View File

@@ -0,0 +1,15 @@
{ ... }:
let
nix-alien-pkgs = import (
builtins.fetchTarball "https://github.com/thiagokokada/nix-alien/tarball/master"
) { };
in
{
environment.systemPackages = with nix-alien-pkgs; [
nix-alien
];
# Optional, but this is needed for `nix-alien-ld` command
programs.nix-ld.enable = true;
}