feat: add formatter

This commit is contained in:
danny 2026-01-10 12:46:40 +08:00
parent d036cf224a
commit cf005ff872
269 changed files with 369 additions and 226 deletions

2
.gitignore vendored Normal file → Executable file
View file

@ -1 +1,3 @@
**/result **/result
.pre-commit-config.yaml

0
.sops.yaml Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
docs/fcitx.md Normal file → Executable file
View file

0
docs/hyprland.md Normal file → Executable file
View file

0
docs/yazi.md Normal file → Executable file
View file

197
flake.lock generated Normal file → Executable file
View file

@ -344,6 +344,22 @@
} }
}, },
"flake-compat_5": { "flake-compat_5": {
"flake": false,
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_6": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1761588595, "lastModified": 1761588595,
@ -359,7 +375,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_6": { "flake-compat_7": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1747046372, "lastModified": 1747046372,
@ -375,7 +391,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_7": { "flake-compat_8": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1751685974, "lastModified": 1751685974,
@ -639,7 +655,7 @@
}, },
"flake-utils_8": { "flake-utils_8": {
"inputs": { "inputs": {
"systems": "systems_11" "systems": "systems_12"
}, },
"locked": { "locked": {
"lastModified": 1731533236, "lastModified": 1731533236,
@ -693,7 +709,48 @@
"type": "github" "type": "github"
} }
}, },
"git-hooks": {
"inputs": {
"flake-compat": "flake-compat_4",
"gitignore": "gitignore",
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1767281941,
"narHash": "sha256-6MkqajPICgugsuZ92OMoQcgSHnD6sJHwk8AxvMcIgTE=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "f0927703b7b1c8d97511c4116eb9b4ec6645a0fa",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"gitignore": { "gitignore": {
"inputs": {
"nixpkgs": [
"git-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"gitignore_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
@ -715,7 +772,7 @@
"type": "github" "type": "github"
} }
}, },
"gitignore_2": { "gitignore_3": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"lanzaboote", "lanzaboote",
@ -845,7 +902,7 @@
"hyprutils": "hyprutils", "hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner", "hyprwayland-scanner": "hyprwayland-scanner",
"hyprwire": "hyprwire", "hyprwire": "hyprwire",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_5",
"pre-commit-hooks": "pre-commit-hooks", "pre-commit-hooks": "pre-commit-hooks",
"systems": "systems_3", "systems": "systems_3",
"xdph": "xdph" "xdph": "xdph"
@ -1268,7 +1325,7 @@
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"neovim-src": "neovim-src", "neovim-src": "neovim-src",
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1764979571, "lastModified": 1764979571,
@ -1312,11 +1369,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1764971746, "lastModified": 1767833217,
"narHash": "sha256-PPwnDjR6ZjPooITfu6SWnoPsj3EV4fLrXk93U2RhjZ0=", "narHash": "sha256-HLr9k8g1Geq40PLsNw7I5N8TZkBYtQVjkgDPV/Kehxk=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "b0ebfba3a0774cc0b3f3b9a345ebad57de04b666", "rev": "a789aa1512a9157d5d3392b27e60621fd0d83438",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1368,11 +1425,11 @@
"niri-unstable": { "niri-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1764966114, "lastModified": 1767792726,
"narHash": "sha256-nC0Fsu4zSdabdR4tHHMCrTgqLms612eEDy5VCdQVZFk=", "narHash": "sha256-qS4tdG2iUQwSld9dTH1gk8GcIOrRi9umMgPv8MGDIA0=",
"owner": "YaLTeR", "owner": "YaLTeR",
"repo": "niri", "repo": "niri",
"rev": "ba29735fbbd8cf8319c71ccb55b54a0580007c80", "rev": "10df9f4717cbd4efd20ae796eb6b0aa400127bdc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1424,7 +1481,7 @@
}, },
"nix-minecraft": { "nix-minecraft": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_6", "flake-compat": "flake-compat_7",
"flake-utils": "flake-utils_6", "flake-utils": "flake-utils_6",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
@ -1447,7 +1504,7 @@
"nix-search-tv": { "nix-search-tv": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_7", "flake-utils": "flake-utils_7",
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_7"
}, },
"locked": { "locked": {
"lastModified": 1763912269, "lastModified": 1763912269,
@ -1552,11 +1609,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1764831616, "lastModified": 1767799921,
"narHash": "sha256-OtzF5wBvO0jgW1WW1rQU9cMGx7zuvkF7CAVJ1ypzkxA=", "narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c97c47f2bac4fa59e2cbdeba289686ae615f8ed4", "rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1566,6 +1623,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_10": {
"locked": {
"lastModified": 1763806073,
"narHash": "sha256-FHsEKDvfWpzdADWj99z7vBk4D716Ujdyveo5+A048aI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "878e468e02bfabeda08c79250f7ad583037f2227",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1764947035, "lastModified": 1764947035,
@ -1593,6 +1666,22 @@
} }
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": {
"lastModified": 1764947035,
"narHash": "sha256-EYHSjVM4Ox4lvCXUMiKKs2vETUSL5mx+J2FfutM7T9w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a672be65651c80d3f592a89b3945466584a22069",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1767379071, "lastModified": 1767379071,
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=", "narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
@ -1608,7 +1697,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1764915887, "lastModified": 1764915887,
"narHash": "sha256-CeBCJ9BMsuzVgn8GVfuSRZ6xeau7szzG0Xn6O/OxP9M=", "narHash": "sha256-CeBCJ9BMsuzVgn8GVfuSRZ6xeau7szzG0Xn6O/OxP9M=",
@ -1624,7 +1713,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1757584362, "lastModified": 1757584362,
"narHash": "sha256-XeTX/w16rUNUNBsfaOVCDoMMa7Xu7KvIMT7tn1zIEcg=", "narHash": "sha256-XeTX/w16rUNUNBsfaOVCDoMMa7Xu7KvIMT7tn1zIEcg=",
@ -1640,7 +1729,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_7": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1767364772, "lastModified": 1767364772,
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=", "narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
@ -1656,7 +1745,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_8": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1764445028, "lastModified": 1764445028,
"narHash": "sha256-ik6H/0Zl+qHYDKTXFPpzuVHSZE+uvVz2XQuQd1IVXzo=", "narHash": "sha256-ik6H/0Zl+qHYDKTXFPpzuVHSZE+uvVz2XQuQd1IVXzo=",
@ -1672,22 +1761,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_9": {
"locked": {
"lastModified": 1763806073,
"narHash": "sha256-FHsEKDvfWpzdADWj99z7vBk4D716Ujdyveo5+A048aI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "878e468e02bfabeda08c79250f7ad583037f2227",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"noctalia": { "noctalia": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -1695,11 +1768,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1764990750, "lastModified": 1767851722,
"narHash": "sha256-oC3RAbXX2Yu+zkIQJlWgaT8mdKcv6JDiuI0XIOEGHyo=", "narHash": "sha256-33madeYEiounlmTjaTZk3KV0NutlT6qwwf/RgOuIdmQ=",
"owner": "noctalia-dev", "owner": "noctalia-dev",
"repo": "noctalia-shell", "repo": "noctalia-shell",
"rev": "bdffb0f95941a4dd45287395b0f377e7c7895834", "rev": "f9cbc7bc57315a92af99dce80385f8e42ccfe64f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1735,7 +1808,7 @@
}, },
"nvf": { "nvf": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_7", "flake-compat": "flake-compat_8",
"flake-parts": "flake-parts_4", "flake-parts": "flake-parts_4",
"mnw": "mnw", "mnw": "mnw",
"ndg": "ndg", "ndg": "ndg",
@ -1760,8 +1833,8 @@
}, },
"pre-commit": { "pre-commit": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_5", "flake-compat": "flake-compat_6",
"gitignore": "gitignore_2", "gitignore": "gitignore_3",
"nixpkgs": [ "nixpkgs": [
"lanzaboote", "lanzaboote",
"nixpkgs" "nixpkgs"
@ -1783,8 +1856,8 @@
}, },
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_4", "flake-compat": "flake-compat_5",
"gitignore": "gitignore", "gitignore": "gitignore_2",
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
@ -1833,6 +1906,7 @@
"caelestia-shell": "caelestia-shell", "caelestia-shell": "caelestia-shell",
"disko": "disko", "disko": "disko",
"ghostty": "ghostty", "ghostty": "ghostty",
"git-hooks": "git-hooks",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"hyprland-plugins": "hyprland-plugins", "hyprland-plugins": "hyprland-plugins",
@ -1849,12 +1923,13 @@
"nix-search-tv": "nix-search-tv", "nix-search-tv": "nix-search-tv",
"nix-tmodloader": "nix-tmodloader", "nix-tmodloader": "nix-tmodloader",
"nixd": "nixd", "nixd": "nixd",
"nixpkgs": "nixpkgs_7", "nixpkgs": "nixpkgs_8",
"noctalia": "noctalia", "noctalia": "noctalia",
"nvf": "nvf", "nvf": "nvf",
"rust-overlay": "rust-overlay_3", "rust-overlay": "rust-overlay_3",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"stylix": "stylix", "stylix": "stylix",
"systems": "systems_11",
"yazi": "yazi", "yazi": "yazi",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
@ -1944,7 +2019,7 @@
}, },
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_8" "nixpkgs": "nixpkgs_9"
}, },
"locked": { "locked": {
"lastModified": 1764483358, "lastModified": 1764483358,
@ -2041,6 +2116,20 @@
} }
}, },
"systems_11": { "systems_11": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"id": "systems",
"type": "indirect"
}
},
"systems_12": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@ -2338,11 +2427,11 @@
"xwayland-satellite-unstable": { "xwayland-satellite-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1764721075, "lastModified": 1767830382,
"narHash": "sha256-ChH4nq0cMEEkzkHqKlQt5Z7wxrk8ybcEHuA1YKAYmV0=", "narHash": "sha256-0PgS7M1SV6JCN3MugFZPaP8J+Mr2o7lSDFTPVYZSIAY=",
"owner": "Supreeeme", "owner": "Supreeeme",
"repo": "xwayland-satellite", "repo": "xwayland-satellite",
"rev": "1b918e29b419e89910014054e8b71d54c9235ea5", "rev": "74cf1a95a35fd7aec76432bc2cd9b310e0d908c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -2354,7 +2443,7 @@
"yazi": { "yazi": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_8", "flake-utils": "flake-utils_8",
"nixpkgs": "nixpkgs_9", "nixpkgs": "nixpkgs_10",
"rust-overlay": "rust-overlay_4" "rust-overlay": "rust-overlay_4"
}, },
"locked": { "locked": {
@ -2381,11 +2470,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1764995001, "lastModified": 1767763594,
"narHash": "sha256-jx0CmXLSJP0kttcrh7AvTMttS5gbst44h03Xe2fBCmM=", "narHash": "sha256-5ysv8EuVAgDoYmNuXEUNf7vBzdeRaFxeIlIndv5HMvs=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "298788c28f8e1d912a678ab4108383c1ac979801", "rev": "8b2302d8c10369c9135552cc892da75cff5ddb03",
"type": "github" "type": "github"
}, },
"original": { "original": {

52
flake.nix Normal file → Executable file
View file

@ -134,6 +134,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
git-hooks.url = "github:cachix/git-hooks.nix";
# ==== Shell ==== # # ==== Shell ==== #
caelestia-shell = { caelestia-shell = {
url = "github:caelestia-dots/shell"; url = "github:caelestia-dots/shell";
@ -144,34 +146,35 @@
url = "github:noctalia-dev/noctalia-shell"; url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = outputs =
{ {
self, self,
nixpkgs, nixpkgs,
systems,
... ...
}@inputs: }@inputs:
let let
inherit (builtins) mapAttrs; inherit (builtins) mapAttrs;
forEachSystem = nixpkgs.lib.genAttrs (import systems);
hosts = { hosts = {
dn-pre7780 = { dn-pre7780 = {
system = "x86_64-linux"; system = "x86_64-linux";
path = ./system/dev/dn-pre7780; confPath = ./system/dev/dn-pre7780;
}; };
dn-server = { dn-server = {
system = "x86_64-linux"; system = "x86_64-linux";
path = ./system/dev/dn-server; confPath = ./system/dev/dn-server;
}; };
dn-lap = { dn-lap = {
system = "x86_64-linux"; system = "x86_64-linux";
path = ./system/dev/dn-lap; confPath = ./system/dev/dn-lap;
}; };
skydrive-lap = { skydrive-lap = {
system = "x86_64-linux"; system = "x86_64-linux";
path = ./system/dev/skydrive-lap; confPath = ./system/dev/skydrive-lap;
}; };
}; };
in in
@ -181,7 +184,7 @@
mapAttrs ( mapAttrs (
hostname: conf: hostname: conf:
let let
inherit (conf) path system; inherit (conf) confPath system;
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
}; };
@ -232,12 +235,47 @@
./options ./options
# ==== Private Configuration ==== # # ==== Private Configuration ==== #
(import path { inherit hostname; }) (import confPath { inherit hostname; })
]; ];
} }
) hosts ) hosts
); );
formatter = forEachSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
config = self.checks.${system}.pre-commit-check.config;
inherit (config) package configFile;
script = ''
${pkgs.lib.getExe package} run --all-files --config ${configFile}
'';
in
pkgs.writeShellScriptBin "pre-commit-run" script
);
checks = forEachSystem (system: {
pre-commit-check = inputs.git-hooks.lib.${system}.run {
src = ./.;
hooks = {
nixfmt.enable = true;
};
};
});
devShells = forEachSystem (system: {
default =
let
pkgs = import nixpkgs { inherit system; };
inherit (self.checks.${system}.pre-commit-check) shellHook enabledPackages;
in
pkgs.mkShell {
inherit shellHook;
name = "nixos";
buildInputs = enabledPackages;
};
});
# ==== MicroVM Packages ==== # # ==== MicroVM Packages ==== #
# packages."${system}" = { # packages."${system}" = {
# vm-1 = self.nixosConfigurations.vm-1.config.microvm.declaredRunner; # vm-1 = self.nixosConfigurations.vm-1.config.microvm.declaredRunner;

