My Nix Configuration

[meta] Move from `data` to `lib.py.data`

Changed files
+48 -55
homes
x86_64-linux
modules
home
profiles
development
gui
nixos
defaultConfig
systems
+2 -2
homes/x86_64-linux/pyrox/programs/gh.nix
···
-
{pkgs, data, lib, ...}: {
programs.gh = {
enable = true;
gitCredentialHelper.enable = true;
settings = {
-
editor = lib.getExe data.packages.nvim;
git_protocol = "https";
browser = "${pkgs.firefox-wayland}/bin/firefox";
prompt = "enabled";
···
+
{pkgs, lib, ...}: {
programs.gh = {
enable = true;
gitCredentialHelper.enable = true;
settings = {
+
editor = lib.getExe pkgs.py.nvim;
git_protocol = "https";
browser = "${pkgs.firefox-wayland}/bin/firefox";
prompt = "enabled";
+3 -3
homes/x86_64-linux/pyrox/programs/git.nix
···
-
{pkgs, lib, data, ...}:
{
programs.git = {
enable = true;
-
package = pkgs.my-pkgs.customGit;
aliases = {
a = "add -p";
co = "checkout";
···
options.line-numbers = true;
};
extraConfig = {
-
core.editor = lib.getExe data.packages.nvim;
init.defaultBranch = "main";
pull.rebase = false;
# gpg.format = "ssh";
···
+
{pkgs, lib, ...}:
{
programs.git = {
enable = true;
+
package = pkgs.py.customGit;
aliases = {
a = "add -p";
co = "checkout";
···
options.line-numbers = true;
};
extraConfig = {
+
core.editor = lib.getExe pkgs.py.nvim;
init.defaultBranch = "main";
pull.rebase = false;
# gpg.format = "ssh";
+2 -2
homes/x86_64-linux/pyrox/programs/kitty.nix
···
-
{pkgs, lib, data, ...}: {
programs.kitty = {
enable = true;
catppuccin.enable = true;
···
tab_bar_min_tabs = 2;
shell = "fish";
-
editor = "${lib.getExe data.packages.nvim}";
allow_remote_control = "socket-only";
listen_on = "unix:/tmp/mykitty";
update_check_interval = 0;
···
+
{pkgs, lib, ...}: {
programs.kitty = {
enable = true;
catppuccin.enable = true;
···
tab_bar_min_tabs = 2;
shell = "fish";
+
editor = "${lib.getExe pkgs.py.nvim}";
allow_remote_control = "socket-only";
listen_on = "unix:/tmp/mykitty";
update_check_interval = 0;
+1 -3
homes/x86_64-linux/pyrox/programs/neovim.nix
···
{
pkgs,
-
lib,
-
data,
...
}: {
programs.neovim = {
enable = true;
-
package = data.packages.nvim;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
···
{
pkgs,
...
}: {
programs.neovim = {
enable = true;
+
package = pkgs.py.nvim;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
+1 -2
homes/x86_64-linux/pyrox/programs/vscodium.nix
···
{
pkgs,
-
data,
lib,
...
}: {
···
"update.showReleaseNotes" = false;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
-
"vscode-neovim.neovimExecutablePaths.linux" = lib.getExe data.packages.neovim;
"python.formatting.provider" = "black";
};
};
···
{
pkgs,
lib,
...
}: {
···
"update.showReleaseNotes" = false;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
+
"vscode-neovim.neovimExecutablePaths.linux" = lib.getExe pkgs.py.neovim;
"python.formatting.provider" = "black";
};
};
+1 -3
modules/home/profiles/development/default.nix
···
{
-
inputs,
pkgs,
...
}: let
···
colmena
customPython
editorconfig-core-c
-
my-pkgs.customGit
nil
nixd
-
# python311
];
}
···
{
pkgs,
...
}: let
···
colmena
customPython
editorconfig-core-c
+
py.customGit
nil
nixd
];
}
+1 -1
modules/home/profiles/gui/default.nix
···
# ] ++ lib.optionals games [
# factorio-experimental
lutris
-
# my-pkgs.olympus
prismlauncher
protontricks
proton-caller
···
# ] ++ lib.optionals games [
# factorio-experimental
lutris
+
# py.olympus
prismlauncher
protontricks
proton-caller
+1 -1
modules/nixos/defaultConfig/packages.nix
···
direnv
doggo
fzf
-
my-pkgs.customGit
kitty.terminfo
lazygit
nix-output-monitor
···
direnv
doggo
fzf
+
py.customGit
kitty.terminfo
lazygit
nix-output-monitor
+1 -2
modules/nixos/defaultConfig/users.nix
···
{
lib,
pkgs,
-
data,
...
}: {
users.users = {
···
withNodeJs = true;
withPython3 = true;
withRuby = false;
-
package = data.packages.nvim;
};
}
···
{
lib,
pkgs,
...
}: {
users.users = {
···
withNodeJs = true;
withPython3 = true;
withRuby = false;
+
package = pkgs.py.nvim;
};
}
+2 -2
systems/x86_64-linux/marvin/services/authentik.nix
···
-
{config, data, lib, ...}: let
-
d = data.services.authentik;
in {
virtualisation.oci-containers.containers = let
authentikVersion = "2024.2";
···
+
{config, lib, ...}: let
+
d = lib.py.data.services.authentik;
in {
virtualisation.oci-containers.containers = let
authentikVersion = "2024.2";
+3 -3
systems/x86_64-linux/marvin/services/buildbot.nix
···
-
{config, data, ...}: let
as = config.age.secrets;
-
d = data.services.buildbot;
-
g = data.services.git;
bbSecret = {
owner = "buildbot";
group = "buildbot";
···
+
{config, lib, ...}: let
as = config.age.secrets;
+
d = lib.py.data.services.buildbot;
+
g = lib.py.data.services.git;
bbSecret = {
owner = "buildbot";
group = "buildbot";
+1 -1
systems/x86_64-linux/marvin/services/deemix.nix
···
{data, lib, ...}: let
-
d = data.services.deemix;
in {
virtualisation.oci-containers.containers.deemix = {
image = "registry.gitlab.com/bockiii/deemix-docker";
···
{data, lib, ...}: let
+
d = lib.py.data.services.deemix;
in {
virtualisation.oci-containers.containers.deemix = {
image = "registry.gitlab.com/bockiii/deemix-docker";
+2 -2
systems/x86_64-linux/marvin/services/git.nix
···
{
config,
-
data,
...
}: let
cfg = config.services.forgejo.settings;
···
group = "forgejo";
};
-
d = data.services.git;
in {
pyrox.services.forgejo-runner = {
enable = true;
···
{
config,
+
lib,
...
}: let
cfg = config.services.forgejo.settings;
···
group = "forgejo";
};
+
d = lib.data.services.git;
in {
pyrox.services.forgejo-runner = {
enable = true;
+3 -3
systems/x86_64-linux/marvin/services/grafana.nix
···
-
{config, data, ...}: let
-
d = data.services.grafana;
-
a = data.services.authentik;
in {
services.grafana = {
enable = true;
···
+
{config, lib, ...}: let
+
d = lib.py.data.services.grafana;
+
a = lib.py.data.services.authentik;
in {
services.grafana = {
enable = true;
+2 -2
systems/x86_64-linux/marvin/services/iceshrimp.nix
···
config,
inputs,
pkgs,
-
data,
...
}: let
-
d = data.services.iceshrimp;
package = inputs.iceshrimp.packages.x86_64-linux.iceshrimp-pre.overrideAttrs
(old: rec {
···
config,
inputs,
pkgs,
+
lib,
...
}: let
+
d = lib.data.services.iceshrimp;
package = inputs.iceshrimp.packages.x86_64-linux.iceshrimp-pre.overrideAttrs
(old: rec {
+2 -2
systems/x86_64-linux/marvin/services/matrix.nix
···
config,
pkgs,
inputs,
-
data,
...
}: let
-
d = data.services.matrix-server;
in {
services.matrix-conduit = {
enable = true;
···
config,
pkgs,
inputs,
+
lib,
...
}: let
+
d = lib.py.data.services.matrix-server;
in {
services.matrix-conduit = {
enable = true;
+3 -3
systems/x86_64-linux/marvin/services/nextcloud/default.nix
···
-
{config, pkgs, lib, data, ...}: let
-
d = data.services.nextcloud;
-
i = data.services.nextcloud-imaginary;
in {
imports = [
./office.nix
···
+
{config, pkgs, lib, ...}: let
+
d = lib.py.data.services.nextcloud;
+
i = lib.py.data.services.nextcloud-imaginary;
in {
imports = [
./office.nix
+2 -2
systems/x86_64-linux/marvin/services/nextcloud/imaginary.nix
···
-
{ data, ...}: let
-
d = data.services.nextcloud-imaginary;
in{
services.imaginary = {
enable = true;
···
+
{ lib, ...}: let
+
d = lib.py.data.services.nextcloud-imaginary;
in{
services.imaginary = {
enable = true;
+2 -2
systems/x86_64-linux/marvin/services/nextcloud/office.nix
···
-
{ data, ...}: let
-
d = data.services.nextcloud-office;
in {
virtualisation.oci-containers.containers.collabora-office = {
image = "collabora/code";
···
+
{ lib, ...}: let
+
d = lib.py.data.services.nextcloud-office;
in {
virtualisation.oci-containers.containers.collabora-office = {
image = "collabora/code";
+2 -2
systems/x86_64-linux/marvin/services/nginx.nix
···
-
{pkgs, data, ...}: let
-
n = data.services.nextcloud;
in {
services.nginx = {
virtualHosts = {
···
+
{lib, ...}: let
+
n = lib.py.data.services.nextcloud;
in {
services.nginx = {
virtualHosts = {
+2 -2
systems/x86_64-linux/marvin/services/planka.nix
···
-
{ config, data, ... }: let
dataDir = "/var/lib/planka";
-
d = data.services.planka;
in {
virtualisation.oci-containers.containers = {
planka-server = {
···
+
{ config, lib, ... }: let
dataDir = "/var/lib/planka";
+
d = lib.py.data.services.planka;
in {
virtualisation.oci-containers.containers = {
planka-server = {
+2 -2
systems/x86_64-linux/marvin/services/radicale.nix
···
-
{pkgs, data, config, ...}: let
-
d = data.services.radicale;
p = toString d.port;
in {
services.radicale = {
···
+
{pkgs, lib, config, ...}: let
+
d = lib.py.data.services.radicale;
p = toString d.port;
in {
services.radicale = {
+2 -2
systems/x86_64-linux/marvin/services/redlib.nix
···
-
{ pkgs, data, ...}: let
-
d = data.services.redlib;
in {
services.libreddit = {
enable = true;
···
+
{ pkgs, lib, ...}: let
+
d = lib.py.data.services.redlib;
in {
services.libreddit = {
enable = true;
+2 -2
systems/x86_64-linux/marvin/services/vaultwarden.nix
···
-
{pkgs, config, data, ...}: let
-
d = data.services.vaultwarden;
vaultwardenSecret = {
owner = "vaultwarden";
···
+
{pkgs, config, lib, ...}: let
+
d = lib.py.data.services.vaultwarden;
vaultwardenSecret = {
owner = "vaultwarden";
+2 -3
systems/x86_64-linux/marvin/services/webmentiond.nix
···
{
config,
-
pkgs,
-
data,
...
}: let
-
d = data.services.webmentiond;
p = toString d.port;
in {
virtualisation.oci-containers.containers.webmentiond = {
···
{
config,
+
lib,
...
}: let
+
d = lib.py.data.services.webmentiond;
p = toString d.port;
in {
virtualisation.oci-containers.containers.webmentiond = {
+1 -1
systems/x86_64-linux/zaphod/programs/misc.nix
···
programs.fish.enable = true;
# Git
programs.git.enable = true;
-
programs.git.package = pkgs.my-pkgs.customGit;
programs.git.lfs.enable = true;
# KDEConnect
programs.kdeconnect.enable = true;
···
programs.fish.enable = true;
# Git
programs.git.enable = true;
+
programs.git.package = pkgs.py.customGit;
programs.git.lfs.enable = true;
# KDEConnect
programs.kdeconnect.enable = true;