Compare commits
2 commits
ba837aaa17
...
9bfa21d6ea
Author | SHA1 | Date | |
---|---|---|---|
9bfa21d6ea | |||
53cd96dcfd |
12 changed files with 61 additions and 36 deletions
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -47,7 +47,13 @@ in
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
core.autocrlf = "input";
|
core.autocrlf = "input";
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
pull.rebase = true;
|
core.excludesfile = (pkgs.writeText ".gitignore" ''
|
||||||
|
.idea
|
||||||
|
.obsidian
|
||||||
|
*~
|
||||||
|
result
|
||||||
|
'');
|
||||||
|
pull.rebase = false;
|
||||||
include.path = "${pkgs.delta.src}/themes.gitconfig";
|
include.path = "${pkgs.delta.src}/themes.gitconfig";
|
||||||
|
|
||||||
core.pager = "delta";
|
core.pager = "delta";
|
||||||
|
|
|
@ -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; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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": "fef678d1e1dbefdfbbf72eb6ef28b534af0bc403",
|
"rev": "a6f43e450d97eece8757e6cb6136f4cd4f141a3b",
|
||||||
"sha256": "0sic6ick1pc7xicyyjwfbcgc0lynd1kc2plffxa9iskcl6czpw61",
|
"sha256": "1l38vn7hahnl5x0m8kk4x1rqiig1divhja8cs9iqq466h7q1prdv",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/chaotic-cx/nyx/archive/fef678d1e1dbefdfbbf72eb6ef28b534af0bc403.tar.gz",
|
"url": "https://github.com/chaotic-cx/nyx/archive/a6f43e450d97eece8757e6cb6136f4cd4f141a3b.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": {
|
||||||
|
@ -50,13 +50,13 @@
|
||||||
"lix-module": {
|
"lix-module": {
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"repo": "https://git.lix.systems/lix-project/nixos-module.git",
|
"repo": "https://git.lix.systems/lix-project/nixos-module.git",
|
||||||
"rev": "18fa4a89e208cb8e881f5f71c75bbd4c1c2fd37d",
|
"rev": "38f31ee7c1a60adae58833789dd855c128b056c6",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
},
|
},
|
||||||
"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": "dd53bce476805b41f2e9858e64e38574a88db77f",
|
"rev": "71b32bb87cd48dbbd672c8ca6b041ed36f3bae11",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
},
|
},
|
||||||
"nixos-mailserver": {
|
"nixos-mailserver": {
|
||||||
|
|
|
@ -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
9
overlays/factorio.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ lib, prev, ... }:
|
||||||
|
let
|
||||||
|
loginFile = ./factorioLogin.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
factorio = prev.factorio.override (
|
||||||
|
{ } // lib.optionalAttrs (builtins.pathExists loginFile) (import loginFile)
|
||||||
|
);
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue