feat: add formatter
2
.gitignore
vendored
Normal file → Executable file
|
|
@ -1 +1,3 @@
|
|||
**/result
|
||||
|
||||
.pre-commit-config.yaml
|
||||
|
|
|
|||
0
.sops.yaml
Normal file → Executable file
0
README.md
Normal file → Executable file
0
docs/fcitx.md
Normal file → Executable file
0
docs/hyprland.md
Normal file → Executable file
0
docs/yazi.md
Normal file → Executable file
197
flake.lock
generated
Normal file → Executable file
|
|
@ -344,6 +344,22 @@
|
|||
}
|
||||
},
|
||||
"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,
|
||||
"locked": {
|
||||
"lastModified": 1761588595,
|
||||
|
|
@ -359,7 +375,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat_6": {
|
||||
"flake-compat_7": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1747046372,
|
||||
|
|
@ -375,7 +391,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat_7": {
|
||||
"flake-compat_8": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1751685974,
|
||||
|
|
@ -639,7 +655,7 @@
|
|||
},
|
||||
"flake-utils_8": {
|
||||
"inputs": {
|
||||
"systems": "systems_11"
|
||||
"systems": "systems_12"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
|
|
@ -693,7 +709,48 @@
|
|||
"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": {
|
||||
"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": {
|
||||
"nixpkgs": [
|
||||
"hyprland",
|
||||
|
|
@ -715,7 +772,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore_2": {
|
||||
"gitignore_3": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"lanzaboote",
|
||||
|
|
@ -845,7 +902,7 @@
|
|||
"hyprutils": "hyprutils",
|
||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||
"hyprwire": "hyprwire",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"pre-commit-hooks": "pre-commit-hooks",
|
||||
"systems": "systems_3",
|
||||
"xdph": "xdph"
|
||||
|
|
@ -1268,7 +1325,7 @@
|
|||
"inputs": {
|
||||
"flake-parts": "flake-parts_2",
|
||||
"neovim-src": "neovim-src",
|
||||
"nixpkgs": "nixpkgs_5"
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764979571,
|
||||
|
|
@ -1312,11 +1369,11 @@
|
|||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764971746,
|
||||
"narHash": "sha256-PPwnDjR6ZjPooITfu6SWnoPsj3EV4fLrXk93U2RhjZ0=",
|
||||
"lastModified": 1767833217,
|
||||
"narHash": "sha256-HLr9k8g1Geq40PLsNw7I5N8TZkBYtQVjkgDPV/Kehxk=",
|
||||
"owner": "sodiboo",
|
||||
"repo": "niri-flake",
|
||||
"rev": "b0ebfba3a0774cc0b3f3b9a345ebad57de04b666",
|
||||
"rev": "a789aa1512a9157d5d3392b27e60621fd0d83438",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1368,11 +1425,11 @@
|
|||
"niri-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1764966114,
|
||||
"narHash": "sha256-nC0Fsu4zSdabdR4tHHMCrTgqLms612eEDy5VCdQVZFk=",
|
||||
"lastModified": 1767792726,
|
||||
"narHash": "sha256-qS4tdG2iUQwSld9dTH1gk8GcIOrRi9umMgPv8MGDIA0=",
|
||||
"owner": "YaLTeR",
|
||||
"repo": "niri",
|
||||
"rev": "ba29735fbbd8cf8319c71ccb55b54a0580007c80",
|
||||
"rev": "10df9f4717cbd4efd20ae796eb6b0aa400127bdc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1424,7 +1481,7 @@
|
|||
},
|
||||
"nix-minecraft": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_6",
|
||||
"flake-compat": "flake-compat_7",
|
||||
"flake-utils": "flake-utils_6",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
|
|
@ -1447,7 +1504,7 @@
|
|||
"nix-search-tv": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_7",
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
"nixpkgs": "nixpkgs_7"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1763912269,
|
||||
|
|
@ -1552,11 +1609,11 @@
|
|||
},
|
||||
"nixpkgs-stable_2": {
|
||||
"locked": {
|
||||
"lastModified": 1764831616,
|
||||
"narHash": "sha256-OtzF5wBvO0jgW1WW1rQU9cMGx7zuvkF7CAVJ1ypzkxA=",
|
||||
"lastModified": 1767799921,
|
||||
"narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c97c47f2bac4fa59e2cbdeba289686ae615f8ed4",
|
||||
"rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1566,6 +1623,22 @@
|
|||
"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": {
|
||||
"locked": {
|
||||
"lastModified": 1764947035,
|
||||
|
|
@ -1593,6 +1666,22 @@
|
|||
}
|
||||
},
|
||||
"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": {
|
||||
"lastModified": 1767379071,
|
||||
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
|
||||
|
|
@ -1608,7 +1697,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1764915887,
|
||||
"narHash": "sha256-CeBCJ9BMsuzVgn8GVfuSRZ6xeau7szzG0Xn6O/OxP9M=",
|
||||
|
|
@ -1624,7 +1713,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_6": {
|
||||
"nixpkgs_7": {
|
||||
"locked": {
|
||||
"lastModified": 1757584362,
|
||||
"narHash": "sha256-XeTX/w16rUNUNBsfaOVCDoMMa7Xu7KvIMT7tn1zIEcg=",
|
||||
|
|
@ -1640,7 +1729,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_7": {
|
||||
"nixpkgs_8": {
|
||||
"locked": {
|
||||
"lastModified": 1767364772,
|
||||
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
|
||||
|
|
@ -1656,7 +1745,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_8": {
|
||||
"nixpkgs_9": {
|
||||
"locked": {
|
||||
"lastModified": 1764445028,
|
||||
"narHash": "sha256-ik6H/0Zl+qHYDKTXFPpzuVHSZE+uvVz2XQuQd1IVXzo=",
|
||||
|
|
@ -1672,22 +1761,6 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
|
@ -1695,11 +1768,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764990750,
|
||||
"narHash": "sha256-oC3RAbXX2Yu+zkIQJlWgaT8mdKcv6JDiuI0XIOEGHyo=",
|
||||
"lastModified": 1767851722,
|
||||
"narHash": "sha256-33madeYEiounlmTjaTZk3KV0NutlT6qwwf/RgOuIdmQ=",
|
||||
"owner": "noctalia-dev",
|
||||
"repo": "noctalia-shell",
|
||||
"rev": "bdffb0f95941a4dd45287395b0f377e7c7895834",
|
||||
"rev": "f9cbc7bc57315a92af99dce80385f8e42ccfe64f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1735,7 +1808,7 @@
|
|||
},
|
||||
"nvf": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_7",
|
||||
"flake-compat": "flake-compat_8",
|
||||
"flake-parts": "flake-parts_4",
|
||||
"mnw": "mnw",
|
||||
"ndg": "ndg",
|
||||
|
|
@ -1760,8 +1833,8 @@
|
|||
},
|
||||
"pre-commit": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_5",
|
||||
"gitignore": "gitignore_2",
|
||||
"flake-compat": "flake-compat_6",
|
||||
"gitignore": "gitignore_3",
|
||||
"nixpkgs": [
|
||||
"lanzaboote",
|
||||
"nixpkgs"
|
||||
|
|
@ -1783,8 +1856,8 @@
|
|||
},
|
||||
"pre-commit-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_4",
|
||||
"gitignore": "gitignore",
|
||||
"flake-compat": "flake-compat_5",
|
||||
"gitignore": "gitignore_2",
|
||||
"nixpkgs": [
|
||||
"hyprland",
|
||||
"nixpkgs"
|
||||
|
|
@ -1833,6 +1906,7 @@
|
|||
"caelestia-shell": "caelestia-shell",
|
||||
"disko": "disko",
|
||||
"ghostty": "ghostty",
|
||||
"git-hooks": "git-hooks",
|
||||
"home-manager": "home-manager",
|
||||
"hyprland": "hyprland",
|
||||
"hyprland-plugins": "hyprland-plugins",
|
||||
|
|
@ -1849,12 +1923,13 @@
|
|||
"nix-search-tv": "nix-search-tv",
|
||||
"nix-tmodloader": "nix-tmodloader",
|
||||
"nixd": "nixd",
|
||||
"nixpkgs": "nixpkgs_7",
|
||||
"nixpkgs": "nixpkgs_8",
|
||||
"noctalia": "noctalia",
|
||||
"nvf": "nvf",
|
||||
"rust-overlay": "rust-overlay_3",
|
||||
"sops-nix": "sops-nix",
|
||||
"stylix": "stylix",
|
||||
"systems": "systems_11",
|
||||
"yazi": "yazi",
|
||||
"zen-browser": "zen-browser"
|
||||
}
|
||||
|
|
@ -1944,7 +2019,7 @@
|
|||
},
|
||||
"sops-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_8"
|
||||
"nixpkgs": "nixpkgs_9"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764483358,
|
||||
|
|
@ -2041,6 +2116,20 @@
|
|||
}
|
||||
},
|
||||
"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": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
|
|
@ -2338,11 +2427,11 @@
|
|||
"xwayland-satellite-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1764721075,
|
||||
"narHash": "sha256-ChH4nq0cMEEkzkHqKlQt5Z7wxrk8ybcEHuA1YKAYmV0=",
|
||||
"lastModified": 1767830382,
|
||||
"narHash": "sha256-0PgS7M1SV6JCN3MugFZPaP8J+Mr2o7lSDFTPVYZSIAY=",
|
||||
"owner": "Supreeeme",
|
||||
"repo": "xwayland-satellite",
|
||||
"rev": "1b918e29b419e89910014054e8b71d54c9235ea5",
|
||||
"rev": "74cf1a95a35fd7aec76432bc2cd9b310e0d908c5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -2354,7 +2443,7 @@
|
|||
"yazi": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_8",
|
||||
"nixpkgs": "nixpkgs_9",
|
||||
"nixpkgs": "nixpkgs_10",
|
||||
"rust-overlay": "rust-overlay_4"
|
||||
},
|
||||
"locked": {
|
||||
|
|
@ -2381,11 +2470,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764995001,
|
||||
"narHash": "sha256-jx0CmXLSJP0kttcrh7AvTMttS5gbst44h03Xe2fBCmM=",
|
||||
"lastModified": 1767763594,
|
||||
"narHash": "sha256-5ysv8EuVAgDoYmNuXEUNf7vBzdeRaFxeIlIndv5HMvs=",
|
||||
"owner": "0xc000022070",
|
||||
"repo": "zen-browser-flake",
|
||||
"rev": "298788c28f8e1d912a678ab4108383c1ac979801",
|
||||
"rev": "8b2302d8c10369c9135552cc892da75cff5ddb03",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
52
flake.nix
Normal file → Executable file
|
|
@ -134,6 +134,8 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
git-hooks.url = "github:cachix/git-hooks.nix";
|
||||
|
||||
# ==== Shell ==== #
|
||||
caelestia-shell = {
|
||||
url = "github:caelestia-dots/shell";
|
||||
|
|
@ -144,34 +146,35 @@
|
|||
url = "github:noctalia-dev/noctalia-shell";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
systems,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
inherit (builtins) mapAttrs;
|
||||
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||
|
||||
hosts = {
|
||||
dn-pre7780 = {
|
||||
system = "x86_64-linux";
|
||||
path = ./system/dev/dn-pre7780;
|
||||
confPath = ./system/dev/dn-pre7780;
|
||||
};
|
||||
dn-server = {
|
||||
system = "x86_64-linux";
|
||||
path = ./system/dev/dn-server;
|
||||
confPath = ./system/dev/dn-server;
|
||||
};
|
||||
dn-lap = {
|
||||
system = "x86_64-linux";
|
||||
path = ./system/dev/dn-lap;
|
||||
confPath = ./system/dev/dn-lap;
|
||||
};
|
||||
skydrive-lap = {
|
||||
system = "x86_64-linux";
|
||||
path = ./system/dev/skydrive-lap;
|
||||
confPath = ./system/dev/skydrive-lap;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
@ -181,7 +184,7 @@
|
|||
mapAttrs (
|
||||
hostname: conf:
|
||||
let
|
||||
inherit (conf) path system;
|
||||
inherit (conf) confPath system;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
|
@ -232,12 +235,47 @@
|
|||
./options
|
||||
|
||||
# ==== Private Configuration ==== #
|
||||
(import path { inherit hostname; })
|
||||
(import confPath { inherit hostname; })
|
||||
];
|
||||
}
|
||||
) 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 ==== #
|
||||
# packages."${system}" = {
|
||||
# vm-1 = self.nixosConfigurations.vm-1.config.microvm.declaredRunner;
|
||||
|
|
|
|||
0
helper/default.nix
Normal file → Executable file
0
home/config/.face
Normal file → Executable file
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
0
home/config/firefox/autohide_toolbox.css
Normal file → Executable file
0
home/config/firefox/nightTab.json
Normal file → Executable file
0
home/config/fish/functions/fish_prompt.fish
Normal file → Executable file
0
home/config/gh/config.yaml
Normal file → Executable file
0
home/config/ghostty/shader/mnoise.glsl
Normal file → Executable file
0
home/config/rofi/apps.rasi
Normal file → Executable file
0
home/config/rofi/config.rasi
Normal file → Executable file
0
home/config/rofi/gruvbox-material.rasi
Normal file → Executable file
0
home/config/tmux.yaml
Normal file → Executable file
0
home/config/wlogout/icons/hibernate.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 307 B |
0
home/config/wlogout/icons/lock.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 319 B |
0
home/config/wlogout/icons/logout.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
0
home/config/wlogout/icons/reboot.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 398 B |
0
home/config/wlogout/icons/shutdown.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
0
home/config/wlogout/icons/suspend.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
0
home/config/zen/zen-keyboard-shortcuts.json
Normal file → Executable file
0
home/options/default.nix
Normal file → Executable file
0
home/options/hyprlock.nix
Normal file → Executable file
0
home/options/noctalia.nix
Normal file → Executable file
0
home/options/ntfy-client.nix
Normal file → Executable file
0
home/options/sunsetr.nix
Normal file → Executable file
0
home/presets/basic.nix
Normal file → Executable file
0
home/scripts/md2html.nix
Normal file → Executable file
106
home/scripts/memeSelector.nix
Normal file → Executable file
|
|
@ -3,68 +3,68 @@
|
|||
url,
|
||||
...
|
||||
}:
|
||||
pkgs.writers.writePython3Bin "memeSelector" {libraries = with pkgs.python3Packages; [requests];}
|
||||
''
|
||||
import requests
|
||||
import xml.etree.ElementTree as ET
|
||||
import urllib.parse
|
||||
import sys
|
||||
import os
|
||||
import tempfile
|
||||
import subprocess
|
||||
pkgs.writers.writePython3Bin "memeSelector" { libraries = with pkgs.python3Packages; [ requests ]; }
|
||||
''
|
||||
import requests
|
||||
import xml.etree.ElementTree as ET
|
||||
import urllib.parse
|
||||
import sys
|
||||
import os
|
||||
import tempfile
|
||||
import subprocess
|
||||
|
||||
BASE_URL = "${url}"
|
||||
headers = {"Depth": "1"}
|
||||
resp = requests.request(
|
||||
"PROPFIND",
|
||||
BASE_URL,
|
||||
headers=headers,
|
||||
verify="${"" + ../../system/extra/ca.crt}"
|
||||
)
|
||||
BASE_URL = "${url}"
|
||||
headers = {"Depth": "1"}
|
||||
resp = requests.request(
|
||||
"PROPFIND",
|
||||
BASE_URL,
|
||||
headers=headers,
|
||||
verify="${"" + ../../system/extra/ca.crt}"
|
||||
)
|
||||
|
||||
if resp.status_code not in (200, 207):
|
||||
print(f"Error: Http {resp.status_code}")
|
||||
sys.exit(1)
|
||||
if resp.status_code not in (200, 207):
|
||||
print(f"Error: Http {resp.status_code}")
|
||||
sys.exit(1)
|
||||
|
||||
root = ET.fromstring(resp.text)
|
||||
ns = {"d": "DAV:"}
|
||||
root = ET.fromstring(resp.text)
|
||||
ns = {"d": "DAV:"}
|
||||
|
||||
files = []
|
||||
for href in root.findall(".//d:href", ns):
|
||||
path = href.text
|
||||
if not path:
|
||||
continue
|
||||
filename = urllib.parse.unquote(path.split("/")[-1])
|
||||
files = []
|
||||
for href in root.findall(".//d:href", ns):
|
||||
path = href.text
|
||||
if not path:
|
||||
continue
|
||||
filename = urllib.parse.unquote(path.split("/")[-1])
|
||||
|
||||
if filename and not filename.endswith("/"):
|
||||
files.append(filename)
|
||||
if filename and not filename.endswith("/"):
|
||||
files.append(filename)
|
||||
|
||||
if not files:
|
||||
print("No files found")
|
||||
sys.exit(0)
|
||||
if not files:
|
||||
print("No files found")
|
||||
sys.exit(0)
|
||||
|
||||
rofi = subprocess.run(
|
||||
["rofi", "-i", "-dmenu", "-p", "Meme"],
|
||||
input="\n".join(files).encode(),
|
||||
stdout=subprocess.PIPE
|
||||
)
|
||||
rofi = subprocess.run(
|
||||
["rofi", "-i", "-dmenu", "-p", "Meme"],
|
||||
input="\n".join(files).encode(),
|
||||
stdout=subprocess.PIPE
|
||||
)
|
||||
|
||||
selected = rofi.stdout.decode().strip()
|
||||
if not selected:
|
||||
sys.exit(0)
|
||||
selected = rofi.stdout.decode().strip()
|
||||
if not selected:
|
||||
sys.exit(0)
|
||||
|
||||
url = BASE_URL + urllib.parse.quote(selected)
|
||||
tmpfile = os.path.join(tempfile.gettempdir(), selected)
|
||||
url = BASE_URL + urllib.parse.quote(selected)
|
||||
tmpfile = os.path.join(tempfile.gettempdir(), selected)
|
||||
|
||||
subprocess.run(["wget", "-q", "-O", tmpfile, url], check=True)
|
||||
subprocess.run(["wget", "-q", "-O", tmpfile, url], check=True)
|
||||
|
||||
with open(tmpfile, "rb") as f:
|
||||
subprocess.run("wl-copy", stdin=f)
|
||||
with open(tmpfile, "rb") as f:
|
||||
subprocess.run("wl-copy", stdin=f)
|
||||
|
||||
subprocess.run([
|
||||
"notify-send",
|
||||
"-i", tmpfile,
|
||||
"Meme Copied: ",
|
||||
f"{selected}"
|
||||
])
|
||||
''
|
||||
subprocess.run([
|
||||
"notify-send",
|
||||
"-i", tmpfile,
|
||||
"Meme Copied: ",
|
||||
f"{selected}"
|
||||
])
|
||||
''
|
||||
|
|
|
|||
0
home/scripts/mkWall.nix
Normal file → Executable file
0
home/scripts/ntfy.nix
Normal file → Executable file
0
home/scripts/rbwSelector.nix
Normal file → Executable file
0
home/scripts/record.nix
Normal file → Executable file
0
home/scripts/remoteRebuild.nix
Normal file → Executable file
0
home/scripts/rofiwall.nix
Normal file → Executable file
0
home/user/bitwarden.nix
Normal file → Executable file
0
home/user/config.nix
Normal file → Executable file
0
home/user/direnv.nix
Normal file → Executable file
0
home/user/environment.nix
Normal file → Executable file
0
home/user/firefox.nix
Normal file → Executable file
0
home/user/ghostty.nix
Normal file → Executable file
0
home/user/git.nix
Normal file → Executable file
0
home/user/gtk.nix
Normal file → Executable file
0
home/user/hypr/bind.nix
Normal file → Executable file
0
home/user/hypr/input.nix
Normal file → Executable file
0
home/user/hypr/window.nix
Normal file → Executable file
0
home/user/hypr/windowrule.nix
Normal file → Executable file
0
home/user/hypr/workspace.nix
Normal file → Executable file
0
home/user/hyprland.nix
Normal file → Executable file
0
home/user/internationalisation.nix
Normal file → Executable file
0
home/user/music-production.nix
Normal file → Executable file
18
home/user/nvf/default.nix
Normal file → Executable file
|
|
@ -7,8 +7,9 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (builtins) concatStringsSep;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
inherit (lib) concatStringsSep optionalString;
|
||||
inherit (lib) optionalString;
|
||||
|
||||
suda-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "vim-suda";
|
||||
|
|
@ -369,11 +370,11 @@ in
|
|||
formatter = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
formatters_by_ft = {
|
||||
nix = [ "nixfmt" ];
|
||||
};
|
||||
};
|
||||
# setupOpts = {
|
||||
# formatters_by_ft = {
|
||||
# nix = [ "nixfmt" ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -420,7 +421,10 @@ in
|
|||
nix = {
|
||||
enable = true;
|
||||
extraDiagnostics.enable = false;
|
||||
format.enable = false; # Manually configured in conform-nvim
|
||||
format = {
|
||||
type = [ "nixfmt" ];
|
||||
enable = true;
|
||||
};
|
||||
lsp.servers = [ "nixd" ];
|
||||
};
|
||||
sql.enable = true;
|
||||
|
|
|
|||
0
home/user/nvf/extra-lsp.nix
Normal file → Executable file
0
home/user/nvf/plugins/leetcode/default.nix
Normal file → Executable file
0
home/user/nvf/plugins/lualine/default.nix
Normal file → Executable file
0
home/user/nvf/plugins/snacks-nvim/default.nix
Normal file → Executable file
0
home/user/nvf/plugins/snacks-nvim/keymaps.nix
Normal file → Executable file
0
home/user/packages.nix
Normal file → Executable file
0
home/user/podman.nix
Normal file → Executable file
0
home/user/shell.nix
Normal file → Executable file
0
home/user/shellAlias.nix
Normal file → Executable file
0
home/user/shells/caelestia.nix
Normal file → Executable file
0
home/user/tmux.nix
Normal file → Executable file
0
home/user/virtualization.nix
Normal file → Executable file
0
home/user/vscode.nix
Normal file → Executable file
0
home/user/wallpaper-engine.nix
Normal file → Executable file
0
home/user/waybar.nix
Normal file → Executable file
0
home/user/wlogout.nix
Normal file → Executable file
0
home/user/wm-service.nix
Normal file → Executable file
0
home/user/yazi.nix
Normal file → Executable file
0
home/user/zellij.nix
Normal file → Executable file
0
home/user/zen-browser.nix
Normal file → Executable file
0
options/default.nix
Normal file → Executable file
0
options/systemconf.nix
Normal file → Executable file
0
pkgs/assets/discord.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 474 B |
0
pkgs/assets/peepoLeave.gif.base64
Normal file → Executable file
0
pkgs/fonts/dfkai-sb/default.nix
Normal file → Executable file
0
pkgs/fonts/sf-pro-display-bold/default.nix
Normal file → Executable file
0
pkgs/overlays/default.nix
Normal file → Executable file
0
pkgs/overlays/powerdns-admin.nix
Normal file → Executable file
0
pkgs/overlays/stalwart-mail/default.nix
Normal file → Executable file
0
pkgs/overlays/stalwart-mail/enable_root_ca.patch
Normal file → Executable file
0
pkgs/overlays/vesktop.nix
Normal file → Executable file
0
pkgs/patches/splash.patch
Normal file → Executable file
0
preview.png
Normal file → Executable file
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 3.1 MiB |
0
system/dev/dn-lap/common/boot.nix
Normal file → Executable file
0
system/dev/dn-lap/common/default.nix
Normal file → Executable file
43
system/dev/dn-lap/common/hardware-configuration.nix
Normal file → Executable file
|
|
@ -1,28 +1,42 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
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.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{
|
||||
device = "/dev/disk/by-label/BOOT";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/BOOT";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-label/swap"; }
|
||||
|
|
@ -36,6 +50,5 @@
|
|||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
|||
0
system/dev/dn-lap/default.nix
Normal file → Executable file
0
system/dev/dn-lap/games/default.nix
Normal file → Executable file
4
system/dev/dn-lap/home/default.nix
Normal file → Executable file
|
|
@ -55,10 +55,6 @@ in
|
|||
|
||||
imports = [
|
||||
../../../../home/presets/basic.nix
|
||||
(import ../../../../home/user/bitwarden.nix {
|
||||
email = "danny@net.dn";
|
||||
baseUrl = "https://bitwarden.net.dn";
|
||||
})
|
||||
|
||||
# waybar
|
||||
(import ../../../../home/user/waybar.nix {
|
||||
|
|
|
|||