Compare commits

...

12 Commits

Author SHA1 Message Date
imxyy1soope1 12d2b3ff49 chore: update flake.lock 2026-07-01 14:14:35 +08:00
imxyy1soope1 02953206f7 tombi: move to modules/coding/langs/toml.nix 2026-07-01 14:14:35 +08:00
imxyy1soope1 84485d9e8a python: pyright -> pyrefly 2026-06-19 15:29:05 +08:00
imxyy1soope1 7a84ae3b7a chore: update flake.lock 2026-06-19 15:28:57 +08:00
imxyy1soope1 7dc99f00cc chore: update secrets 2026-06-13 19:19:36 +08:00
imxyy1soope1 6149a5119d chore: update flake.lock 2026-06-13 17:19:49 +08:00
imxyy1soope1 bd6643edaf update ly config 2026-06-13 11:57:10 +08:00
imxyy1soope1 577aec6587 fix corrupted ly display 2026-06-13 11:57:10 +08:00
imxyy1soope1 c79a19d5ee remove getty-autologin 2026-06-13 11:57:10 +08:00
imxyy1soope1 cfe29e07ac workaround for EDITOR="nano" 2026-06-13 11:57:06 +08:00
imxyy1soope1 2b773af620 add codex 2026-06-06 22:09:47 +08:00
imxyy1soope1 ee9e812579 chore: update secrets 2026-06-06 22:09:38 +08:00
18 changed files with 145 additions and 191 deletions
Generated
+64 -78
View File
@@ -17,11 +17,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1780678125, "lastModified": 1782492027,
"narHash": "sha256-EOqBLRKjzpwDGpYrrNmLj/4FfGtKl856672aZzlcmL0=", "narHash": "sha256-6n/SSG/Lh8lLZ3G2siFuJllQJV8C2ZxvgtJnfl3xZDo=",
"owner": "linyinfeng", "owner": "linyinfeng",
"repo": "angrr", "repo": "angrr",
"rev": "f20f94fbb488bd29ccbebd1bdb13cc428cd48f82", "rev": "cbbfd83d95cdf6992134a788192441ee3058b8b3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -246,11 +246,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1780630679, "lastModified": 1782492839,
"narHash": "sha256-hhQyVAYmNKziZ0T+T4Gsk0PYmnz4vdzOzpkJAmDASKM=", "narHash": "sha256-j9wrcB4al5QhMelEghJ0Qs+RQPT+wyCcI4070NEgPLQ=",
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "90ed6227ab389dd4e874a69a724f25dba312b754", "rev": "3d39d0817d62069f7b18821c34a617b5141cb278",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -267,11 +267,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1780654233, "lastModified": 1782638651,
"narHash": "sha256-F5rHBSjkUyobwPC2IclWO6t91hiKBnuJa0yDfKuUchE=", "narHash": "sha256-+pFKu+a/YWhPUaBj5cIa7PLNcDvpzpgzuZm+jeFJC38=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "b9e0e5df8f7b4456eb1cad97c435ad0b3e44c669", "rev": "7f6d415487ef6d5dfe08c4bda148af3d21477dec",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -521,11 +521,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1780679734, "lastModified": 1782702263,
"narHash": "sha256-KmRNvpNOb7QEORa06bVgjW9kITcx0VhsI7w0vhmZyD8=", "narHash": "sha256-8/MG4Su7PhnynrmsVO61IeAfrK7GuUEu+E+gwbhy1QQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b2b7db486e06e098711dc291bb25db82850e1d16", "rev": "789a35fbdeb3c46b260096daa0b321c11be527ea",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -561,11 +561,11 @@
"infuse": { "infuse": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1778715449, "lastModified": 1782538150,
"narHash": "sha256-TfOyYuhBryGE/ugFWiKbp5klQ80G8dvuZvh6iCGAv/g=", "narHash": "sha256-PFRrjDC62Mk7cgyst4l/riW0C7o39srZt/+rYq9Iovs=",
"ref": "refs/heads/trunk", "ref": "refs/heads/trunk",
"rev": "d5453c8f2db4fd19d6eaf438a7dc3b90e33933d1", "rev": "364ea18b5611b5fd6a6acd7151411b430a70e194",
"revCount": 51, "revCount": 57,
"type": "git", "type": "git",
"url": "https://codeberg.org/amjoseph/infuse.nix" "url": "https://codeberg.org/amjoseph/infuse.nix"
}, },
@@ -581,9 +581,7 @@
"flake-parts": [ "flake-parts": [
"flake-parts" "flake-parts"
], ],
"nixpkgs": [ "nixpkgs": "nixpkgs",
"nixpkgs"
],
"systems": [ "systems": [
"systems" "systems"
], ],
@@ -592,11 +590,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1780708788, "lastModified": 1782714906,
"narHash": "sha256-BaHq9HXksp8OGe0kl6x7IxlyqIWgVQj5qHSaAqhAgDs=", "narHash": "sha256-3pX8mc2rLL0UMHN1SILROVUxXFmYPvK+xQcHEZgoXwo=",
"owner": "numtide", "owner": "numtide",
"repo": "llm-agents.nix", "repo": "llm-agents.nix",
"rev": "364bfe7a69b3adbfe5c1fedd7a6abf7dd3c79928", "rev": "70e4e3d55e2ffcdfbd9c89241efcb79a84ca6cb1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -654,17 +652,21 @@
"inputs": { "inputs": {
"niri-stable": "niri-stable", "niri-stable": "niri-stable",
"niri-unstable": "niri-unstable", "niri-unstable": "niri-unstable",
"nixpkgs": "nixpkgs", "nixpkgs": [
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs"
],
"nixpkgs-stable": [
"nixpkgs-stable"
],
"xwayland-satellite-stable": "xwayland-satellite-stable", "xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1780694373, "lastModified": 1782592242,
"narHash": "sha256-wuj6QmOlLsGjBOut+Ki/hiOT/H5ONzBePqOkOolsNfo=", "narHash": "sha256-kgINba6Ilpj3rdTi2BeKlQBs6ZxTdu3Gb49U5gDUVhg=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "8f7043c852210cd0875a1bbe9ca872c90ab5ac74", "rev": "9e26dfe0fb8d61475b6f9e8d63477fe92509f1db",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -693,11 +695,11 @@
"niri-unstable": { "niri-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1780637332, "lastModified": 1781781064,
"narHash": "sha256-FeKyLRxLZu2EUnhifijZPDZRl0sVnPVHMtizAINNiN4=", "narHash": "sha256-Ii/koEm/sRyg65qbAQWqEgboSEIhdH0EL4KglAc14p0=",
"owner": "YaLTeR", "owner": "YaLTeR",
"repo": "niri", "repo": "niri",
"rev": "f717ae030fe56fc52522ebef69f17f3f09064ac4", "rev": "49fc6117fd6c043adaa2ead316b82db5ed735d36",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -754,11 +756,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1779036909, "lastModified": 1781761792,
"narHash": "sha256-zXcwYQGCT6pzinK+1dBB2ekTVtfxGZAapb3Evdcu4fY=", "narHash": "sha256-rCPytmKNjctLloB6UgK5CRrHSwV4b0ygxtJLPPp8R14=",
"owner": "nix-darwin", "owner": "nix-darwin",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "56c666e108467d87d13508936aade6d567f2a501", "rev": "a1fa429e945becaf60468600daf649be4ba0350c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -827,11 +829,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1780704078, "lastModified": 1781182279,
"narHash": "sha256-Ktgje3rXwJK3c7nhub8qYgIy/VCYNVrUmIVaaeDhe0E=", "narHash": "sha256-V5EQQbDnmdiXGQXrEF1PEL7QYsFqfH8N1E89Z5ONwFk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NixOS-WSL", "repo": "NixOS-WSL",
"rev": "ad4c358ded144d26da517b999ddb51295770c419", "rev": "5675822ba756e6e56f8f6a5a76e90e0da2ece94d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -842,27 +844,27 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1780243769, "lastModified": 1782175435,
"narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", "narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", "rev": "89570f24e97e614aa34aa9ab1c927b6578a43775",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "nixpkgs-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-master": { "nixpkgs-master": {
"locked": { "locked": {
"lastModified": 1780711917, "lastModified": 1782721112,
"narHash": "sha256-Cw9useKmvzRyrzQtghZPi56ImYXKsyrh+vo94hCYM3I=", "narHash": "sha256-uIkXU6w9qks4j874+f0VyZv0GWDPMQNGhasHEVHBqF4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f3ce60d5372cbb1490033766bdd4748dc0128e86", "rev": "de1c308d63fae6d4946c2fa84468856c4c622f71",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -874,27 +876,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1780511130, "lastModified": 1782712825,
"narHash": "sha256-2v9lT4ya59Lh1FqPeLnz1MoX9y/wz2huqfe9RtQZITk=", "narHash": "sha256-WQCA9undxUJ5OOoQnJdupna7dhfrirMx6Em2/Gl7voQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "535f3e6942cb1cead3929c604320d3db54b542b9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1780692395,
"narHash": "sha256-dAyK1031bvJZC/MBRl74IvHrOqA915OmD8cdWUa8Ucg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8e54c6a68fd045814b3650040b48440cd28acf19", "rev": "5ffce99671fc0b8d9e1cd4518d3303a8803a8422",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -906,11 +892,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1780243769, "lastModified": 1782467914,
"narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", "narHash": "sha256-pGvFkM8N0xEkIIXDe5YYfbEAvHrk4IxBrjB/x8OomhE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", "rev": "e73de5be04e0eff4190a1432b946d469c794e7b4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1032,7 +1018,7 @@
"nixpkgs-unstable" "nixpkgs-unstable"
], ],
"nixpkgs-master": "nixpkgs-master", "nixpkgs-master": "nixpkgs-master",
"nixpkgs-stable": "nixpkgs-stable_2", "nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"noctalia": "noctalia", "noctalia": "noctalia",
"plant": "plant", "plant": "plant",
@@ -1047,11 +1033,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1780573409, "lastModified": 1782591962,
"narHash": "sha256-Dlru75JzUwjI9d5uiDrN9Rt/wTFVTuqt6QBT+nf2g8U=", "narHash": "sha256-uNO+yWCw+EogXBbj4uRLWYfmOjAzeDhWs1JL+E5niK4=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "aadee11251e6074c9245ac96bc4bfe6eca05a64c", "rev": "5d15d9f5fd939bd8f121ae878d55b30e6a992a32",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1127,11 +1113,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1780701809, "lastModified": 1782658900,
"narHash": "sha256-u7AUNs6U6eD1os4+ghbr1gH4QjPWzOdKvpeM+E+XRKM=", "narHash": "sha256-/s51VbBRGLH1NSjJ3AGhOGG8BXH/Jo+5JWMmaa2n+Jk=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "3a02d9f73608641b28e08b26acb0b0b47c05f14b", "rev": "1fbdd38c16645731b2bdc4f70170765f725a3735",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1301,11 +1287,11 @@
"xwayland-satellite-unstable": { "xwayland-satellite-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1779745227, "lastModified": 1781226823,
"narHash": "sha256-yqY7RtEJGJiENzR0GwL6q69tSAy6xAAmAcLuIhLjPf8=", "narHash": "sha256-28696iIw8uE0ZUyFTtzhEM8xMh85clCYypMxkvUi+sc=",
"owner": "Supreeeme", "owner": "Supreeeme",
"repo": "xwayland-satellite", "repo": "xwayland-satellite",
"rev": "5d1efbc9dc3ab1c10160b656e0247f3325daf0f2", "rev": "8575d0ef55d70f9b4c46b6bffb3accf912217e1e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1324,11 +1310,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1780567926, "lastModified": 1782623843,
"narHash": "sha256-LVaiAnBwgr2YotaIlrcwCgmbwHsE2ccegRztLjur/d4=", "narHash": "sha256-zQdTvI8jcVfblsrWafw1ykTnCVoV94ttxb5e6drwVaI=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "eea9ae34eb9011aee9b8ce8ee2bc2dd111ee8285", "rev": "c59e57b9c6ea4c86f9f3b7efc92db3cbd305d078",
"type": "github" "type": "github"
}, },
"original": { "original": {
+4 -4
View File
@@ -90,16 +90,16 @@
}; };
llm-agents = { llm-agents = {
url = "github:numtide/llm-agents.nix"; url = "github:numtide/llm-agents.nix";
inputs.nixpkgs.follows = "nixpkgs"; # Not followed intentionally (binary cache)
# inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts"; inputs.flake-parts.follows = "flake-parts";
inputs.systems.follows = "systems"; inputs.systems.follows = "systems";
inputs.treefmt-nix.follows = "treefmt"; inputs.treefmt-nix.follows = "treefmt";
}; };
niri = { niri = {
url = "github:sodiboo/niri-flake"; url = "github:sodiboo/niri-flake";
# Not followed intentionally (binary cache) inputs.nixpkgs.follows = "nixpkgs";
# inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs-stable.follows = "nixpkgs-stable";
# inputs.nixpkgs-stable.follows = "nixpkgs-stable";
}; };
noctalia = { noctalia = {
url = "github:noctalia-dev/noctalia-shell/v4.7.5"; url = "github:noctalia-dev/noctalia-shell/v4.7.5";
-6
View File
@@ -78,12 +78,6 @@
}; };
my = { my = {
autologin = {
enable = true;
user = username;
ttys = [ 6 ];
};
gpg.enable = true; gpg.enable = true;
cli.all.enable = true; cli.all.enable = true;
coding.all.enable = true; coding.all.enable = true;
+3
View File
@@ -15,6 +15,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
my.hm = { my.hm = {
home.packages = with pkgs.llm-agents; [ home.packages = with pkgs.llm-agents; [
codex
claude-code claude-code
opencode opencode
]; ];
@@ -25,6 +26,8 @@ in
".config/opencode" ".config/opencode"
".local/share/opencode" ".local/share/opencode"
".codex"
]; ];
homeFiles = [ homeFiles = [
".claude.json" ".claude.json"
+4 -2
View File
@@ -14,6 +14,8 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# workaround
environment.sessionVariables.EDITOR = "nvim";
my.hm = { my.hm = {
xdg.configFile."nvim".source = impure.mkImpureLink ./nvim; xdg.configFile."nvim".source = impure.mkImpureLink ./nvim;
programs.neovim = { programs.neovim = {
@@ -34,11 +36,11 @@ in
ripgrep # telescope ripgrep # telescope
# language servers
vscode-json-languageserver vscode-json-languageserver
vscode-langservers-extracted vscode-langservers-extracted
# taplo
tombi
typos-lsp typos-lsp
# render-markdown.nvim # render-markdown.nvim
python3Packages.pylatexenc python3Packages.pylatexenc
]; ];
@@ -80,7 +80,7 @@ local servers = {
html = {}, html = {},
java_language_server = {}, java_language_server = {},
jsonls = {}, jsonls = {},
pyright = {}, pyrefly = {},
-- taplo = {}, -- taplo = {},
tombi = {}, tombi = {},
ts_ls = {}, ts_ls = {},
@@ -193,7 +193,7 @@ local plugins = {
}, },
}, },
}, },
"saghen/blink.lib" "saghen/blink.lib",
}, },
config = function() config = function()
require("blink.cmp").setup(require("plugins.cmp.cmp")) require("blink.cmp").setup(require("plugins.cmp.cmp"))
+1
View File
@@ -18,6 +18,7 @@ in
java.enable = true; java.enable = true;
qml.enable = true; qml.enable = true;
typst.enable = true; typst.enable = true;
toml.enable = true;
}; };
}; };
} }
+1 -1
View File
@@ -16,7 +16,7 @@ in
my.hm.home.packages = with pkgs; [ my.hm.home.packages = with pkgs; [
python3 python3
uv uv
pyright pyrefly
]; ];
}; };
} }
+20
View File
@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.coding.langs.toml;
in
{
options.my.coding.langs.toml = {
enable = lib.mkEnableOption "TOML";
};
config = lib.mkIf cfg.enable {
my.hm.home.packages = with pkgs; [
tombi
];
};
}
+9 -5
View File
@@ -41,9 +41,13 @@ in
"nix/nix-racer.toml".source = (pkgs.formats.toml { }).generate "nix-racer.toml" { "nix/nix-racer.toml".source = (pkgs.formats.toml { }).generate "nix-racer.toml" {
listen = "127.0.0.1:2048"; listen = "127.0.0.1:2048";
substituters = [ substituters = [
# {
# penalty = 0;
# url = "https://mirror.sjtu.edu.cn/nix-channels/store";
# }
{ {
penalty = 0; penalty = 0;
url = "https://mirror.sjtu.edu.cn/nix-channels/store"; url = "https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store";
} }
{ {
penalty = 50; penalty = 50;
@@ -55,7 +59,7 @@ in
} }
{ {
penalty = 0; penalty = 0;
url = "https://cache.garnix.io"; url = "https://cache.numtide.com";
} }
{ {
penalty = 100; penalty = 100;
@@ -114,17 +118,17 @@ in
experimental-features = "nix-command flakes pipe-operators"; experimental-features = "nix-command flakes pipe-operators";
substituters = lib.mkForce [ substituters = lib.mkForce [
"http://127.0.0.1:2048" "http://127.0.0.1:2048"
"https://mirror.sjtu.edu.cn/nix-channels/store" "https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store"
"https://cache.numtide.com"
"https://cache.nixos.org" "https://cache.nixos.org"
# "https://mirrors.ustc.edu.cn/nix-channels/store" # "https://mirrors.ustc.edu.cn/nix-channels/store"
# "https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store" # "https://mirrors.sjtug.sjtu.edu.cn/nix-channels/store"
# "https://nix-community.cachix.org" # "https://nix-community.cachix.org"
# "https://cache.garnix.io"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
]; ];
download-buffer-size = 536870912; # 512 MiB download-buffer-size = 536870912; # 512 MiB
warn-dirty = false; warn-dirty = false;
+15 -1
View File
@@ -13,8 +13,22 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
nixpkgs.config.permittedInsecurePackages = (
lib.warn
''
SPlayer still using pnpm 10.29.2. Check
https://github.com/NixOS/nixpkgs/issues/535580#issuecomment-4809489104
''
[
"pnpm-10.29.2"
]
);
my.hm.home.packages = [ my.hm.home.packages = [
pkgs.master.splayer # (pkgs.master.splayer.override {
# pnpm_10_29_2 = pkgs.pnpm_10;
# })
pkgs.splayer
]; ];
my.persist.homeDirs = [ my.persist.homeDirs = [
".config/SPlayer" ".config/SPlayer"
+3
View File
@@ -15,6 +15,7 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
niri-flake.cache.enable = false;
programs.niri = { programs.niri = {
enable = true; enable = true;
package = pkg; package = pkg;
@@ -24,6 +25,8 @@ in
enable = true; enable = true;
settings = { settings = {
animation = "matrix"; animation = "matrix";
session_log = ".local/state/ly-session.log";
shell = false;
}; };
}; };
}; };
-77
View File
@@ -1,77 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.my.autologin;
gettycfg = config.services.getty;
baseArgs = [
"--login-program"
"${gettycfg.loginProgram}"
]
++ optionals (gettycfg.loginOptions != null) [
"--login-options"
gettycfg.loginOptions
]
++ gettycfg.extraArgs;
gettyCmd = args: "@${pkgs.util-linux}/sbin/agetty agetty ${escapeShellArgs baseArgs} ${args}";
forAllAutologinTTYs =
config:
attrsets.mergeAttrsList (map (ttynum: { "getty@tty${toString ttynum}" = config; }) cfg.ttys);
autologinModule = types.submodule {
options = {
enable = mkEnableOption "autologin";
user = mkOption {
type = types.str;
default = "";
example = "foo";
description = mdDoc ''
Username of the account that will be automatically logged in at the console.
'';
};
ttys = mkOption {
type = types.listOf types.int;
default = [ 6 ];
description = mdDoc ''
TTY numbers for autologin.user to login to.
'';
};
};
};
in
{
###### interface
options = {
my.autologin = mkOption {
type = autologinModule;
default = { };
};
};
###### implementation
config = mkIf cfg.enable {
systemd.services = forAllAutologinTTYs {
overrideStrategy = "asDropin"; # needed for templates to work
serviceConfig.ExecStart = [
""
(gettyCmd "--noclear --keep-baud %I 115200,38400,9600 -a ${cfg.user} $TERM")
];
};
};
}
+3
View File
@@ -10,6 +10,9 @@
grub.enable = false; grub.enable = false;
timeout = 0; timeout = 0;
}; };
boot.kernel.sysctl = {
"kernel.printk" = "3 4 1 3";
};
security.pam.loginLimits = [ security.pam.loginLimits = [
{ {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -14,6 +14,7 @@ dns:
default-nameserver: default-nameserver:
- ENC[AES256_GCM,data:eEwdzhx+ysGj,iv:FZ6vsFPP5dnfcImydU46J8vA9GYbejP3zEXHA6D+6J0=,tag:lmG+OzJwFtBKHraF4PsCjQ==,type:str] - ENC[AES256_GCM,data:eEwdzhx+ysGj,iv:FZ6vsFPP5dnfcImydU46J8vA9GYbejP3zEXHA6D+6J0=,tag:lmG+OzJwFtBKHraF4PsCjQ==,type:str]
proxy-server-nameserver: proxy-server-nameserver:
- ENC[AES256_GCM,data:n3PMmscYUm2eXFe3/uNsKPF0rwyQBtGTsA==,iv:FMOP4qohNNqfLIo7U6mk5qxBm0eXVFCbI0KD7kfw1/Y=,tag:N6H/gESlK1Cr5J2T3Mxldg==,type:str]
- ENC[AES256_GCM,data:G5eodgYoIwtWDMnuEg2srdwCJqQi+OAsyPtp4OvT,iv:5maumIhsmc/QE1ey4rufm6Y8G4OqG3qyY0Ybv/24LoI=,tag:heYvV2IVsIMRBEwQwlJlWg==,type:str] - ENC[AES256_GCM,data:G5eodgYoIwtWDMnuEg2srdwCJqQi+OAsyPtp4OvT,iv:5maumIhsmc/QE1ey4rufm6Y8G4OqG3qyY0Ybv/24LoI=,tag:heYvV2IVsIMRBEwQwlJlWg==,type:str]
- ENC[AES256_GCM,data:3CbO5pelMlvJxgoawFkEmARs8Xwgw87eKg==,iv:A21aiwBT98NT0VQ2vaepx/F8AG8rWawNWdch+yVDYCM=,tag:OkTMbH5QnXbxf8NQyer8pA==,type:str] - ENC[AES256_GCM,data:3CbO5pelMlvJxgoawFkEmARs8Xwgw87eKg==,iv:A21aiwBT98NT0VQ2vaepx/F8AG8rWawNWdch+yVDYCM=,tag:OkTMbH5QnXbxf8NQyer8pA==,type:str]
proxies: proxies:
@@ -81,7 +82,7 @@ sops:
pOoJmg== pOoJmg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
recipient: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb5G/ieEYBOng66YeyttBQLThyM6W//z2POsNyq4Rw/ recipient: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMb5G/ieEYBOng66YeyttBQLThyM6W//z2POsNyq4Rw/
lastmodified: "2026-06-06T09:04:58Z" lastmodified: "2026-06-13T04:02:11Z"
mac: ENC[AES256_GCM,data:yeNo//iFxcePE/BioeFXpPTVs+hYSIlBq1Lq0TwnUVZMhoHfQxqbGs1bUoCbOlmaCMtjTh69im5QE5R4DgG1v3gKMxS0oBZ3f8UGgT8nUF1ara5zCyRlw9qKA+a/W8ScY8xl7zc8sGGQNq7oHcIfJ4Jd4mr5g78+iz+YmLKhk6A=,iv:sd7O4WAWBdSRqzIV2jQ7aLYTaSrIFA/SLz+FDxx70TI=,tag:lYOrHfVE6Af52HAGUkdDYA==,type:str] mac: ENC[AES256_GCM,data:VWXa9HdGyPBkLQH5lgqioYbd3VxvL7PjuwiHrX353W+G4Lu/VaMHAz9AFN495cLyCm1dB4VwC773JmLNYKbCzHswQr4tpkp7AlIhvCbt+S0L5ZXLxOlVMd0vONGxQOQHhxQnRONXg9K2i7rTfTjGBdY1o/alswfsNrhaL7g/+OY=,iv:Z3MNOcTU9AQ8yEQgYxXKmv+09cXbF1RalrNXqJYTGUs=,tag:K1kps0EPAKYbQradY02yOQ==,type:str]
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.13.1 version: 3.13.1