0
helper/default.nix Normal file → Executable file
View file

0
home/config/.face Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Before After
Before After

0
home/config/firefox/autohide_toolbox.css Normal file → Executable file
View file

0
home/config/firefox/nightTab.json Normal file → Executable file
View file

0
home/config/fish/functions/fish_prompt.fish Normal file → Executable file
View file

0
home/config/gh/config.yaml Normal file → Executable file
View file

0
home/config/ghostty/shader/mnoise.glsl Normal file → Executable file
View file

0
home/config/rofi/apps.rasi Normal file → Executable file
View file

0
home/config/rofi/config.rasi Normal file → Executable file
View file

0
home/config/rofi/gruvbox-material.rasi Normal file → Executable file
View file

0
home/config/tmux.yaml Normal file → Executable file
View file

0
home/config/wlogout/icons/hibernate.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 307 B

Before After
Before After

0
home/config/wlogout/icons/lock.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 319 B

After

Width:  |  Height:  |  Size: 319 B

Before After
Before After

0
home/config/wlogout/icons/logout.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 365 B

Before After
Before After

0
home/config/wlogout/icons/reboot.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 398 B

After

Width:  |  Height:  |  Size: 398 B

Before After
Before After

0
home/config/wlogout/icons/shutdown.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 306 B

Before After
Before After

