mirror of
https://github.com/kmein/niveum
synced 2026-03-20 12:01:06 +01:00
minimize usage of //
This commit is contained in:
@@ -130,12 +130,12 @@ in {
|
|||||||
titlebar = false;
|
titlebar = false;
|
||||||
border = 1;
|
border = 1;
|
||||||
};
|
};
|
||||||
bars = [
|
bars = let position = "bottom"; in [
|
||||||
(config.home-manager.users.me.stylix.targets.i3.exportedBarConfig
|
(lib.recursiveUpdate config.home-manager.users.me.stylix.targets.i3.exportedBarConfig
|
||||||
// rec {
|
{
|
||||||
workspaceButtons = true;
|
workspaceButtons = true;
|
||||||
mode = "hide"; # "dock";
|
mode = "hide"; # "dock";
|
||||||
position = "bottom";
|
inherit position;
|
||||||
statusCommand = toString (pkgs.writers.writeDash "i3status-rust" ''
|
statusCommand = toString (pkgs.writers.writeDash "i3status-rust" ''
|
||||||
export I3RS_GITHUB_TOKEN="$(cat ${config.age.secrets.github-token-i3status-rust.path})"
|
export I3RS_GITHUB_TOKEN="$(cat ${config.age.secrets.github-token-i3status-rust.path})"
|
||||||
export OPENWEATHERMAP_API_KEY="$(cat ${config.age.secrets.openweathermap-api-key.path})"
|
export OPENWEATHERMAP_API_KEY="$(cat ${config.age.secrets.openweathermap-api-key.path})"
|
||||||
|
|||||||
@@ -94,9 +94,9 @@ in
|
|||||||
home-manager.users.me = {
|
home-manager.users.me = {
|
||||||
home.file =
|
home.file =
|
||||||
lib.mapAttrs' (name: path: lib.nameValuePair ".xkb/symbols/${name}" { source = path; })
|
lib.mapAttrs' (name: path: lib.nameValuePair ".xkb/symbols/${name}" { source = path; })
|
||||||
(lib.filterAttrs (_: value: !(value ? "code")) languages) // {
|
(lib.recursiveUpdate (lib.filterAttrs (_: value: !(value ? "code")) languages) {
|
||||||
".xkb/symbols/ir".source = ../lib/keyboards/farsi;
|
".xkb/symbols/ir".source = ../lib/keyboards/farsi;
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|||||||
83
flake.nix
83
flake.nix
@@ -78,8 +78,10 @@
|
|||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in
|
in
|
||||||
nixinate.nixinate.x86_64-linux self
|
lib.mergeAttrsList [
|
||||||
// {
|
nixinate.nixinate.x86_64-linux
|
||||||
|
self
|
||||||
|
{
|
||||||
mock-secrets = {
|
mock-secrets = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = toString (
|
program = toString (
|
||||||
@@ -90,7 +92,7 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
# the following error prevents remote building of ful: https://github.com/NixOS/nixpkgs/issues/177873
|
# the following error prevents remote building of ful: https://github.com/NixOS/nixpkgs/issues/177873
|
||||||
// builtins.listToAttrs (
|
(builtins.listToAttrs (
|
||||||
map (
|
map (
|
||||||
hostname:
|
hostname:
|
||||||
let
|
let
|
||||||
@@ -120,8 +122,8 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
) (builtins.attrNames self.nixosConfigurations)
|
) (builtins.attrNames self.nixosConfigurations)
|
||||||
)
|
))
|
||||||
// {
|
{
|
||||||
deploy-ful = {
|
deploy-ful = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = toString (
|
program = toString (
|
||||||
@@ -132,7 +134,8 @@
|
|||||||
''
|
''
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO overlay for packages
|
# TODO overlay for packages
|
||||||
@@ -152,11 +155,13 @@
|
|||||||
panoptikon = import lib/panoptikon.nix;
|
panoptikon = import lib/panoptikon.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = let
|
nixosConfigurations =
|
||||||
|
let
|
||||||
niveumSpecialArgs = system: {
|
niveumSpecialArgs = system: {
|
||||||
unstablePackages = import nixpkgs-unstable {
|
unstablePackages = import nixpkgs-unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfreePredicate = pkg:
|
config.allowUnfreePredicate =
|
||||||
|
pkg:
|
||||||
builtins.elem (nixpkgs-unstable.lib.getName pkg) [
|
builtins.elem (nixpkgs-unstable.lib.getName pkg) [
|
||||||
"obsidian"
|
"obsidian"
|
||||||
"zoom"
|
"zoom"
|
||||||
@@ -166,10 +171,23 @@
|
|||||||
niveumPackages = self.packages.${system};
|
niveumPackages = self.packages.${system};
|
||||||
niveumLib = self.lib;
|
niveumLib = self.lib;
|
||||||
inputs = {
|
inputs = {
|
||||||
inherit tinc-graph self telebots menstruation-telegram menstruation-backend scripts agenix recht autorenkalender nixpkgs wallpaper-generator;
|
inherit
|
||||||
|
tinc-graph
|
||||||
|
self
|
||||||
|
telebots
|
||||||
|
menstruation-telegram
|
||||||
|
menstruation-backend
|
||||||
|
scripts
|
||||||
|
agenix
|
||||||
|
recht
|
||||||
|
autorenkalender
|
||||||
|
nixpkgs
|
||||||
|
wallpaper-generator
|
||||||
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
ful = nixpkgs.lib.nixosSystem rec {
|
ful = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
specialArgs = niveumSpecialArgs system;
|
specialArgs = niveumSpecialArgs system;
|
||||||
@@ -285,25 +303,44 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = eachSupportedSystem (system: let
|
packages = eachSupportedSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = [
|
overlays = [
|
||||||
nur.overlays.default
|
nur.overlays.default
|
||||||
(self: super: {
|
(self: super: {
|
||||||
mpv = super.mpv.override {scripts = [super.mpvScripts.visualizer super.mpvScripts.mpris];};
|
mpv = super.mpv.override {
|
||||||
|
scripts = [
|
||||||
|
super.mpvScripts.visualizer
|
||||||
|
super.mpvScripts.mpris
|
||||||
|
];
|
||||||
|
};
|
||||||
dmenu = super.writers.writeDashBin "dmenu" ''exec ${pkgs.rofi}/bin/rofi -dmenu "$@"'';
|
dmenu = super.writers.writeDashBin "dmenu" ''exec ${pkgs.rofi}/bin/rofi -dmenu "$@"'';
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
wrapScript = {
|
wrapScript =
|
||||||
|
{
|
||||||
packages ? [ ],
|
packages ? [ ],
|
||||||
name,
|
name,
|
||||||
script,
|
script,
|
||||||
}:
|
}:
|
||||||
pkgs.writers.writeDashBin name ''PATH=$PATH:${nixpkgs.lib.makeBinPath (packages ++ [pkgs.findutils pkgs.coreutils pkgs.gnused pkgs.gnugrep])} ${script} "$@"'';
|
pkgs.writers.writeDashBin name ''PATH=$PATH:${
|
||||||
in {
|
nixpkgs.lib.makeBinPath (
|
||||||
|
packages
|
||||||
|
++ [
|
||||||
|
pkgs.findutils
|
||||||
|
pkgs.coreutils
|
||||||
|
pkgs.gnused
|
||||||
|
pkgs.gnugrep
|
||||||
|
]
|
||||||
|
)
|
||||||
|
} ${script} "$@"'';
|
||||||
|
in
|
||||||
|
{
|
||||||
# linguistics and ancient world
|
# linguistics and ancient world
|
||||||
auc = pkgs.callPackage packages/auc.nix { };
|
auc = pkgs.callPackage packages/auc.nix { };
|
||||||
betacode = pkgs.callPackage packages/betacode.nix { };
|
betacode = pkgs.callPackage packages/betacode.nix { };
|
||||||
@@ -311,7 +348,9 @@
|
|||||||
devanagari = pkgs.callPackage packages/devanagari { };
|
devanagari = pkgs.callPackage packages/devanagari { };
|
||||||
stardict-tools = pkgs.callPackage packages/stardict-tools.nix { };
|
stardict-tools = pkgs.callPackage packages/stardict-tools.nix { };
|
||||||
heuretes = pkgs.callPackage packages/heuretes.nix { };
|
heuretes = pkgs.callPackage packages/heuretes.nix { };
|
||||||
ipa = pkgs.writers.writePython3Bin "ipa" {flakeIgnore = ["E501"];} (builtins.readFile packages/ipa.py);
|
ipa = pkgs.writers.writePython3Bin "ipa" { flakeIgnore = [ "E501" ]; } (
|
||||||
|
builtins.readFile packages/ipa.py
|
||||||
|
);
|
||||||
jsesh = pkgs.callPackage packages/jsesh.nix { }; # TODO upstream
|
jsesh = pkgs.callPackage packages/jsesh.nix { }; # TODO upstream
|
||||||
kirciuoklis = pkgs.callPackage packages/kirciuoklis.nix { };
|
kirciuoklis = pkgs.callPackage packages/kirciuoklis.nix { };
|
||||||
polyglot = pkgs.callPackage packages/polyglot.nix { };
|
polyglot = pkgs.callPackage packages/polyglot.nix { };
|
||||||
@@ -385,7 +424,9 @@
|
|||||||
vimPlugins-mdwa-nvim = pkgs.callPackage packages/vimPlugins/mdwa-nvim.nix { }; # TODO upstream
|
vimPlugins-mdwa-nvim = pkgs.callPackage packages/vimPlugins/mdwa-nvim.nix { }; # TODO upstream
|
||||||
vimPlugins-vim-ernest = pkgs.callPackage packages/vimPlugins/vim-ernest.nix { }; # TODO upstream
|
vimPlugins-vim-ernest = pkgs.callPackage packages/vimPlugins/vim-ernest.nix { }; # TODO upstream
|
||||||
vimPlugins-vim-256noir = pkgs.callPackage packages/vimPlugins/vim-256noir.nix { }; # TODO upstream
|
vimPlugins-vim-256noir = pkgs.callPackage packages/vimPlugins/vim-256noir.nix { }; # TODO upstream
|
||||||
vimPlugins-vim-colors-paramount = pkgs.callPackage packages/vimPlugins/vim-colors-paramount.nix {}; # TODO upstream
|
vimPlugins-vim-colors-paramount =
|
||||||
|
pkgs.callPackage packages/vimPlugins/vim-colors-paramount.nix
|
||||||
|
{ }; # TODO upstream
|
||||||
vimPlugins-vim-fetch = pkgs.callPackage packages/vimPlugins/vim-fetch.nix { }; # TODO upstream
|
vimPlugins-vim-fetch = pkgs.callPackage packages/vimPlugins/vim-fetch.nix { }; # TODO upstream
|
||||||
vimPlugins-vim-fsharp = pkgs.callPackage packages/vimPlugins/vim-fsharp.nix { }; # TODO upstream
|
vimPlugins-vim-fsharp = pkgs.callPackage packages/vimPlugins/vim-fsharp.nix { }; # TODO upstream
|
||||||
vimPlugins-vim-mail = pkgs.callPackage packages/vimPlugins/vim-mail.nix { }; # TODO upstream
|
vimPlugins-vim-mail = pkgs.callPackage packages/vimPlugins/vim-mail.nix { }; # TODO upstream
|
||||||
@@ -399,13 +440,17 @@
|
|||||||
booksplit = wrapScript {
|
booksplit = wrapScript {
|
||||||
script = voidrice.outPath + "/.local/bin/booksplit";
|
script = voidrice.outPath + "/.local/bin/booksplit";
|
||||||
name = "booksplit";
|
name = "booksplit";
|
||||||
packages = [pkgs.ffmpeg pkgs.glibc.bin];
|
packages = [
|
||||||
|
pkgs.ffmpeg
|
||||||
|
pkgs.glibc.bin
|
||||||
|
];
|
||||||
};
|
};
|
||||||
tag = wrapScript {
|
tag = wrapScript {
|
||||||
script = voidrice.outPath + "/.local/bin/tag";
|
script = voidrice.outPath + "/.local/bin/tag";
|
||||||
name = "tag";
|
name = "tag";
|
||||||
packages = [ pkgs.ffmpeg ];
|
packages = [ pkgs.ffmpeg ];
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user