Compare commits
No commits in common. "1b513bd869ff908974dd88f8dff2f23a204eb2e4" and "40b1e9ff23aaa5f555420dd22414c3f137a02cfe" have entirely different histories.
1b513bd869
...
40b1e9ff23
9 changed files with 54 additions and 189 deletions
99
flake.lock
generated
99
flake.lock
generated
|
@ -18,12 +18,16 @@
|
||||||
"colmena": {
|
"colmena": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": [
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
"nix-github-actions": "nix-github-actions",
|
"nix-github-actions": "nix-github-actions",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"stable": "stable"
|
"stable": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731527002,
|
"lastModified": 1731527002,
|
||||||
|
@ -148,21 +152,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1659877975,
|
|
||||||
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
|
@ -180,7 +169,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_3": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
|
@ -261,11 +250,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731786860,
|
"lastModified": 1731535640,
|
||||||
"narHash": "sha256-130gQ5k8kZlxjBEeLpE+SvWFgSOFgQFeZlqIik7KgtQ=",
|
"narHash": "sha256-2EckCJn4wxran/TsRiCOFcmVpep2m9EBKl99NBh2GnM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "1bd5616e33c0c54d7a5b37db94160635a9b27aeb",
|
"rev": "35b055009afd0107b69c286fca34d2ad98940d57",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -398,11 +387,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731814505,
|
"lastModified": 1731209121,
|
||||||
"narHash": "sha256-l9ryrx1Twh08a+gxrMGM9O/aZKEimZfa6sZVyPCImgI=",
|
"narHash": "sha256-BF7FBh1hIYPDihdUlImHGsQzaJZVLLfYqfDx41wjuF0=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "bdba246946fb079b87b4cada4df9b1cdf1c06132",
|
"rev": "896019f04b22ce5db4c0ee4f89978694f44345c3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -422,11 +411,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731808759,
|
"lastModified": 1731548914,
|
||||||
"narHash": "sha256-WwJqguc/5Q7HEwHlgDzDT8mtd8ZxInxZM2neJKC1oh8=",
|
"narHash": "sha256-UtYkHq8OdZcz2Q/r7gh+3HFGVgX9AFfYDrMjAVO6sj4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-vscode-extensions",
|
"repo": "nix-vscode-extensions",
|
||||||
"rev": "5cf92678e6799ce45442dee4c9cb8094843c7cfa",
|
"rev": "00e11784c89ecd236ff045acd7a447e0fe5b80df",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -437,11 +426,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731797098,
|
"lastModified": 1731403644,
|
||||||
"narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=",
|
"narHash": "sha256-T9V7CTucjRZ4Qc6pUEV/kpgNGzQbHWfGcfK6JJLfUeI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6",
|
"rev": "f6581f1c3b137086e42a08a906bdada63045f991",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -481,11 +470,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731652201,
|
"lastModified": 1731386116,
|
||||||
"narHash": "sha256-XUO0JKP1hlww0d7mm3kpmIr4hhtR4zicg5Wwes9cPMg=",
|
"narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c21b77913ea840f8bcf9adf4c41cecc2abffd38d",
|
"rev": "689fed12a013f56d4c4d3f612489634267d86529",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -497,11 +486,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731797254,
|
"lastModified": 1730602179,
|
||||||
"narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=",
|
"narHash": "sha256-efgLzQAWSzJuCLiCaQUCDu4NudNlHdg2NzGLX5GYaEY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59",
|
"rev": "3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -513,11 +502,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731815985,
|
"lastModified": 1731570228,
|
||||||
"narHash": "sha256-PgX3UFz1YESfEeGmp2HYYBc/3Vp59bPbBLtNN4VMIgI=",
|
"narHash": "sha256-mLuo8lZViwYdQQkA+hs6kTCPzAw1VR6O0jtXS1eC+Yc=",
|
||||||
"owner": "xinyangli",
|
"owner": "xinyangli",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5ddf4ef59567ff1e43adacde9f677f2cbd958287",
|
"rev": "8cb7e7a9ead084be01f290e26602f40815ea36fe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -555,11 +544,11 @@
|
||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731815686,
|
"lastModified": 1731569820,
|
||||||
"narHash": "sha256-6HPZVrwQOZzeaW5QseyXnghK76a3aDnRoQf+L+cpNms=",
|
"narHash": "sha256-5i2hiBMnhqLVXpnmPwvLJKB5Tn816Z+9UmC5EcL2av4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "4cde5b2ea07d8c05570d7305738a9870b1a14700",
|
"rev": "6e804f7059440328e36f002f6eead1fd9b8eef43",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -570,7 +559,7 @@
|
||||||
},
|
},
|
||||||
"nuschtosSearch": {
|
"nuschtosSearch": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_2",
|
||||||
"ixx": "ixx",
|
"ixx": "ixx",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"my-nixvim",
|
"my-nixvim",
|
||||||
|
@ -596,7 +585,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"colmena": "colmena",
|
"colmena": "colmena",
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"my-nixvim": "my-nixvim",
|
"my-nixvim": "my-nixvim",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
|
@ -616,11 +605,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731814239,
|
"lastModified": 1731364708,
|
||||||
"narHash": "sha256-TGnMXCeXS924w9W6CvRFtUCUFr8E/RK138lHxU3vcw8=",
|
"narHash": "sha256-HC0anOL+KmUQ2hdRl0AtunbAckasxrkn4VLmxbW/WaA=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "47fc1d8c72dbd69b32ecb2019b5b648da3dd20ce",
|
"rev": "4c91d52db103e757fc25b58998b0576ae702d659",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -629,22 +618,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stable": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1730883749,
|
|
||||||
"narHash": "sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "dba414932936fde69f0606b4f1d87c5bc0003ede",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-24.05",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
|
@ -34,7 +34,9 @@
|
||||||
|
|
||||||
colmena = {
|
colmena = {
|
||||||
url = "github:zhaofengli/colmena";
|
url = "github:zhaofengli/colmena";
|
||||||
|
inputs.stable.follows = "nixpkgs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.flake-utils.follows = "flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-index-database = {
|
nix-index-database = {
|
||||||
|
@ -262,7 +264,7 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nix
|
nix
|
||||||
git
|
git
|
||||||
inputs.colmena.packages.${system}.colmena
|
colmena
|
||||||
sops
|
sops
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
nil
|
nil
|
||||||
|
|
|
@ -78,14 +78,6 @@ in
|
||||||
};
|
};
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
|
||||||
normal = [
|
|
||||||
"JetbrainsMono Nerd Font"
|
|
||||||
"Noto Sans Mono CJK SC"
|
|
||||||
"Ubuntu"
|
|
||||||
];
|
|
||||||
size = 12.0;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
vscode = {
|
vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -282,6 +282,7 @@ in
|
||||||
zotero
|
zotero
|
||||||
# onlyoffice-bin
|
# onlyoffice-bin
|
||||||
wpsoffice
|
wpsoffice
|
||||||
|
zed-editor
|
||||||
|
|
||||||
config.nur.repos.linyinfeng.wemeet
|
config.nur.repos.linyinfeng.wemeet
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,6 @@
|
||||||
git
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
# Disable docs on servers
|
|
||||||
documentation.nixos.enable = false;
|
|
||||||
documentation.man.enable = false;
|
|
||||||
|
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
@ -73,8 +73,8 @@
|
||||||
systems.oauth2 = {
|
systems.oauth2 = {
|
||||||
forgejo = {
|
forgejo = {
|
||||||
displayName = "ForgeJo";
|
displayName = "ForgeJo";
|
||||||
originUrl = "https://git.xinyang.life/user/oauth2/kanidm/callback";
|
originUrl = "https://git.xinyang.life/";
|
||||||
originLanding = "https://git.xinyang.life/user/oauth2/kanidm";
|
originLanding = "https://git.xinyang.life/user/oauth2/kandim";
|
||||||
allowInsecureClientDisablePkce = true;
|
allowInsecureClientDisablePkce = true;
|
||||||
scopeMaps = {
|
scopeMaps = {
|
||||||
forgejo-access = [
|
forgejo-access = [
|
||||||
|
@ -96,8 +96,8 @@
|
||||||
};
|
};
|
||||||
gts = {
|
gts = {
|
||||||
displayName = "GoToSocial";
|
displayName = "GoToSocial";
|
||||||
originUrl = "https://xinyang.life/auth/callback";
|
originUrl = "https://xinyang.life/";
|
||||||
originLanding = "https://xinyang.life/auth/callback";
|
originLanding = "https://xinyang.life/";
|
||||||
allowInsecureClientDisablePkce = true;
|
allowInsecureClientDisablePkce = true;
|
||||||
scopeMaps = {
|
scopeMaps = {
|
||||||
gts-users = [
|
gts-users = [
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
|
|
||||||
hedgedoc = {
|
hedgedoc = {
|
||||||
displayName = "HedgeDoc";
|
displayName = "HedgeDoc";
|
||||||
originUrl = "https://docs.xinyang.life/auth/oauth2/callback";
|
originUrl = "https://docs.xinyang.life/";
|
||||||
originLanding = "https://docs.xinyang.life/auth/oauth2";
|
originLanding = "https://docs.xinyang.life/auth/oauth2";
|
||||||
allowInsecureClientDisablePkce = true;
|
allowInsecureClientDisablePkce = true;
|
||||||
scopeMaps = {
|
scopeMaps = {
|
||||||
|
@ -147,9 +147,9 @@
|
||||||
immich = {
|
immich = {
|
||||||
displayName = "Immich";
|
displayName = "Immich";
|
||||||
originUrl = [
|
originUrl = [
|
||||||
"https://immich.xinyang.life:8000/api/oauth/mobile-redirect"
|
"https://immich.xinyang.life:8000/api/oauth/mobile-redirect/"
|
||||||
"https://immich.xinyang.life:8000/auth/login"
|
"https://immich.xinyang.life:8000/auth/login/"
|
||||||
"https://immich.xinyang.life:8000/user-settings"
|
"https://immich.xinyang.life:8000/user-settings/"
|
||||||
];
|
];
|
||||||
originLanding = "https://immich.xinyang.life:8000/auth/login?autoLaunch=0";
|
originLanding = "https://immich.xinyang.life:8000/auth/login?autoLaunch=0";
|
||||||
allowInsecureClientDisablePkce = true;
|
allowInsecureClientDisablePkce = true;
|
||||||
|
@ -163,9 +163,8 @@
|
||||||
};
|
};
|
||||||
miniflux = {
|
miniflux = {
|
||||||
displayName = "Miniflux";
|
displayName = "Miniflux";
|
||||||
originUrl = "https://rss.xinyang.life/oauth2/oidc/callback";
|
originUrl = "https://rss.xinyang.life/";
|
||||||
|
originLanding = "https://rss.xinyang.life/";
|
||||||
originLanding = "https://rss.xinyang.life/oauth2/oidc/redirect";
|
|
||||||
scopeMaps = {
|
scopeMaps = {
|
||||||
miniflux-users = [
|
miniflux-users = [
|
||||||
"openid"
|
"openid"
|
||||||
|
@ -176,7 +175,7 @@
|
||||||
};
|
};
|
||||||
grafana = {
|
grafana = {
|
||||||
displayName = "Grafana";
|
displayName = "Grafana";
|
||||||
originUrl = "https://grafana.xinyang.life/login/generic_oauth";
|
originUrl = "https://grafana.xinyang.life/";
|
||||||
originLanding = "https://grafana.xinyang.life/";
|
originLanding = "https://grafana.xinyang.life/";
|
||||||
scopeMaps = {
|
scopeMaps = {
|
||||||
grafana-users = [
|
grafana-users = [
|
||||||
|
|
|
@ -21,7 +21,7 @@ in
|
||||||
"alacritty-zellij"
|
"alacritty-zellij"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
font.size = 12.0;
|
font.size = 10.0;
|
||||||
window = {
|
window = {
|
||||||
resize_increments = true;
|
resize_increments = true;
|
||||||
dynamic_padding = true;
|
dynamic_padding = true;
|
||||||
|
|
|
@ -5,29 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib) mkIf mkEnableOption getExe;
|
||||||
mkIf
|
|
||||||
mkEnableOption
|
|
||||||
getExe
|
|
||||||
types
|
|
||||||
attrsets
|
|
||||||
;
|
|
||||||
cfg = config.custom-hm.neovim;
|
cfg = config.custom-hm.neovim;
|
||||||
tomlFormat = pkgs.formats.toml { };
|
tomlFormat = pkgs.formats.toml { };
|
||||||
fontItem =
|
|
||||||
with types;
|
|
||||||
either str (submodule {
|
|
||||||
options = {
|
|
||||||
family = {
|
|
||||||
type = str;
|
|
||||||
};
|
|
||||||
style = {
|
|
||||||
type = nullOr str;
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
||||||
fontType = types.either fontItem (types.listOf fontItem);
|
|
||||||
neovideConfig = {
|
neovideConfig = {
|
||||||
neovim-bin = getExe pkgs.nixvim;
|
neovim-bin = getExe pkgs.nixvim;
|
||||||
fork = true;
|
fork = true;
|
||||||
|
@ -37,78 +17,6 @@ in
|
||||||
{
|
{
|
||||||
options.custom-hm.neovim = {
|
options.custom-hm.neovim = {
|
||||||
enable = mkEnableOption "neovim configurations";
|
enable = mkEnableOption "neovim configurations";
|
||||||
font = {
|
|
||||||
# Required options
|
|
||||||
normal = lib.mkOption {
|
|
||||||
type = fontType;
|
|
||||||
description = ''
|
|
||||||
The normal font description. Can be:
|
|
||||||
- A table with "family" (required) and "style" (optional).
|
|
||||||
- A string indicating the font family.
|
|
||||||
- An array of strings or tables as described above.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
size = lib.mkOption {
|
|
||||||
type = lib.types.float;
|
|
||||||
description = "Required font size.";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Optional options
|
|
||||||
bold = lib.mkOption {
|
|
||||||
type = types.nullOr fontType;
|
|
||||||
default = null;
|
|
||||||
description = ''
|
|
||||||
Optional bold font description. Can be:
|
|
||||||
- A table with "family" (optional) and "style" (optional).
|
|
||||||
- A string indicating the font family.
|
|
||||||
- An array of strings or tables as described above.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
italic = lib.mkOption {
|
|
||||||
type = types.nullOr fontType;
|
|
||||||
default = null;
|
|
||||||
description = "Optional italic font description.";
|
|
||||||
};
|
|
||||||
|
|
||||||
bold_italic = lib.mkOption {
|
|
||||||
type = types.nullOr fontType;
|
|
||||||
default = null;
|
|
||||||
description = "Optional bold-italic font description.";
|
|
||||||
};
|
|
||||||
|
|
||||||
features = lib.mkOption {
|
|
||||||
type = types.nullOr (lib.types.attrsOf (lib.types.listOf lib.types.str));
|
|
||||||
default = { };
|
|
||||||
description = ''
|
|
||||||
Optional font features. A table where the key is the font family and
|
|
||||||
the value is a list of font features. Each feature can be:
|
|
||||||
- +<feature> (e.g., +ss01)
|
|
||||||
- -<feature> (e.g., -calt)
|
|
||||||
- <feature>=<value> (e.g., ss02=2)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
width = lib.mkOption {
|
|
||||||
type = types.nullOr types.float;
|
|
||||||
default = null;
|
|
||||||
description = "Optional font width.";
|
|
||||||
};
|
|
||||||
|
|
||||||
hinting = lib.mkOption {
|
|
||||||
type = types.nullOr types.str;
|
|
||||||
default = null;
|
|
||||||
description = "Optional font hinting (none, slight, medium, full).";
|
|
||||||
};
|
|
||||||
|
|
||||||
edging = lib.mkOption {
|
|
||||||
type = types.nullOr types.str;
|
|
||||||
default = null;
|
|
||||||
description = "Optional font edging (none, antialiased, subpixel).";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
@ -117,12 +25,7 @@ in
|
||||||
];
|
];
|
||||||
programs.neovim.enable = false;
|
programs.neovim.enable = false;
|
||||||
home.file.".config/neovide/config.toml" = {
|
home.file.".config/neovide/config.toml" = {
|
||||||
source = tomlFormat.generate "neovide-config" (
|
source = tomlFormat.generate "neovide-config" neovideConfig;
|
||||||
neovideConfig
|
|
||||||
// (attrsets.filterAttrsRecursive (n: v: v != null) {
|
|
||||||
font = cfg.font;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,6 @@ in
|
||||||
unbind "Alt h" "Alt l" "Alt j" "Alt k"
|
unbind "Alt h" "Alt l" "Alt j" "Alt k"
|
||||||
}
|
}
|
||||||
unbind "Ctrl p" "Ctrl n"
|
unbind "Ctrl p" "Ctrl n"
|
||||||
unbind "Alt f"
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue