factorio overlay

This commit is contained in:
Grimmauld 2024-05-29 09:47:17 +02:00
parent 62e7db65e4
commit 53cd96dcfd
Signed by: Grimmauld
GPG Key ID: C2946668769F91FB
12 changed files with 62 additions and 37 deletions

View File

@ -6,7 +6,7 @@
}: }:
let let
inherit (config.grimmShared) enable gaming; inherit (config.grimmShared) enable gaming;
inherit (lib) mkIf getExe mkEnableOption; inherit (lib) mkIf getExe mkEnableOption optional;
in in
{ {
config = mkIf (enable && gaming) { config = mkIf (enable && gaming) {
@ -45,6 +45,8 @@ in
prismlauncher prismlauncher
mangohud mangohud
the-powder-toy the-powder-toy
factorio
pactorio
(symlinkJoin { (symlinkJoin {
name = "osu"; name = "osu";
paths = [ paths = [
@ -54,7 +56,7 @@ in
osu-lazer-bin osu-lazer-bin
]; ];
}) })
]; ] ++ optional (factorio.passthru.updateScript != null) factorio;
}; };
options.grimmShared.gaming = mkEnableOption "enables steam, heroic, prism and gamemoded"; options.grimmShared.gaming = mkEnableOption "enables steam, heroic, prism and gamemoded";

View File

@ -14,7 +14,7 @@ in
noto-fonts noto-fonts
noto-fonts-cjk noto-fonts-cjk
font-awesome font-awesome
# noto-fonts-emoji # noto-fonts-emoji
noto-fonts-monochrome-emoji noto-fonts-monochrome-emoji
roboto roboto
liberation_ttf liberation_ttf

View File

