mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 00:15:06 +03:00
Migrate to uutils, install retroarch, add ivabus-dev.nix package (testing on celerrime)
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
5b7db36b26
commit
12c3e83dbe
7 changed files with 67 additions and 5 deletions
|
@ -30,7 +30,7 @@
|
|||
curl
|
||||
usbutils
|
||||
pciutils
|
||||
coreutils-full
|
||||
(uutils-coreutils.override { prefix = ""; })
|
||||
killall
|
||||
git
|
||||
git-crypt
|
||||
|
|
|
@ -9,4 +9,4 @@ rec {
|
|||
roles
|
||||
];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,11 +31,32 @@ in {
|
|||
|
||||
networking.useDHCP = true;
|
||||
|
||||
|
||||
# Setup asahi-specific things. NOTE: you must copy firmware from ESP to /etc/nixos/asahi/firmware
|
||||
hardware.asahi.peripheralFirmwareDirectory = ../../asahi/firmware;
|
||||
hardware.asahi.addEdgeKernelConfig = true;
|
||||
hardware.asahi.useExperimentalGPUDriver = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(retroarch.override { cores = with libretro; [ np2kai ];})
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
# Use recommended settings
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts."ivabus.dev" = {
|
||||
# i don't want to call package like this
|
||||
root = pkgs.callPackage ../../pkgs/ivabus-dev.nix {};
|
||||
|
||||
extraConfig = ''
|
||||
error_page 404 /404.html;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
|
|
39
pkgs/ivabus-dev.nix
Normal file
39
pkgs/ivabus-dev.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ pkgs ? import <nixpkgs> {}, bundlerEnv, ... }:
|
||||
let
|
||||
version = "025b56be08da939ad016dcacfb833b8652d2848e";
|
||||
repo = builtins.fetchGit {
|
||||
url = "https://github.com/ivabus/website";
|
||||
rev = version;
|
||||
};
|
||||
|
||||
gems = bundlerEnv {
|
||||
name = "ivabus-dev";
|
||||
ruby = pkgs.ruby;
|
||||
|
||||
gemdir = "${repo}/.";
|
||||
};
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
inherit version;
|
||||
name = "ivabus-dev";
|
||||
src = repo;
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
gems
|
||||
# nokogiri dependencies
|
||||
zlib
|
||||
libiconv
|
||||
libxml2
|
||||
libxslt
|
||||
# jekyll wants a JS runtime
|
||||
nodejs-slim
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
bundle exec jekyll build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r _site/* $out/
|
||||
'';
|
||||
}
|
|
@ -21,6 +21,7 @@ in {
|
|||
ninja
|
||||
picocom
|
||||
screen
|
||||
hyperfine
|
||||
];
|
||||
}
|
||||
# Architecture-specific packages and configuration
|
||||
|
|
|
@ -15,6 +15,7 @@ in {
|
|||
wineWowPackages.staging
|
||||
winetricks
|
||||
wineWowPackages.waylandFull
|
||||
(retroarch.override { cores = with libretro; [ np2kai ];})
|
||||
];
|
||||
}
|
||||
# Enable steam only on x86_64 (since I have hosts with ARM, but I don't think I will enable my.roles.gaming on ARM system soon)
|
||||
|
@ -24,4 +25,4 @@ in {
|
|||
networking.firewall.allowedUDPPorts = [ 27031 27036 ];
|
||||
})
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ in {
|
|||
roboto-mono
|
||||
kochi-substitute
|
||||
];
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # Enable wayland for electron
|
||||
home-manager.users.ivabus = {
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue