Compare commits
11 Commits
3335341652
...
2925bab847
| Author | SHA1 | Date | |
|---|---|---|---|
| 2925bab847 | |||
| c7fec22567 | |||
| 2ca49f1a6e | |||
| 22e2b89074 | |||
| a9dc9c0ab9 | |||
| 3b7a37ebb6 | |||
| 808936338f | |||
| 50d3b38f1e | |||
| 9404369d7d | |||
| eccd8db785 | |||
| 3596873b1f |
@@ -6,17 +6,18 @@
|
||||
let
|
||||
inherit (inputs.nixpkgs) lib;
|
||||
utils = import ../utils { inherit lib; };
|
||||
hostDirNames = utils.dirNames ../hosts;
|
||||
hostnames = utils.dirNames ../hosts;
|
||||
|
||||
mkNode = hostname: meta: {
|
||||
imports = [ ../hosts/${hostname} ];
|
||||
host.name = hostname;
|
||||
deployment = {
|
||||
inherit (meta.deployment) targetHost targetUser tags;
|
||||
buildOnTarget = builtins.any (t: t != "local" && t != "arm") meta.deployment.tags;
|
||||
};
|
||||
};
|
||||
|
||||
nodes = lib.genAttrs hostDirNames (hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname}));
|
||||
nodes = lib.genAttrs hostnames (hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname}));
|
||||
in
|
||||
inputs.colmena.lib.makeHive (
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
if not vim.env.KITTY_WINDOW_ID then return end
|
||||
|
||||
require("image").setup({
|
||||
backend = "kitty",
|
||||
kitty_method = "normal",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"config": {
|
||||
"options": {},
|
||||
"preferences": {
|
||||
"ascii": "",
|
||||
"asciiBibLaTeX": false,
|
||||
"asciiBibTeX": true,
|
||||
"autoAbbrev": false,
|
||||
"autoAbbrevStyle": "",
|
||||
"autoExport": "immediate",
|
||||
"autoExportDelay": 5,
|
||||
"autoExportIdleWait": 10,
|
||||
@@ -13,18 +13,22 @@
|
||||
"autoExportPathReplaceDirSep": "-",
|
||||
"autoExportPathReplaceSpace": " ",
|
||||
"automaticTags": true,
|
||||
"autoPinDelay": 0,
|
||||
"auxImport": false,
|
||||
"baseAttachmentPath": "/home/h/doc/books",
|
||||
"biblatexExtendedDateFormat": true,
|
||||
"biblatexExtendedNameFormat": true,
|
||||
"biblatexExtractEprint": true,
|
||||
"biblatexUsePrefix": true,
|
||||
"bibtexEditionOrdinal": false,
|
||||
"bibtexParticleNoOp": false,
|
||||
"bibtexURL": "off",
|
||||
"cache": true,
|
||||
"cacheFlushInterval": 5,
|
||||
"cacheDelete": false,
|
||||
"charmap": "",
|
||||
"chinese": false,
|
||||
"chineseSplitName": true,
|
||||
"citeCommand": "cite",
|
||||
"citekeyCaseInsensitive": true,
|
||||
"citekeyFold": true,
|
||||
"citekeyFormat": "zotero.clean",
|
||||
"citekeyFormatEditing": "zotero.clean",
|
||||
@@ -34,32 +38,35 @@
|
||||
"DOIandURL": "both",
|
||||
"exportBibTeXStrings": "off",
|
||||
"exportBraceProtection": true,
|
||||
"exportSort": "citekey",
|
||||
"exportTitleCase": true,
|
||||
"extraMergeCitekeys": false,
|
||||
"extraMergeCSL": false,
|
||||
"extraMergeTeX": false,
|
||||
"fillKeyAfter": 1,
|
||||
"git": "config",
|
||||
"import": true,
|
||||
"importBibTeXStrings": true,
|
||||
"importCaseProtection": "as-needed",
|
||||
"importCitationKey": true,
|
||||
"importDetectURLs": true,
|
||||
"importExtra": true,
|
||||
"importJabRefAbbreviations": true,
|
||||
"importJabRefStrings": true,
|
||||
"importNoteToExtra": "",
|
||||
"importPlaceEvent": "inproceedings,conference,presentation,talk",
|
||||
"importSentenceCase": "on+guess",
|
||||
"importSentenceCaseQuoted": true,
|
||||
"importUnknownTexCommand": "ignore",
|
||||
"itemObserverDelay": 5,
|
||||
"jabrefFormat": 0,
|
||||
"jieba": false,
|
||||
"keyConflictPolicy": "keep",
|
||||
"japanese": false,
|
||||
"keyScope": "global",
|
||||
"kuroshiro": false,
|
||||
"language": "langid",
|
||||
"logEvents": false,
|
||||
"mapMath": "",
|
||||
"mapText": "",
|
||||
"mapUnicode": "conservative",
|
||||
"packages": "",
|
||||
"parseParticles": true,
|
||||
"patchDates": "dateadded=dateAdded, date-added=dateAdded, datemodified=dateModified, date-modified=dateModified",
|
||||
"platform": "lin",
|
||||
@@ -75,7 +82,8 @@
|
||||
"rawImports": false,
|
||||
"rawLaTag": "#LaTeX",
|
||||
"relativeFilePaths": false,
|
||||
"retainCache": false,
|
||||
"remigrate": false,
|
||||
"resetKeyOnChange": false,
|
||||
"scrubDatabase": false,
|
||||
"separatorList": "and",
|
||||
"separatorNames": "and",
|
||||
@@ -91,4 +99,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
ssh.enable = true;
|
||||
taskwarrior.enable = true;
|
||||
terminal.enable = true;
|
||||
reference-manager.enable = true;
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
file.".config/niri/config.kdl".source = ./config.kdl;
|
||||
packages = with pkgs; [
|
||||
brightnessctl
|
||||
xwayland-satellite
|
||||
wlsunset
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
37
home/modules/reference-manager/default.nix
Normal file
37
home/modules/reference-manager/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.reference-manager;
|
||||
|
||||
hasBrowser =
|
||||
name:
|
||||
lib.elem name [
|
||||
config.browser.primary
|
||||
config.browser.secondary
|
||||
];
|
||||
|
||||
zoteroConnector =
|
||||
inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}.zotero-connector;
|
||||
zoteroAddonId = "zotero@chnm.gmu.edu";
|
||||
|
||||
connectorExtension = {
|
||||
profiles.default.extensions.packages = [ zoteroConnector ];
|
||||
policies.ExtensionSettings.${zoteroAddonId}.default_area = "navbar";
|
||||
};
|
||||
in
|
||||
{
|
||||
options.reference-manager.enable = lib.mkEnableOption "reference manager (Zotero)";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.zotero ];
|
||||
|
||||
programs.firefox = lib.mkIf (hasBrowser "firefox") connectorExtension;
|
||||
programs.librewolf = lib.mkIf (hasBrowser "librewolf") connectorExtension;
|
||||
};
|
||||
}
|
||||
@@ -6,6 +6,13 @@
|
||||
|
||||
{
|
||||
config = lib.mkIf config.shell.enable {
|
||||
programs.starship.enable = true;
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
git_status = {
|
||||
ahead = "⇡$\{count\}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
config = lib.mkIf config.shikane.enable {
|
||||
home.packages = with pkgs; [ (config.nixgl.wrap wdisplays) ];
|
||||
services.shikane.enable = true;
|
||||
home.file.".config/shikane/config.toml".text = ''
|
||||
home.file.".config/shikane/config.toml" = {
|
||||
force = true;
|
||||
text = ''
|
||||
[[profile]]
|
||||
name = "work"
|
||||
|
||||
@@ -64,4 +66,5 @@
|
||||
adaptive_sync = false
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -90,11 +90,19 @@
|
||||
|
||||
networking = {
|
||||
hostId = "80eef97e";
|
||||
useDHCP = false;
|
||||
useNetworkd = true;
|
||||
};
|
||||
|
||||
systemd.network.networks."40-wlan0" = {
|
||||
matchConfig.Name = "wlan0";
|
||||
networkConfig.DHCP = "yes";
|
||||
};
|
||||
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
|
||||
services = {
|
||||
resolved.enable = true;
|
||||
fwupd.enable = true;
|
||||
locate = {
|
||||
enable = true;
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
../../modules
|
||||
];
|
||||
|
||||
ssh.enable = true;
|
||||
docker.enable = true;
|
||||
ssh.enable = true;
|
||||
tailscale.enable = true;
|
||||
|
||||
networking.hostName = config.host.name;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
system = "x86_64-linux";
|
||||
deployment = {
|
||||
tags = [ "cloud" ];
|
||||
targetHost = "server.hektormisplon.xyz";
|
||||
targetHost = "hecuba";
|
||||
targetUser = "username";
|
||||
};
|
||||
role = "server";
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{ lib, config, ... }:
|
||||
|
||||
{
|
||||
options.tailscale = {
|
||||
enable = lib.mkEnableOption "tailscale";
|
||||
|
||||
Reference in New Issue
Block a user