diff --git a/flake.lock b/flake.lock index 4240a48..1ba535e 100644 --- a/flake.lock +++ b/flake.lock @@ -18,12 +18,16 @@ "colmena": { "inputs": { "flake-compat": "flake-compat", - "flake-utils": "flake-utils", + "flake-utils": [ + "flake-utils" + ], "nix-github-actions": "nix-github-actions", "nixpkgs": [ "nixpkgs" ], - "stable": "stable" + "stable": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1731527002, @@ -148,21 +152,6 @@ } }, "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": { "systems": "systems" }, @@ -180,7 +169,7 @@ "type": "github" } }, - "flake-utils_3": { + "flake-utils_2": { "inputs": { "systems": "systems_2" }, @@ -261,11 +250,11 @@ ] }, "locked": { - "lastModified": 1731786860, - "narHash": "sha256-130gQ5k8kZlxjBEeLpE+SvWFgSOFgQFeZlqIik7KgtQ=", + "lastModified": 1731535640, + "narHash": "sha256-2EckCJn4wxran/TsRiCOFcmVpep2m9EBKl99NBh2GnM=", "owner": "nix-community", "repo": "home-manager", - "rev": "1bd5616e33c0c54d7a5b37db94160635a9b27aeb", + "rev": "35b055009afd0107b69c286fca34d2ad98940d57", "type": "github" }, "original": { @@ -398,11 +387,11 @@ ] }, "locked": { - "lastModified": 1731814505, - "narHash": "sha256-l9ryrx1Twh08a+gxrMGM9O/aZKEimZfa6sZVyPCImgI=", + "lastModified": 1731209121, + "narHash": "sha256-BF7FBh1hIYPDihdUlImHGsQzaJZVLLfYqfDx41wjuF0=", "owner": "Mic92", "repo": "nix-index-database", - "rev": "bdba246946fb079b87b4cada4df9b1cdf1c06132", + "rev": "896019f04b22ce5db4c0ee4f89978694f44345c3", "type": "github" }, "original": { @@ -422,11 +411,11 @@ ] }, "locked": { - "lastModified": 1731808759, - "narHash": "sha256-WwJqguc/5Q7HEwHlgDzDT8mtd8ZxInxZM2neJKC1oh8=", + "lastModified": 1731548914, + "narHash": "sha256-UtYkHq8OdZcz2Q/r7gh+3HFGVgX9AFfYDrMjAVO6sj4=", "owner": "nix-community", "repo": "nix-vscode-extensions", - "rev": "5cf92678e6799ce45442dee4c9cb8094843c7cfa", + "rev": "00e11784c89ecd236ff045acd7a447e0fe5b80df", "type": "github" }, "original": { @@ -437,11 +426,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1731797098, - "narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=", + "lastModified": 1731403644, + "narHash": "sha256-T9V7CTucjRZ4Qc6pUEV/kpgNGzQbHWfGcfK6JJLfUeI=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6", + "rev": "f6581f1c3b137086e42a08a906bdada63045f991", "type": "github" }, "original": { @@ -481,11 +470,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1731652201, - "narHash": "sha256-XUO0JKP1hlww0d7mm3kpmIr4hhtR4zicg5Wwes9cPMg=", + "lastModified": 1731386116, + "narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c21b77913ea840f8bcf9adf4c41cecc2abffd38d", + "rev": "689fed12a013f56d4c4d3f612489634267d86529", "type": "github" }, "original": { @@ -497,11 +486,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1731797254, - "narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=", + "lastModified": 1730602179, + "narHash": "sha256-efgLzQAWSzJuCLiCaQUCDu4NudNlHdg2NzGLX5GYaEY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59", + "rev": "3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c", "type": "github" }, "original": { @@ -513,11 +502,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1731815985, - "narHash": "sha256-PgX3UFz1YESfEeGmp2HYYBc/3Vp59bPbBLtNN4VMIgI=", + "lastModified": 1731570228, + "narHash": "sha256-mLuo8lZViwYdQQkA+hs6kTCPzAw1VR6O0jtXS1eC+Yc=", "owner": "xinyangli", "repo": "nixpkgs", - "rev": "5ddf4ef59567ff1e43adacde9f677f2cbd958287", + "rev": "8cb7e7a9ead084be01f290e26602f40815ea36fe", "type": "github" }, "original": { @@ -555,11 +544,11 @@ }, "nur": { "locked": { - "lastModified": 1731815686, - "narHash": "sha256-6HPZVrwQOZzeaW5QseyXnghK76a3aDnRoQf+L+cpNms=", + "lastModified": 1731569820, + "narHash": "sha256-5i2hiBMnhqLVXpnmPwvLJKB5Tn816Z+9UmC5EcL2av4=", "owner": "nix-community", "repo": "NUR", - "rev": "4cde5b2ea07d8c05570d7305738a9870b1a14700", + "rev": "6e804f7059440328e36f002f6eead1fd9b8eef43", "type": "github" }, "original": { @@ -570,7 +559,7 @@ }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_2", "ixx": "ixx", "nixpkgs": [ "my-nixvim", @@ -596,7 +585,7 @@ "inputs": { "catppuccin": "catppuccin", "colmena": "colmena", - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils", "home-manager": "home-manager", "my-nixvim": "my-nixvim", "nix-index-database": "nix-index-database", @@ -616,11 +605,11 @@ "nixpkgs-stable": "nixpkgs-stable_2" }, "locked": { - "lastModified": 1731814239, - "narHash": "sha256-TGnMXCeXS924w9W6CvRFtUCUFr8E/RK138lHxU3vcw8=", + "lastModified": 1731364708, + "narHash": "sha256-HC0anOL+KmUQ2hdRl0AtunbAckasxrkn4VLmxbW/WaA=", "owner": "Mic92", "repo": "sops-nix", - "rev": "47fc1d8c72dbd69b32ecb2019b5b648da3dd20ce", + "rev": "4c91d52db103e757fc25b58998b0576ae702d659", "type": "github" }, "original": { @@ -629,22 +618,6 @@ "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": { "locked": { "lastModified": 1681028828, diff --git a/flake.nix b/flake.nix index 12522d4..42f1e30 100644 --- a/flake.nix +++ b/flake.nix @@ -34,7 +34,9 @@ colmena = { url = "github:zhaofengli/colmena"; + inputs.stable.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-utils.follows = "flake-utils"; }; nix-index-database = { @@ -262,7 +264,7 @@ packages = with pkgs; [ nix git - inputs.colmena.packages.${system}.colmena + colmena sops nix-output-monitor nil diff --git a/home/xin/calcite.nix b/home/xin/calcite.nix index 3b3c4ea..e0b4693 100644 --- a/home/xin/calcite.nix +++ b/home/xin/calcite.nix @@ -78,14 +78,6 @@ in }; neovim = { enable = true; - font = { - normal = [ - "JetbrainsMono Nerd Font" - "Noto Sans Mono CJK SC" - "Ubuntu" - ]; - size = 12.0; - }; }; vscode = { enable = true; diff --git a/machines/calcite/configuration.nix b/machines/calcite/configuration.nix index 60480c1..aaa71d0 100644 --- a/machines/calcite/configuration.nix +++ b/machines/calcite/configuration.nix @@ -282,6 +282,7 @@ in zotero # onlyoffice-bin wpsoffice + zed-editor config.nur.repos.linyinfeng.wemeet diff --git a/machines/massicot/default.nix b/machines/massicot/default.nix index 611b30d..ecbc6e2 100644 --- a/machines/massicot/default.nix +++ b/machines/massicot/default.nix @@ -54,10 +54,6 @@ git ]; - # Disable docs on servers - documentation.nixos.enable = false; - documentation.man.enable = false; - system.stateVersion = "22.11"; networking = { diff --git a/machines/massicot/kanidm-provision.nix b/machines/massicot/kanidm-provision.nix index ef8323b..31cd6e6 100644 --- a/machines/massicot/kanidm-provision.nix +++ b/machines/massicot/kanidm-provision.nix @@ -73,8 +73,8 @@ systems.oauth2 = { forgejo = { displayName = "ForgeJo"; - originUrl = "https://git.xinyang.life/user/oauth2/kanidm/callback"; - originLanding = "https://git.xinyang.life/user/oauth2/kanidm"; + originUrl = "https://git.xinyang.life/"; + originLanding = "https://git.xinyang.life/user/oauth2/kandim"; allowInsecureClientDisablePkce = true; scopeMaps = { forgejo-access = [ @@ -96,8 +96,8 @@ }; gts = { displayName = "GoToSocial"; - originUrl = "https://xinyang.life/auth/callback"; - originLanding = "https://xinyang.life/auth/callback"; + originUrl = "https://xinyang.life/"; + originLanding = "https://xinyang.life/"; allowInsecureClientDisablePkce = true; scopeMaps = { gts-users = [ @@ -133,7 +133,7 @@ hedgedoc = { displayName = "HedgeDoc"; - originUrl = "https://docs.xinyang.life/auth/oauth2/callback"; + originUrl = "https://docs.xinyang.life/"; originLanding = "https://docs.xinyang.life/auth/oauth2"; allowInsecureClientDisablePkce = true; scopeMaps = { @@ -147,9 +147,9 @@ immich = { displayName = "Immich"; originUrl = [ - "https://immich.xinyang.life:8000/api/oauth/mobile-redirect" - "https://immich.xinyang.life:8000/auth/login" - "https://immich.xinyang.life:8000/user-settings" + "https://immich.xinyang.life:8000/api/oauth/mobile-redirect/" + "https://immich.xinyang.life:8000/auth/login/" + "https://immich.xinyang.life:8000/user-settings/" ]; originLanding = "https://immich.xinyang.life:8000/auth/login?autoLaunch=0"; allowInsecureClientDisablePkce = true; @@ -163,9 +163,8 @@ }; miniflux = { displayName = "Miniflux"; - originUrl = "https://rss.xinyang.life/oauth2/oidc/callback"; - - originLanding = "https://rss.xinyang.life/oauth2/oidc/redirect"; + originUrl = "https://rss.xinyang.life/"; + originLanding = "https://rss.xinyang.life/"; scopeMaps = { miniflux-users = [ "openid" @@ -176,7 +175,7 @@ }; grafana = { displayName = "Grafana"; - originUrl = "https://grafana.xinyang.life/login/generic_oauth"; + originUrl = "https://grafana.xinyang.life/"; originLanding = "https://grafana.xinyang.life/"; scopeMaps = { grafana-users = [ diff --git a/modules/home-manager/alacritty.nix b/modules/home-manager/alacritty.nix index 84fac8c..afe00ea 100644 --- a/modules/home-manager/alacritty.nix +++ b/modules/home-manager/alacritty.nix @@ -21,7 +21,7 @@ in "alacritty-zellij" ]; }; - font.size = 12.0; + font.size = 10.0; window = { resize_increments = true; dynamic_padding = true; diff --git a/modules/home-manager/vim.nix b/modules/home-manager/vim.nix index bd41ca5..0709791 100644 --- a/modules/home-manager/vim.nix +++ b/modules/home-manager/vim.nix @@ -5,29 +5,9 @@ ... }: let - inherit (lib) - mkIf - mkEnableOption - getExe - types - attrsets - ; + inherit (lib) mkIf mkEnableOption getExe; cfg = config.custom-hm.neovim; 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 = { neovim-bin = getExe pkgs.nixvim; fork = true; @@ -37,78 +17,6 @@ in { options.custom-hm.neovim = { 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: - - + (e.g., +ss01) - - - (e.g., -calt) - - = (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 { home.packages = with pkgs; [ @@ -117,12 +25,7 @@ in ]; programs.neovim.enable = false; home.file.".config/neovide/config.toml" = { - source = tomlFormat.generate "neovide-config" ( - neovideConfig - // (attrsets.filterAttrsRecursive (n: v: v != null) { - font = cfg.font; - }) - ); + source = tomlFormat.generate "neovide-config" neovideConfig; }; }; } diff --git a/modules/home-manager/zellij.nix b/modules/home-manager/zellij.nix index d925365..be2d4fe 100644 --- a/modules/home-manager/zellij.nix +++ b/modules/home-manager/zellij.nix @@ -29,7 +29,6 @@ in unbind "Alt h" "Alt l" "Alt j" "Alt k" } unbind "Ctrl p" "Ctrl n" - unbind "Alt f" } ''; };