Compare commits
3 Commits
882d63f0ba
...
5db7c62dd1
| Author | SHA1 | Date | |
|---|---|---|---|
| 5db7c62dd1 | |||
| 470c58dc09 | |||
| a9e6f0b7cc |
@@ -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
15
nix-alien.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user