0
home/config/wlogout/icons/suspend.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

Before After
Before After

0
home/config/zen/zen-keyboard-shortcuts.json Normal file → Executable file
View file

0
home/options/default.nix Normal file → Executable file
View file

0
home/options/hyprlock.nix Normal file → Executable file
View file

0
home/options/noctalia.nix Normal file → Executable file
View file

0
home/options/ntfy-client.nix Normal file → Executable file
View file

0
home/options/sunsetr.nix Normal file → Executable file
View file

0
home/presets/basic.nix Normal file → Executable file
View file

0
home/scripts/md2html.nix Normal file → Executable file
View file

0
home/scripts/memeSelector.nix Normal file → Executable file
View file

0
home/scripts/mkWall.nix Normal file → Executable file
View file

0
home/scripts/ntfy.nix Normal file → Executable file
View file

0
home/scripts/rbwSelector.nix Normal file → Executable file
View file

0
home/scripts/record.nix Normal file → Executable file
View file

0
home/scripts/remoteRebuild.nix Normal file → Executable file
View file

0
home/scripts/rofiwall.nix Normal file → Executable file
View file

0
home/user/bitwarden.nix Normal file → Executable file
View file

0
home/user/config.nix Normal file → Executable file
View file

0
home/user/direnv.nix Normal file → Executable file
View file