@ -65,7 +65,7 @@ in
"sd_mod" "sd_mod"
]; ];
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
# extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ]; # extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ];
kernelModules = [ kernelModules = [
"ddcci_backlight" "ddcci_backlight"
"i2c-dev" "i2c-dev"

View File

@ -47,6 +47,12 @@ in
push.autoSetupRemote = true; push.autoSetupRemote = true;
core.autocrlf = "input"; core.autocrlf = "input";
commit.gpgsign = true; commit.gpgsign = true;
core.excludesfile = (pkgs.writeText ".gitignore" ''
.idea
.obsidian
*~
result
'');
pull.rebase = true; pull.rebase = true;
include.path = "${pkgs.delta.src}/themes.gitconfig"; include.path = "${pkgs.delta.src}/themes.gitconfig";

View File

@ -35,13 +35,15 @@ in
programs.xonsh = { programs.xonsh = {
enable = true; enable = true;
config = '' config =
execx($(${getExe pkgs.starship} init xonsh)) ''
'' + concatLines ( execx($(${getExe pkgs.starship} init xonsh))
mapAttrsToList ( ''
name: value: "aliases[\"${name}\"] = '''${value}'''" + concatLines (
) config.environment.shellAliases mapAttrsToList (
); name: value: "aliases[\"${name}\"] = '''${value}'''"
) config.environment.shellAliases
);
# package = pkgs.xonsh.wrapper.override { extraPackages = pyLibs; }; # package = pkgs.xonsh.wrapper.override { extraPackages = pyLibs; };
}; };

View File

@ -25,9 +25,7 @@ in
] ]
++ optionals graphical [ jetbrains.clion ]; ++ optionals graphical [ jetbrains.clion ];
grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [ grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [ rustaceanvim ];
rustaceanvim
];
grimmShared.tooling.lang_servers = [ grimmShared.tooling.lang_servers = [
{ {

View File

@ -103,11 +103,15 @@ in
in in
{ {
hostPlatform = system; hostPlatform = system;
pkgs = if (nixpkgs_patches != []) then (import (applyPatches { pkgs =
name = "nixpkgs-patched"; if (nixpkgs_patches != [ ]) then
inherit src; (import (applyPatches {
patches = map fetchpatch nixpkgs_patches; name = "nixpkgs-patched";
}) { inherit config; }) else unpatched; inherit src;
patches = map fetchpatch nixpkgs_patches;
}) { inherit config; })
else
unpatched;
overlays = [ overlays = [
(import ( (import (

View File

@ -75,11 +75,14 @@ in
in in
{ {
enable = true; enable = true;
urlList = [ "ldap:///" "ldapi:///" ]; urlList = [
"ldap:///"
"ldapi:///"
];
# declarativeContents = { # declarativeContents = {
# "${localDc}" = import ./ldapConf.nix { inherit localDc; }; # "${localDc}" = import ./ldapConf.nix { inherit localDc; };
# }; # };
settings = { settings = {
attrs = { attrs = {
@ -105,7 +108,7 @@ in
olcSuffix = localDc; olcSuffix = localDc;
olcRootDN = "cn=admin,${localDc}"; olcRootDN = "cn=admin,${localDc}";
# olcRootPW.path = config.age.secrets.openldap_admin.path; # olcRootPW.path = config.age.secrets.openldap_admin.path;
olcRootPW = "{SSHA}D1U1E6Xz07DGYLjke1YcCsVF6ddSLyLr"; olcRootPW = "{SSHA}D1U1E6Xz07DGYLjke1YcCsVF6ddSLyLr";
olcAccess = [ olcAccess = [

View File

@ -29,10 +29,10 @@
"homepage": "https://nyx.chaotic.cx", "homepage": "https://nyx.chaotic.cx",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "f3685d816317958caf2bce128f80d02fee65b163", "rev": "651cfaba624e7bf0876fbd528f3fa8f1b0c0c614",
"sha256": "1nklhkwfsyxilyzls6rw2cw9sdhlni5jnq4llj1m2w2ggw83d0wv", "sha256": "0annk8pgx69r8jnnmxcf6n79hwm4dnxj6q0qyqwgjh0g26sa958k",
"type": "tarball", "type": "tarball",
"url": "https://github.com/chaotic-cx/nyx/archive/f3685d816317958caf2bce128f80d02fee65b163.tar.gz", "url": "https://github.com/chaotic-cx/nyx/archive/651cfaba624e7bf0876fbd528f3fa8f1b0c0c614.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"glibc-eac": { "glibc-eac": {
@ -56,7 +56,7 @@
"lix-pkg": { "lix-pkg": {
"branch": "main", "branch": "main",
"repo": "https://git.lix.systems/lix-project/lix.git", "repo": "https://git.lix.systems/lix-project/lix.git",
"rev": "2b397c66297bab65c2b5719367a414f9a2efb7e7", "rev": "ec5039653d6281f8bbe6158758aa721a1061082a",
"type": "git" "type": "git"
}, },
"nixos-mailserver": { "nixos-mailserver": {
@ -83,10 +83,10 @@
"homepage": null, "homepage": null,
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5710852ba686cc1fd0d3b8e22b3117d43ba374c2", "rev": "bfb7a882678e518398ce9a31a881538679f6f092",
"sha256": "1rai87jwpfly0bpkhiaq56n3rvzhb15h72n61s42q1mpnw3vf4zh", "sha256": "0zyny8h62hqfix4mrk6nf3qdvmhs49v9pkrnq80q28ji4j2qhd73",
"type": "tarball", "type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/5710852ba686cc1fd0d3b8e22b3117d43ba374c2.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/bfb7a882678e518398ce9a31a881538679f6f092.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
} }
} }

View File

@ -31,5 +31,6 @@
./confwhich.nix ./confwhich.nix
./rfindup.nix ./rfindup.nix
./glibc-eac.nix ./glibc-eac.nix
./factorio.nix
]; ];
} }

9
overlays/factorio.nix Normal file
View File

@ -0,0 +1,9 @@
{ lib, prev, ... }:
let
loginFile = ./factorioLogin.nix;
in
{
factorio = prev.factorio.override (
{ } // lib.optionalAttrs (builtins.pathExists loginFile) (import loginFile)
);
}

View File

@ -1,12 +1,12 @@
{ prev, ... }: let { prev, ... }:
let
nivSources = import ../nix/sources.nix; nivSources = import ../nix/sources.nix;
glibc_patches = [ glibc_patches = [ "rogue_company_reverts.patch" ];
"rogue_company_reverts.patch"
];
in in
{ {
glibc-eac = prev.glibc.overrideAttrs(old: { glibc-eac = prev.glibc.overrideAttrs (old: {
patches = ( patches =
(
let let
oldPatches = old.patches or [ ]; oldPatches = old.patches or [ ];
in in