0
home/user/environment.nix Normal file → Executable file
View file

0
home/user/firefox.nix Normal file → Executable file
View file

0
home/user/ghostty.nix Normal file → Executable file
View file

0
home/user/git.nix Normal file → Executable file
View file

0
home/user/gtk.nix Normal file → Executable file
View file

0
home/user/hypr/bind.nix Normal file → Executable file
View file

0
home/user/hypr/input.nix Normal file → Executable file
View file

0
home/user/hypr/window.nix Normal file → Executable file
View file

0
home/user/hypr/windowrule.nix Normal file → Executable file
View file

0
home/user/hypr/workspace.nix Normal file → Executable file
View file

0
home/user/hyprland.nix Normal file → Executable file
View file

0
home/user/internationalisation.nix Normal file → Executable file
View file

0
home/user/music-production.nix Normal file → Executable file
View file

18
home/user/nvf/default.nix Normal file → Executable file
View file

@ -7,8 +7,9 @@
... ...
}: }:
let let
inherit (builtins) concatStringsSep;
inherit (lib.generators) mkLuaInline; inherit (lib.generators) mkLuaInline;
inherit (lib) concatStringsSep optionalString; inherit (lib) optionalString;
suda-nvim = pkgs.vimUtils.buildVimPlugin { suda-nvim = pkgs.vimUtils.buildVimPlugin {
name = "vim-suda"; name = "vim-suda";
@ -369,11 +370,11 @@ in
formatter = { formatter = {
conform-nvim = { conform-nvim = {
enable = true; enable = true;
setupOpts = { # setupOpts = {
formatters_by_ft = { # formatters_by_ft = {
nix = [ "nixfmt" ]; # nix = [ "nixfmt" ];
}; # };
}; # };
}; };
}; };
@ -420,7 +421,10 @@ in
nix = { nix = {
enable = true; enable = true;
extraDiagnostics.enable = false; extraDiagnostics.enable = false;
format.enable = false; # Manually configured in conform-nvim format = {
type = [ "nixfmt" ];
enable = true;
};
lsp.servers = [ "nixd" ]; lsp.servers = [ "nixd" ];
}; };
sql.enable = true; sql.enable = true;

0
home/user/nvf/extra-lsp.nix Normal file → Executable file
View file

0
home/user/nvf/plugins/leetcode/default.nix Normal file → Executable file
View file

0
home/user/nvf/plugins/lualine/default.nix Normal file → Executable file
View file

0
home/user/nvf/plugins/snacks-nvim/default.nix Normal file → Executable file
View file

0
home/user/nvf/plugins/snacks-nvim/keymaps.nix Normal file → Executable file
View file

0
home/user/packages.nix Normal file → Executable file
View file

0
home/user/podman.nix Normal file → Executable file
View file

0
home/user/shell.nix Normal file → Executable file
View file

0
home/user/shellAlias.nix Normal file → Executable file
View file

0
home/user/shells/caelestia.nix Normal file → Executable file
View file

0
home/user/tmux.nix Normal file → Executable file
View file

0
home/user/virtualization.nix Normal file → Executable file
View file

0
home/user/vscode.nix Normal file → Executable file
View file

0
home/user/wallpaper-engine.nix Normal file → Executable file
View file

0
home/user/waybar.nix Normal file → Executable file
View file

0
home/user/wlogout.nix Normal file → Executable file
View file

0
home/user/wm-service.nix Normal file → Executable file
View file

0
home/user/yazi.nix Normal file → Executable file
View file

0
home/user/zellij.nix Normal file → Executable file
View file

0
home/user/zen-browser.nix Normal file → Executable file
View file

0
options/default.nix Normal file → Executable file
View file

0
options/systemconf.nix Normal file → Executable file
View file

0
pkgs/assets/discord.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 474 B

Before After
Before After

0
pkgs/assets/peepoLeave.gif.base64 Normal file → Executable file
View file

0
pkgs/fonts/dfkai-sb/default.nix Normal file → Executable file
View file

0
pkgs/fonts/sf-pro-display-bold/default.nix Normal file → Executable file
View file

0
pkgs/overlays/default.nix Normal file → Executable file
View file

0
pkgs/overlays/powerdns-admin.nix Normal file → Executable file
View file

0
pkgs/overlays/stalwart-mail/default.nix Normal file → Executable file
View file

0
pkgs/overlays/stalwart-mail/enable_root_ca.patch Normal file → Executable file
View file

0
pkgs/overlays/vesktop.nix Normal file → Executable file
View file

0
pkgs/patches/splash.patch Normal file → Executable file
View file

0
preview.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

Before After
Before After

0
system/dev/dn-lap/common/boot.nix Normal file → Executable file
View file

0
system/dev/dn-lap/common/default.nix Normal file → Executable file
View file

31
system/dev/dn-lap/common/hardware-configuration.nix Normal file → Executable file
View file

@ -1,27 +1,41 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"uas"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{
device = "/dev/disk/by-label/nixos"; device = "/dev/disk/by-label/nixos";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{
device = "/dev/disk/by-label/BOOT"; device = "/dev/disk/by-label/BOOT";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
"fmask=0077"
"dmask=0077"
];
}; };
swapDevices = [ swapDevices = [
@ -36,6 +50,5 @@
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

0
system/dev/dn-lap/default.nix Normal file → Executable file
View file

0
system/dev/dn-lap/games/default.nix Normal file → Executable file
View file

4
system/dev/dn-lap/home/default.nix Normal file → Executable file
View file

@ -55,10 +55,6 @@ in
imports = [ imports = [
../../../../home/presets/basic.nix ../../../../home/presets/basic.nix
(import ../../../../home/user/bitwarden.nix {
email = "danny@net.dn";
baseUrl = "https://bitwarden.net.dn";
})
# waybar # waybar
(import ../../../../home/user/waybar.nix { (import ../../../../home/user/waybar.nix {

0
system/dev/dn-lap/network/default.nix Normal file → Executable file
View file

0
system/dev/dn-lap/office/default.nix Normal file → Executable file
View file

0
system/dev/dn-lap/services/default.nix Normal file → Executable file
View file

0
system/dev/dn-lap/sops/default.nix Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more