Compare commits
483 Commits
bb3d875d77
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 846d33ac50 | |||
| 9a98e3256f | |||
| f525b68345 | |||
| 0c7cafdc17 | |||
| eff446334d | |||
| 97c84ff716 | |||
| f0860c2602 | |||
| 54d4d5aadf | |||
| 3b386828af | |||
| 300b407208 | |||
| 711b1f198e | |||
| fada73a69c | |||
| cd1392517a | |||
| 04e238810c | |||
| a727cf8722 | |||
| 8016b58416 | |||
| 1ccbb3eb6c | |||
| 55783a7780 | |||
| c0443e73e6 | |||
| 1316fe9169 | |||
| f5cba81ace | |||
| e6d45592df | |||
| f1637d0497 | |||
| ab691de708 | |||
| f8e4ddce82 | |||
| 64b5a8c65b | |||
| 41ebb79c2a | |||
| 068d260470 | |||
| b34ad76811 | |||
| c79f76efa1 | |||
| 87a4cc6455 | |||
| 0bcab64638 | |||
| 59fe61b835 | |||
| c25a1c26f5 | |||
| 5cc628cfd9 | |||
| 8b67d7b8fb | |||
| 69797b6b01 | |||
| 7853bc389d | |||
| a1417b9514 | |||
| dcc347a717 | |||
| 4b32b5a3e7 | |||
| a87eb1994f | |||
| bdac2cafee | |||
| 86a1071b1b | |||
| 11048faa79 | |||
| 58eec1d59d | |||
| 00a830c3c4 | |||
| 94a2ed6c8a | |||
| 42d2399c42 | |||
| 8704160c10 | |||
| 74d813c5e8 | |||
| 0c7291d3eb | |||
| 10e69d4eff | |||
| 72ecac11b7 | |||
| db8f72308b | |||
| 59a6dc79f0 | |||
| 297b993992 | |||
| 0df6aee231 | |||
| 33d139bdf6 | |||
| effeddf963 | |||
| 79c8e5061b | |||
| 1636b715b5 | |||
| c00be80234 | |||
| 7fb7498acc | |||
| 449dbcff24 | |||
| 317bc368e9 | |||
| d3689592e8 | |||
| e6a810d833 | |||
| 21579b281f | |||
| 68bdc0c85e | |||
| 64973efb33 | |||
| bed86c50dd | |||
| df6268f8c3 | |||
| 09ff97278c | |||
| 445e6a8c8b | |||
| b860c0ead1 | |||
| ed863b4ab1 | |||
| 498fd77851 | |||
| 19537a1499 | |||
| b7c9ca3ccc | |||
| 8c66096e81 | |||
| e6b2a1d3ee | |||
| 93b4b2730f | |||
| e9988b21ff | |||
| d6e9904bfc | |||
| aea1919a44 | |||
| da7ad42da9 | |||
| 13e5c8410e | |||
| c8cfd433ae | |||
| 60dd114bcc | |||
| ac12242060 | |||
| c3f12243d8 | |||
| e296f298b1 | |||
| f656be3dfb | |||
| eb5b08c8f0 | |||
| fa9ca0ec63 | |||
| fd10360294 | |||
| 0237820306 | |||
| 64b6b6b763 | |||
| 78b1b26b91 | |||
| 44eb6492f2 | |||
| 597f51e7b2 | |||
| c1684a80f7 | |||
| f3a90a0fe8 | |||
| 11089070ba | |||
| 8697469f5f | |||
| fa6abcfd98 | |||
| 7f0629f313 | |||
| 1a088bc501 | |||
| 0f70cf9bbc | |||
| fbf6864350 | |||
| b3058b25a6 | |||
| 1ec2681731 | |||
| 2c0bfcbcdd | |||
| 51942d5e10 | |||
| 6dbbe36327 | |||
| 2dec58998d | |||
| f3d0db4a63 | |||
| d4e2841833 | |||
| e1eb4569a8 | |||
| a9d1fd2316 | |||
| fc3ed73055 | |||
| 488a6437c3 | |||
| b40400ed71 | |||
| 1dcb262114 | |||
| 5e9b353529 | |||
| 12c0bd71dd | |||
| 930596db1a | |||
| 6643b584f9 | |||
| 2205f7ca57 | |||
| 784a3f213e | |||
| 98da646e59 | |||
| 12d8b7746b | |||
| 529e9f994f | |||
| be86d9b31b | |||
| 7ac91b21b3 | |||
| 851911f491 | |||
| a0da606694 | |||
| 8a8b48a6cc | |||
| 7dd49cd8e4 | |||
| a00a888676 | |||
| 536a76ca80 | |||
| 41b13580dc | |||
| 74b0d63f26 | |||
| e91def66b5 | |||
| 9325a6b079 | |||
| f9e66ff1a0 | |||
| 98c81001f7 | |||
| 002bd38906 | |||
| 1a52dd8041 | |||
| 67f75bcd97 | |||
| 1bba167d6d | |||
| f418f3dfa5 | |||
| 0c5ab6519d | |||
| e58d6118ea | |||
| aecbdb243d | |||
| 4cc510d584 | |||
| 1ab353746d | |||
| 05fd4f67b1 | |||
| d134f6e849 | |||
| 03c66ccc13 | |||
| dd44fd8b0c | |||
| 5226ade22c | |||
| e162e47b1d | |||
| 6541a307bc | |||
| 2be4a81c03 | |||
| 2d52f92795 | |||
| 3a47aa53d0 | |||
| 9b01209ef0 | |||
| 1372c8f1ce | |||
| b264cddcda | |||
| 8f3ded4029 | |||
| f15a6b92ae | |||
| 15f6577c84 | |||
| 48d8f13145 | |||
| 5de8af47ff | |||
| 75586a64f3 | |||
| 06edfb2795 | |||
| 0603de3f11 | |||
| 2f4419eb59 | |||
| 4bccbb92f4 | |||
| f41ca1867e | |||
| 9a0dfc4cca | |||
| d7875217bd | |||
| 89328fe7e7 | |||
| d9338b280e | |||
| 51f15e3305 | |||
| bbd135bad9 | |||
| 94ae66c7eb | |||
| b72a7f5660 | |||
| a73ed8e3f0 | |||
| 3e42c24435 | |||
| fbce7e8f2b | |||
| e0ae6fd31e | |||
| 6e70652719 | |||
| cc0b9cef25 | |||
| 8e07c32238 | |||
| d2ea2395f0 | |||
| b4d7f9c3d2 | |||
| 33cf8a4f0a | |||
| 94a1ca970f | |||
| 1238fa76db | |||
| 58e0b82520 | |||
| b4bac11cf9 | |||
| bb45b7b08a | |||
| 9a07fe0d59 | |||
| 5c8ebb84bb | |||
| 6dfacb91da | |||
| 128a560bb0 | |||
| 86fbc59bcf | |||
| 82e15df890 | |||
| a60a5b738b | |||
| 191a54670e | |||
| 7949acb8f0 | |||
| 11e881b1cc | |||
| 2223acef57 | |||
| b1d54ce420 | |||
| d3c63aa684 | |||
| dac6771f58 | |||
| cf784f3847 | |||
| e9c4339640 | |||
| 386c4d6561 | |||
| 66171880bc | |||
| 65430099bf | |||
| a65cfacb79 | |||
| c6a21aee85 | |||
| 514e4864ca | |||
| 69d16e38a8 | |||
| e86a839bd7 | |||
| 65f878b20d | |||
| b893475db6 | |||
| 1ada91d5ef | |||
| 42bf08084e | |||
| 50d192c809 | |||
| c028bad2a6 | |||
| 9b218f88fa | |||
| 276823d2aa | |||
| ab47a1ea52 | |||
| 4a7615b50c | |||
| ea37cbe865 | |||
| 8cc337ca0e | |||
| f99cb4f761 | |||
| 6abef03321 | |||
| f584fb2e32 | |||
| b7763031dd | |||
| 761624c21c | |||
| 43d87cb6b3 | |||
| be310b9ae7 | |||
| 39fb19f62e | |||
| f7041607d7 | |||
| 6ef3081bd1 | |||
| c69e8ed0ef | |||
| 9e3023c26b | |||
| 3a6c6673eb | |||
| c6baa8fc5b | |||
| 9a89b1ee6a | |||
| eda60a7fec | |||
| e69f8348be | |||
| 23b4035da1 | |||
| 02427aca71 | |||
| 03274e6e46 | |||
| bf994f7e13 | |||
| 3696bab033 | |||
| ea2a03037a | |||
| 0947941c11 | |||
| c48ecab2bd | |||
| 55b1cae63b | |||
| 76a072d274 | |||
| 346907fce4 | |||
| 86810b6105 | |||
| eba2b6e52f | |||
| 96e4476934 | |||
| 560f36b18e | |||
| 0c9d45ad39 | |||
| e39eeac850 | |||
| 46cc39c91f | |||
| 9f7b03679a | |||
| 96ab25c6ad | |||
| d530844886 | |||
| 8bb52d7df6 | |||
| 05d4280ad6 | |||
| 90b99dbf19 | |||
| f96f7182c4 | |||
| bd8b5f1327 | |||
| d13b59e7ac | |||
| 69b47de1fc | |||
| 06cb547197 | |||
| f0ec952442 | |||
| 2fab28204d | |||
| 9b32b8a6db | |||
| 71e6fbcef4 | |||
| 1b140efc19 | |||
| 8c21db0a08 | |||
| d5a7657410 | |||
| e5b8871d4e | |||
| a6808a984e | |||
| e5f6a4bc69 | |||
| eb857b8d03 | |||
| 712aaab720 | |||
| 778433b318 | |||
| 7440ef91b4 | |||
| 265a526c8b | |||
| 6cd5770452 | |||
| 66d2dde112 | |||
| 7974a95659 | |||
| 8b605d692f | |||
| b911a7931e | |||
| 574b2c058b | |||
| f4f69a4a25 | |||
| 640c5911f6 | |||
| be74b8caaf | |||
| be199acad3 | |||
| 3335542d54 | |||
| e008cd4d89 | |||
| 4dbffa89c2 | |||
| c89816839a | |||
| b5b1e07f3a | |||
| 340ea873ce | |||
| 1fa30bdb94 | |||
| f480a1f8c9 | |||
| fd3f3639bd | |||
| be4f0c5e6b | |||
| 46f546a0e0 | |||
| 22535fbbaf | |||
| 10cf6bba46 | |||
| f07c4ae0d3 | |||
| c1f8c704b3 | |||
| 0aa7f459dd | |||
| 15dfb83bb7 | |||
| 6b8a9a2152 | |||
| 482f1b5912 | |||
| 78277afa8a | |||
| 680454c6b2 | |||
| ec1a12e2a1 | |||
| 960af2d43b | |||
| a7e636e7a2 | |||
| 099b8e40b2 | |||
| 32bf3e0bc0 | |||
| 905de63f78 | |||
| c977f9d3a2 | |||
| bc666ecab5 | |||
| 8e0d66eff5 | |||
| c657f03912 | |||
| 2ec608c5ae | |||
| 6a3a44b2f0 | |||
| 1c96a54c52 | |||
| 30d55ebb5a | |||
| daf0ea1169 | |||
| bd20e9a29b | |||
| f8d3994ad9 | |||
| 3b376d7657 | |||
| 082f0bdcc5 | |||
| 137e3753da | |||
| c012163715 | |||
| be4b7c7d82 | |||
| 6c88dcd775 | |||
| a1f0bf30cd | |||
| 873230cfe3 | |||
| 1bf5944f11 | |||
| ff5e0d6bb2 | |||
| 795bca39f8 | |||
| 707e839517 | |||
| a9db2c09e7 | |||
| c657dae471 | |||
| d1237dab12 | |||
| 61bcc8776f | |||
| e05dc795b3 | |||
| eafa73042a | |||
| e36f899e93 | |||
| 671b5f92c0 | |||
| 4e3d74795b | |||
| 036969de6e | |||
| 793956deba | |||
| f3ecc2cfc6 | |||
| c212117355 | |||
| 7c61d646a6 | |||
| ea3c826c63 | |||
| f9eca3ebde | |||
| 10f8d192fd | |||
| d187ede4f6 | |||
| 2faa4e8618 | |||
| f967055296 | |||
| e665f8e46d | |||
| cc834fd85d | |||
| e4e6db94aa | |||
| c3883abef9 | |||
| 7097253186 | |||
| a08a4ac461 | |||
| ceb211ae51 | |||
| 2a5613bdee | |||
| 112782fa91 | |||
| f34031285b | |||
| f07d4a4060 | |||
| 5876d03f45 | |||
| ce6885a76e | |||
| d8058560b1 | |||
| 0c1f0a4639 | |||
| 2d09cfeea1 | |||
| 892ae40180 | |||
| 4a1cd4804d | |||
| 31fa6033b0 | |||
| b88445e529 | |||
| e3597c147a | |||
| e1e1b316cf | |||
| 184e939bb6 | |||
| 103c8e803a | |||
| 160ae56e03 | |||
| d178e340b4 | |||
| e2ec5cae11 | |||
| d9261385de | |||
| b0c84b9b27 | |||
| d036eb2512 | |||
| 83f48b3403 | |||
| 9d56a9bd10 | |||
| 86272d668d | |||
| 7f224bd6fc | |||
| 3d0bd560fb | |||
| 214c833821 | |||
| 8e519e9ad1 | |||
| a706f7c5cb | |||
| f49edaf975 | |||
| 8545cccd46 | |||
| 6e28e26d5a | |||
| 538b6051e2 | |||
| 91f6c637de | |||
| 0280315031 | |||
| 54dd1d2321 | |||
| 7d77da5619 | |||
| 668e6117fd | |||
| 9cb4e51316 | |||
| 43fde8741b | |||
| feec4dd416 | |||
| 9a1a025ec9 | |||
| 20731b35ca | |||
| 784a783fff | |||
| 65f7cad037 | |||
| bd1cfad6f9 | |||
| 154dd13425 | |||
| 504ae33109 | |||
| d07fbe229b | |||
| 632362235b | |||
| 9e11e7cb70 | |||
| 0829506111 | |||
| ee6893038a | |||
| 02156b877e | |||
| 64a2588a11 | |||
| b9d3b14b23 | |||
| f17ac4ce4f | |||
| bce5fdf68a | |||
| bd1323c2d8 | |||
| 5ad050b056 | |||
| d4a11b9ba2 | |||
| 86f16a2394 | |||
| 35fa4a55da | |||
| bb9f3f390f | |||
| e2de1c34e3 | |||
| 6f7f078dd9 | |||
| 8e3092fc0f | |||
| f5ba6bf991 | |||
| 2cd6e41686 | |||
| 0a87520fe7 | |||
| c5f1cb3624 | |||
| 1520b9872b | |||
| 6fba3fd698 | |||
| cf67655b3d | |||
| e441f92216 | |||
| bf5df9d23a | |||
| 4a79ac63d7 | |||
| f7c4059445 | |||
| cbd4b177ba | |||
| 97a62eaa24 | |||
| eeb29a80f4 | |||
| 6b98345a97 | |||
| c3457da03c | |||
| 85c96cd78b | |||
| 9698873c0b | |||
| 6be91c5617 | |||
| 32d95647f8 | |||
| c811e4d4df | |||
| 4eeed736ad | |||
| 325e4c63d5 | |||
| 6474b10e9f | |||
| 0ce461f34d |
20
.sops.yaml
@@ -3,25 +3,7 @@ keys:
|
|||||||
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
||||||
- &android age12pnf36uqesjmy3e0lythfnpwam3zg5mv8m936fc4jphy4ces2fdqwn0s74
|
- &android age12pnf36uqesjmy3e0lythfnpwam3zg5mv8m936fc4jphy4ces2fdqwn0s74
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: homebox/secrets.yaml$
|
- path_regex: system/secrets.yaml$
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *homebox
|
|
||||||
- path_regex: laptop/secrets.yaml$
|
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *laptop
|
|
||||||
- path_regex: pi4/secrets.yaml$
|
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *laptop
|
|
||||||
- path_regex: nathan/secrets.yaml$
|
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *laptop
|
|
||||||
- *homebox
|
|
||||||
- *android
|
|
||||||
- path_regex: system-config/secrets.yaml$
|
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *laptop
|
- *laptop
|
||||||
|
|||||||
12
flake-parts.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.home-manager.flakeModules.home-manager
|
||||||
|
inputs.disko.flakeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
}
|
||||||
790
flake.lock
generated
171
flake.nix
@@ -2,21 +2,15 @@
|
|||||||
description = "Nixos config flake";
|
description = "Nixos config flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
|
|
||||||
nixpkgs-us.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-us.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-on-droid = {
|
|
||||||
url = "github:nix-community/nix-on-droid";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.home-manager.follows = "home-manager";
|
|
||||||
};
|
|
||||||
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -27,160 +21,31 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
|
||||||
firefox-addons = {
|
firefox-addons = {
|
||||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
|
||||||
|
|
||||||
#simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
|
||||||
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
|
||||||
nixvim.url = "git+https://gitea.blunkall.us/Blunkall-Technologies/Moirai";
|
nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
||||||
|
#nixvim.url = "git+file:///home/nathan/Projects/Moirai";
|
||||||
|
|
||||||
|
aurora.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Aurora";
|
||||||
|
#aurora.url = "git+file:///home/nathan/Projects/Aurora";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... } @ inputs: {
|
outputs = { ... } @ inputs:
|
||||||
|
inputs.flake-parts.lib.mkFlake { inherit inputs; }
|
||||||
|
(inputs.import-tree [
|
||||||
nixosConfigurations = {
|
./profiles
|
||||||
|
./homes
|
||||||
homebox = nixpkgs.lib.nixosSystem {
|
./system
|
||||||
specialArgs = {
|
./templates/default.nix
|
||||||
inputs = inputs // {
|
./flake-parts.nix
|
||||||
nathan = import ./home-manager/users/nathan;
|
]);
|
||||||
home-manager-config = import ./home-manager;
|
|
||||||
inherit self;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/homebox
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
laptop = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = import ./home-manager/users/nathan;
|
|
||||||
home-manager-config = import ./home-manager;
|
|
||||||
inherit self;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/laptop
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
jesstop = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/jesstop
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
pi4 = {
|
|
||||||
system = "aarch64-linux";
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = import ./home-manager/users/nathan;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/pi4
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
live = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = import ./home-manager/users/nathan;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/live
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
container = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = import ./home-manager/users/nathan;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/containers/nathan
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
iso = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = import ./home-manager/users/nathan;
|
|
||||||
home-manager-config = import ./home-manager;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/iso
|
|
||||||
./system-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixOnDroidConfigurations.default = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
system = "aarch64-linux";
|
|
||||||
overlays = [ inputs.nix-on-droid.overlays.default ];
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
./system-config/configuration/android
|
|
||||||
];
|
|
||||||
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nathan = import ./home-manager/users/nathan;
|
|
||||||
home-manager-config = import ./home-manager;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
homeConfigurations = {
|
|
||||||
nathan = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
system = builtins.currentSystem;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
|
||||||
./home-manager
|
|
||||||
{
|
|
||||||
homeconfig = {
|
|
||||||
username = "nathan";
|
|
||||||
graphical = false;
|
|
||||||
minimal = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
iso = self.nixosConfigurations.iso.config.system.build.isoImage;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./programs
|
|
||||||
./services
|
|
||||||
];
|
|
||||||
|
|
||||||
options.homeconfig = with lib; {
|
|
||||||
host = mkOption {
|
|
||||||
type = with types; nullOr str;
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
name = mkOption {
|
|
||||||
type = with types; nullOr str;
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
graphical = mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
standalone.enable = mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
home.username = lib.mkDefault config.homeconfig.name;
|
|
||||||
|
|
||||||
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
||||||
|
|
||||||
programs.home-manager.enable = config.homeconfig.standalone.enable;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.calcurse.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.calcurse.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
calcurse
|
|
||||||
libnotify
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./git
|
|
||||||
./nh
|
|
||||||
./hyprland
|
|
||||||
./hyprpanel
|
|
||||||
./terminal
|
|
||||||
./rofi
|
|
||||||
./pywal
|
|
||||||
./hyprlock
|
|
||||||
./calcurse
|
|
||||||
./firefox
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf (config.homeconfig.host != "android") {
|
|
||||||
|
|
||||||
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.firefox.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.firefox.enable {
|
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "${config.programs.firefox.package}/bin/firefox";
|
|
||||||
|
|
||||||
home.packages = lib.mkIf config.homeconfig.wal.enable [
|
|
||||||
pkgs.pywalfox-native
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file.".mozilla/native-messaging-hosts/pywalfox.json".text = let
|
|
||||||
pywalfox-wrapper = pkgs.writeShellScriptBin "pywalfox-wrapper" ''
|
|
||||||
${pkgs.pywalfox-native}/bin/pywalfox start
|
|
||||||
'';
|
|
||||||
in lib.replaceStrings [ "<path>" ] [
|
|
||||||
"${pywalfox-wrapper}/bin/pywalfox-wrapper"
|
|
||||||
] (lib.readFile "${pkgs.pywalfox-native}/lib/python3.12/site-packages/pywalfox/assets/manifest.json");
|
|
||||||
|
|
||||||
|
|
||||||
programs.firefox = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.firefox;
|
|
||||||
|
|
||||||
profiles.nathan = {
|
|
||||||
search = {
|
|
||||||
default = "ddg";
|
|
||||||
privateDefault = "ddg";
|
|
||||||
force = true;
|
|
||||||
};
|
|
||||||
bookmarks = {
|
|
||||||
force = true;
|
|
||||||
settings = [
|
|
||||||
{
|
|
||||||
name = "toolbar";
|
|
||||||
toolbar = true;
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "NixOS Search - Packages";
|
|
||||||
url = "https://search.nixos.org/packages";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
extensions.packages = with inputs.firefox-addons.packages.${pkgs.system}; [
|
|
||||||
ublock-origin
|
|
||||||
keepassxc-browser
|
|
||||||
pywalfox
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.git.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.git.enable {
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
secrets = {
|
|
||||||
"git/username" = {};
|
|
||||||
"git/email" = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
templates.gitconfig.content = ''
|
|
||||||
[user]
|
|
||||||
name = "${config.sops.placeholder."git/username"}"
|
|
||||||
email = "${config.sops.placeholder."git/email"}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
includes = [
|
|
||||||
{ path = "${config.sops.templates.gitconfig.path}"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
init = {
|
|
||||||
defaultBranch = "master";
|
|
||||||
};
|
|
||||||
url = {
|
|
||||||
"ssh://gitea@gitea.blunkall.us/" = {
|
|
||||||
insteadOf = [
|
|
||||||
"blunkall:"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprland.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprland.enable {
|
|
||||||
|
|
||||||
home.sessionVariables.NIX_OZONE_WL = "1";
|
|
||||||
|
|
||||||
programs.kitty.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
pyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
home.activation.extraHyprFile = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
|
||||||
if [[ ! -f ${config.home.homeDirectory}/.config/hypr/otf.conf ] && [ -z ''$DRY_RUN ]]; then
|
|
||||||
touch ${config.home.homeDirectory}/.config/hypr/otf.conf
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
variables = [ "--all" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = (if config.homeconfig.host == "laptop" then ''
|
|
||||||
monitor=eDP-1,1920x1080@300,0x0,1
|
|
||||||
bind = CTRL SHIFT, XF86Launch2, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi
|
|
||||||
'' else if config.homeconfig.host == "homebox" then ''
|
|
||||||
monitor=HDMI-A-2,1920x1080@60,0x0,1
|
|
||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
|
||||||
exec-once=hyprctl output create headless HEADLESS-2
|
|
||||||
exec-once=hyprctl keyword monitor HDMI-A-2,disable
|
|
||||||
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
|
||||||
'' else if config.homeconfig.host == "container" then ''
|
|
||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
|
||||||
exec-once=hyprctl output create headless HEADLESS-2
|
|
||||||
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
|
||||||
'' else ''
|
|
||||||
monitor= , prefered, auto, 1
|
|
||||||
'') + (if config.homeconfig.hyprpanel.enable then ''
|
|
||||||
bind = , Print, exec, bash -c ${pkgs.hyprpanel}/share/scripts/screenshot.sh"
|
|
||||||
'' else ''
|
|
||||||
bind = , Print, exec, grim -g "$(slurp)"
|
|
||||||
'') + ''
|
|
||||||
source = ${config.home.homeDirectory}/.config/hypr/main.conf
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprlock.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprlock.enable {
|
|
||||||
|
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hypridle = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprpanel.enable = with lib; mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprpanel.enable {
|
|
||||||
|
|
||||||
programs.hyprpanel = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.nh.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.nh.enable {
|
|
||||||
|
|
||||||
programs.nh = {
|
|
||||||
enable = true;
|
|
||||||
flake = "${config.home.homeDirectory}/Projects/Olympus";
|
|
||||||
|
|
||||||
clean = {
|
|
||||||
enable = true;
|
|
||||||
dates = "weekly";
|
|
||||||
extraArgs = "--keep 5 --keep-since 5d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.wal.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wal.enable {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.pywal
|
|
||||||
|
|
||||||
pywal16
|
|
||||||
imagemagick
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.rofi.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.rofi.enable {
|
|
||||||
programs.rofi = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.rofi-wayland;
|
|
||||||
|
|
||||||
cycle = true;
|
|
||||||
|
|
||||||
theme = "/home/nathan/.cache/wal/colors-rofi-dark.rasi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ oh-my-posh ];
|
|
||||||
|
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza";
|
|
||||||
ll = "ls -l";
|
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
|
||||||
|
|
||||||
vi = "nvim";
|
|
||||||
vim = "nvim";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
bashrcExtra = ''
|
|
||||||
source ${pkgs.blesh}/share/blesh/ble.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
initExtra = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
||||||
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
||||||
'') else (lib.mkBefore ''
|
|
||||||
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
|
||||||
'');
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.bat = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs.bat-extras; [
|
|
||||||
batman
|
|
||||||
batpipe
|
|
||||||
batgrep
|
|
||||||
batdiff
|
|
||||||
batwatch
|
|
||||||
prettybat
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./bat
|
|
||||||
./bash
|
|
||||||
./eza
|
|
||||||
./fzf
|
|
||||||
./tmux
|
|
||||||
./kitty
|
|
||||||
./zoxide
|
|
||||||
./zsh
|
|
||||||
./ssh
|
|
||||||
./ohmyposh
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.eza = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
"--color=auto"
|
|
||||||
];
|
|
||||||
|
|
||||||
git = true;
|
|
||||||
|
|
||||||
icons = "auto";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.fzf = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
tmux = {
|
|
||||||
#enableShellIntegration = true;
|
|
||||||
|
|
||||||
#shellIntegrationOptions = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
font = {
|
|
||||||
name = "FiraCode Nerd Font";
|
|
||||||
size = 12;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
|
|
||||||
confirm_os_window_close 0
|
|
||||||
|
|
||||||
include ${config.home.homeDirectory}/.cache/wal/colors-kitty.conf
|
|
||||||
|
|
||||||
disable_ligatures never
|
|
||||||
|
|
||||||
dynamic_background_opacity yes
|
|
||||||
|
|
||||||
tab_bar_edge top
|
|
||||||
|
|
||||||
map ctrl+shift+t new_tab
|
|
||||||
map ctrl+shift+w close_tab
|
|
||||||
|
|
||||||
map ctrl+tab next_tab
|
|
||||||
map ctrl+shift+tab previous_tab
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.ssh = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.tmux = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
clock24 = true;
|
|
||||||
|
|
||||||
mouse = true;
|
|
||||||
|
|
||||||
baseIndex = 1;
|
|
||||||
|
|
||||||
keyMode = "vi";
|
|
||||||
|
|
||||||
prefix = "C-b";
|
|
||||||
|
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.zoxide = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
options = [
|
|
||||||
"--cmd cd"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza";
|
|
||||||
ll = "ls -l";
|
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
|
||||||
|
|
||||||
vi = "nvim";
|
|
||||||
vim = "nvim";
|
|
||||||
|
|
||||||
python = "python3.13";
|
|
||||||
python3 = "python3.13";
|
|
||||||
};
|
|
||||||
|
|
||||||
history = {
|
|
||||||
size = 5000;
|
|
||||||
ignoreAllDups = true;
|
|
||||||
ignoreSpace = true;
|
|
||||||
share = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{}: {}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./mpd
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
homeconfig.mpd.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.mpd.enable {
|
|
||||||
services.mpd = {
|
|
||||||
enable = true;
|
|
||||||
network.startWhenNeeded = true;
|
|
||||||
network.port = 6600;
|
|
||||||
network.listenAddress = "127.0.0.1";
|
|
||||||
musicDirectory = "/home/nathan/Music";
|
|
||||||
extraConfig = ''
|
|
||||||
audio_output {
|
|
||||||
type "pipewire"
|
|
||||||
name "Audio1"
|
|
||||||
}
|
|
||||||
audio_output {
|
|
||||||
type "fifo"
|
|
||||||
name "visualizer"
|
|
||||||
path "/tmp/mpd.fifo"
|
|
||||||
format "44100:16:1"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.mpdris2 = {
|
|
||||||
enable = true;
|
|
||||||
mpd.host = "127.0.0.1";
|
|
||||||
mpd.port = 6600;
|
|
||||||
package = pkgs.mpdris2;
|
|
||||||
mpd.musicDirectory = "/home/nathan/Music";
|
|
||||||
notifications = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
# ./programs
|
|
||||||
# ./services
|
|
||||||
./packages
|
|
||||||
./dotfiles
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
homeconfig = {
|
|
||||||
mpd.enable = lib.mkDefault true;
|
|
||||||
calcurse.enable = lib.mkDefault true;
|
|
||||||
git.enable = lib.mkDefault true;
|
|
||||||
nh.enable = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
|
|
||||||
home.pointerCursor = lib.mkIf config.homeconfig.graphical {
|
|
||||||
gtk.enable = true;
|
|
||||||
package = pkgs.bibata-cursors;
|
|
||||||
name = "Bibata-Modern-Classic";
|
|
||||||
size = 16;
|
|
||||||
};
|
|
||||||
|
|
||||||
gtk = lib.mkIf config.homeconfig.graphical {
|
|
||||||
enable = true;
|
|
||||||
theme.name = "Tokyonight-Dark";
|
|
||||||
theme.package = pkgs.tokyonight-gtk-theme;
|
|
||||||
iconTheme.package = pkgs.rose-pine-icon-theme;
|
|
||||||
iconTheme.name = "rose-pine-moon";
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
|
||||||
defaultSopsFile = ./secrets.yaml;
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = lib.mkIf config.homeconfig.standalone.enable {
|
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
|
|
||||||
builders-use-substituters = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.mpris-proxy.enable = true;
|
|
||||||
|
|
||||||
programs.ssh = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
matchBlocks = {
|
|
||||||
"builder" = {
|
|
||||||
hostname = "blunkall.us";
|
|
||||||
user = "remote-builder";
|
|
||||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
|
||||||
port = 2222;
|
|
||||||
};
|
|
||||||
|
|
||||||
"remote" = {
|
|
||||||
hostname = "blunkall.us";
|
|
||||||
user = "nathan";
|
|
||||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
|
||||||
port = 2222;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
|
||||||
".config/hyprpanel" = lib.mkIf config.homeconfig.hyprpanel.enable { source = ./hyprpanel; recursive = true; };
|
|
||||||
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
|
||||||
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
|
||||||
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
general {
|
|
||||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
|
||||||
after_sleep_cmd = hyprctl --instance 0 dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 150 # 2.5min.
|
|
||||||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
|
||||||
on-resume = brightnessctl -r # monitor backlight restore.
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 300 # 5min
|
|
||||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 330 # 5.5min
|
|
||||||
on-timeout = hyprctl --instance 0 dispatch dpms off # screen off when timeout has passed
|
|
||||||
on-resume = hyprctl --instance 0 dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 1800 # 30min
|
|
||||||
on-timeout = systemctl suspend # suspend pc
|
|
||||||
}
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
# sample hyprlock.conf
|
|
||||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
|
||||||
#
|
|
||||||
# rendered text in all widgets supports pango markup (e.g. <b> or <i> tags)
|
|
||||||
# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks
|
|
||||||
#
|
|
||||||
# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace
|
|
||||||
#
|
|
||||||
# you can get started by copying this config to ~/.config/hypr/hyprlock.conf
|
|
||||||
#
|
|
||||||
|
|
||||||
$font = Monospace
|
|
||||||
|
|
||||||
general {
|
|
||||||
hide_cursor = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# uncomment to enable fingerprint authentication
|
|
||||||
# auth {
|
|
||||||
# fingerprint {
|
|
||||||
# enabled = true
|
|
||||||
# ready_message = Scan fingerprint to unlock
|
|
||||||
# present_message = Scanning...
|
|
||||||
# retry_delay = 250 # in milliseconds
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = true
|
|
||||||
bezier = linear, 1, 1, 0, 0
|
|
||||||
animation = fadeIn, 1, 5, linear
|
|
||||||
animation = fadeOut, 1, 5, linear
|
|
||||||
animation = inputFieldDots, 1, 2, linear
|
|
||||||
}
|
|
||||||
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = screenshot
|
|
||||||
blur_passes = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 20%, 5%
|
|
||||||
outline_thickness = 3
|
|
||||||
inner_color = rgba(0, 0, 0, 0.0) # no fill
|
|
||||||
|
|
||||||
outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg
|
|
||||||
fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg
|
|
||||||
|
|
||||||
font_color = rgb(143, 143, 143)
|
|
||||||
fade_on_empty = false
|
|
||||||
rounding = 15
|
|
||||||
|
|
||||||
font_family = $font
|
|
||||||
placeholder_text = Input password...
|
|
||||||
fail_text = $PAMFAIL
|
|
||||||
|
|
||||||
# uncomment to use a letter instead of a dot to indicate the typed password
|
|
||||||
# dots_text_format = *
|
|
||||||
# dots_size = 0.4
|
|
||||||
dots_spacing = 0.3
|
|
||||||
|
|
||||||
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
|
|
||||||
# hide_input = true
|
|
||||||
|
|
||||||
position = 0, -20
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
|
|
||||||
font_size = 90
|
|
||||||
font_family = $font
|
|
||||||
|
|
||||||
position = -30, 0
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# DATE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds
|
|
||||||
font_size = 25
|
|
||||||
font_family = $font
|
|
||||||
|
|
||||||
position = -30, -150
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = $LAYOUT[en,ru]
|
|
||||||
font_size = 24
|
|
||||||
onclick = hyprctl switchxkblayout all next
|
|
||||||
|
|
||||||
position = 250, -20
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
[pyprland]
|
|
||||||
plugins = [
|
|
||||||
"scratchpads"
|
|
||||||
]
|
|
||||||
|
|
||||||
[scratchpads.nvim]
|
|
||||||
animation = "fromTop"
|
|
||||||
command = "kitty --class scratchpad-nvim -e nvim ~/Projects"
|
|
||||||
lazy = false
|
|
||||||
class = "scratchpad"
|
|
||||||
margin = 100
|
|
||||||
multi = true
|
|
||||||
excludes = "*"
|
|
||||||
|
|
||||||
[scratchpads.kitty]
|
|
||||||
animation = "fromBottom"
|
|
||||||
command = "kitty --class scratchpad -e tmux"
|
|
||||||
class = "scratchpad"
|
|
||||||
lazy = false
|
|
||||||
margin = 100
|
|
||||||
multi = true
|
|
||||||
excludes = "*"
|
|
||||||
|
|
||||||
[scratchpads.calendar]
|
|
||||||
animation = "fromTop"
|
|
||||||
command = "kitty --class scratchpad -e calcurse"
|
|
||||||
class = "scratchpad"
|
|
||||||
lazy = false
|
|
||||||
margin = 100
|
|
||||||
multi = true
|
|
||||||
excludes = "*"
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
{
|
|
||||||
"theme.font.name": "FiraCode Nerd Font Mono",
|
|
||||||
"theme.font.label": "FiraCode Nerd Font Mono Medium",
|
|
||||||
"theme.bar.floating": true,
|
|
||||||
"bar.layouts": {
|
|
||||||
"0": {
|
|
||||||
"left": [
|
|
||||||
"dashboard",
|
|
||||||
"workspaces",
|
|
||||||
"windowtitle",
|
|
||||||
"submap",
|
|
||||||
"kbinput"
|
|
||||||
],
|
|
||||||
"middle": [
|
|
||||||
"volume",
|
|
||||||
"battery",
|
|
||||||
"hyprsunset",
|
|
||||||
"clock",
|
|
||||||
"hypridle",
|
|
||||||
"network",
|
|
||||||
"bluetooth"
|
|
||||||
],
|
|
||||||
"right": [
|
|
||||||
"ram",
|
|
||||||
"storage",
|
|
||||||
"systray",
|
|
||||||
"cava",
|
|
||||||
"notifications",
|
|
||||||
"power"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"1": {
|
|
||||||
"left": [
|
|
||||||
"dashboard",
|
|
||||||
"workspaces",
|
|
||||||
"windowtitle"
|
|
||||||
],
|
|
||||||
"middle": [
|
|
||||||
"media"
|
|
||||||
],
|
|
||||||
"right": [
|
|
||||||
"volume",
|
|
||||||
"clock",
|
|
||||||
"notifications"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"2": {
|
|
||||||
"left": [
|
|
||||||
"dashboard",
|
|
||||||
"workspaces",
|
|
||||||
"windowtitle"
|
|
||||||
],
|
|
||||||
"middle": [
|
|
||||||
"media"
|
|
||||||
],
|
|
||||||
"right": [
|
|
||||||
"volume",
|
|
||||||
"clock",
|
|
||||||
"notifications"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"theme.bar.opacity": 50,
|
|
||||||
"wallpaper.image": "/nix/store/ph7zbz3pfc1z3yr8blyp2gvmpd111hnm-hm_Wallpaper/bluescape.jpg",
|
|
||||||
"wallpaper.enable": true,
|
|
||||||
"theme.matugen_settings.scheme_type": "content",
|
|
||||||
"theme.matugen_settings.variation": "standard_2",
|
|
||||||
"theme.matugen": true,
|
|
||||||
"bar.launcher.autoDetectIcon": true,
|
|
||||||
"bar.network.truncation_size": 10,
|
|
||||||
"bar.bluetooth.label": false,
|
|
||||||
"bar.clock.format": "%A %H:%M:%S %m/%d/%C%y",
|
|
||||||
"bar.notifications.show_total": true,
|
|
||||||
"bar.notifications.hideCountWhenZero": true,
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut2.command": "spotify",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.command": "$BROWSER",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.tooltip": "Browser",
|
|
||||||
"menus.dashboard.shortcuts.left.shortcut1.icon": "",
|
|
||||||
"menus.dashboard.directories.enabled": false,
|
|
||||||
"menus.dashboard.stats.enable_gpu": true,
|
|
||||||
"menus.power.lowBatteryNotification": true,
|
|
||||||
"bar.customModules.cava.leftClick": "menu:media",
|
|
||||||
"bar.customModules.cava.showIcon": false,
|
|
||||||
"bar.customModules.hypridle.label": false,
|
|
||||||
"bar.customModules.hyprsunset.label": false,
|
|
||||||
"bar.customModules.hyprsunset.temperature": "4000k",
|
|
||||||
"bar.customModules.netstat.dynamicIcon": true,
|
|
||||||
"bar.customModules.netstat.label": true,
|
|
||||||
"bar.workspaces.show_numbered": true,
|
|
||||||
"bar.workspaces.numbered_active_indicator": "highlight",
|
|
||||||
"bar.workspaces.ignored": "-\\d+",
|
|
||||||
"menus.clock.time.military": true,
|
|
||||||
"menus.clock.weather.enabled": false
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
$foregroundCol = 0xff{foreground.strip}
|
|
||||||
$backgroundCol = 0xff{background.strip}
|
|
||||||
$color0 = 0xff{color0.strip}
|
|
||||||
$color1 = 0xff{color1.strip}
|
|
||||||
$color2 = 0xff{color2.strip}
|
|
||||||
$color3 = 0xff{color3.strip}
|
|
||||||
$color4 = 0xff{color4.strip}
|
|
||||||
$color5 = 0xff{color5.strip}
|
|
||||||
$color6 = 0xff{color6.strip}
|
|
||||||
$color7 = 0xff{color7.strip}
|
|
||||||
$color8 = 0xff{color8.strip}
|
|
||||||
$color9 = 0xff{color9.strip}
|
|
||||||
$color10 = 0xff{color10.strip}
|
|
||||||
$color11 = 0xff{color11.strip}
|
|
||||||
$color12 = 0xff{color12.strip}
|
|
||||||
$color13 = 0xff{color13.strip}
|
|
||||||
$color14 = 0xff{color14.strip}
|
|
||||||
$color15 = 0xff{color15.strip}
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
|
|
||||||
pkgs-us = import inputs.nixpkgs-us {
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
|
|
||||||
in {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./scripts
|
|
||||||
];
|
|
||||||
|
|
||||||
options.homeconfig.minimal = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
nixpkgs.config = lib.mkIf (!config.homeconfig.minimal) {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; ([
|
|
||||||
kjv
|
|
||||||
openssh
|
|
||||||
sops
|
|
||||||
killall
|
|
||||||
btop
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
rsync
|
|
||||||
curl
|
|
||||||
wget
|
|
||||||
(python313.withPackages (ps: with ps; [
|
|
||||||
gpustat
|
|
||||||
numpy
|
|
||||||
matplotlib
|
|
||||||
scipy
|
|
||||||
pandas
|
|
||||||
pyaudio
|
|
||||||
pyusb
|
|
||||||
debugpy
|
|
||||||
requests
|
|
||||||
]))
|
|
||||||
] ++ (if config.homeconfig.graphical then [
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
xfce.thunar
|
|
||||||
wl-clipboard
|
|
||||||
blueberry
|
|
||||||
lxqt.lxqt-policykit
|
|
||||||
] else []) ++ (if !config.homeconfig.minimal then [
|
|
||||||
cava
|
|
||||||
android-tools
|
|
||||||
neovim-remote
|
|
||||||
gcc
|
|
||||||
zulu
|
|
||||||
fastfetch
|
|
||||||
ncmpcpp
|
|
||||||
playerctl
|
|
||||||
mpc-cli
|
|
||||||
ffmpeg
|
|
||||||
|
|
||||||
] else []) ++ (if !config.homeconfig.minimal && config.homeconfig.graphical then [
|
|
||||||
handbrake
|
|
||||||
quickemu
|
|
||||||
bottles
|
|
||||||
|
|
||||||
brightnessctl
|
|
||||||
libdbusmenu-gtk3
|
|
||||||
lmms
|
|
||||||
|
|
||||||
#unfree {
|
|
||||||
geogebra
|
|
||||||
spotify
|
|
||||||
discord
|
|
||||||
#}
|
|
||||||
pkgs-us.rustdesk-flutter
|
|
||||||
pkgs-us.mpv
|
|
||||||
vlc
|
|
||||||
pavucontrol
|
|
||||||
rpi-imager
|
|
||||||
tigervnc
|
|
||||||
keepassxc
|
|
||||||
|
|
||||||
#3D modeling/printing
|
|
||||||
blender
|
|
||||||
freecad-wayland
|
|
||||||
cura-appimage
|
|
||||||
|
|
||||||
#productivity
|
|
||||||
libreoffice
|
|
||||||
|
|
||||||
#games
|
|
||||||
prismlauncher
|
|
||||||
] else []));
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
homeconfig.scripts.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.scripts.enable {
|
|
||||||
home.packages = [
|
|
||||||
|
|
||||||
#scripts
|
|
||||||
(pkgs.writeShellScriptBin "_systemRebuild" ''
|
|
||||||
${pkgs.nh}/bin/nh os switch --ask
|
|
||||||
echo //////Enter to close//////
|
|
||||||
read
|
|
||||||
'')
|
|
||||||
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "randWallpaper" ''
|
|
||||||
file=$(ls /home/nathan/Pictures/Wallpaper/ | shuf -n 1)
|
|
||||||
setWallpaper /home/nathan/Pictures/Wallpaper/$file
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "setWallpaper" ''
|
|
||||||
img=''$(realpath ''${1:-~/.config/background})
|
|
||||||
chmod 600 ~/.config/background
|
|
||||||
${pkgs.hyprpanel}/bin/hyprpanel sw ''$img
|
|
||||||
changeColors ''$img ''$2
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "changeColors" ''
|
|
||||||
|
|
||||||
if [[ $(ls ~/.config/ | grep bga) != bga ]]; then
|
|
||||||
echo 100 > ~/.config/bga
|
|
||||||
fi
|
|
||||||
|
|
||||||
alpha=''${2:-`cat ~/.config/bga`}
|
|
||||||
|
|
||||||
img=''$(realpath ''${1:-~/.config/background})
|
|
||||||
|
|
||||||
if [[ $alpha -lt 0 ]]; then
|
|
||||||
$alpha=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $alpha -gt 100 ]]; then
|
|
||||||
$alpha=100
|
|
||||||
fi
|
|
||||||
|
|
||||||
${pkgs.pywal16}/bin/wal -i $img -a $alpha --cols16 -n
|
|
||||||
|
|
||||||
echo $alpha > ~/.config/bga
|
|
||||||
|
|
||||||
sleep 0.4
|
|
||||||
|
|
||||||
${pkgs.pywalfox-native}/bin/pywalfox update &
|
|
||||||
|
|
||||||
[[ $(pidof cava) != "" ]] && pkill -USR1 cava &
|
|
||||||
|
|
||||||
for i in $(ls /run/user/1000 | grep nvim); do ${pkgs.neovim-remote}/bin/nvr -s --servername /run/user/1000/$i --remote-send '<cmd>colorscheme pywal<CR>'; done
|
|
||||||
|
|
||||||
pkill -USR1 kitty
|
|
||||||
'')
|
|
||||||
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "onSystemStart" ''
|
|
||||||
if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then
|
|
||||||
hyprctl dispatch exec "randWallpaper && chmod 600 ${config.home.homeDirectory}/.config/background"
|
|
||||||
fi
|
|
||||||
hyprctl dispatch exec ${pkgs.pyprland}/bin/pypr
|
|
||||||
hyprctl dispatch exec ${pkgs.netbird-ui}/bin/netbird-ui
|
|
||||||
hyprctl dispatch exec ${pkgs.hyprpolkitagent}/libexec/hyprpolkitagent
|
|
||||||
hyprctl setcursor Bibata-Modern-Classic 16
|
|
||||||
sleep 3
|
|
||||||
hyprctl reload
|
|
||||||
#tmux new-session -s hyprland
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "colorPrefix" ''
|
|
||||||
exec -a "$0" "$@" &
|
|
||||||
sleep 0.4 && changeColors &
|
|
||||||
'')
|
|
||||||
|
|
||||||
] ++ (if config.homeconfig.standalone.enable then [
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "_homeRebuild" ''
|
|
||||||
${pkgs.nh}/bin/nh home switch --ask /home/nathan/Projects/Olympus
|
|
||||||
echo //////Enter to close//////
|
|
||||||
read
|
|
||||||
'')
|
|
||||||
] else []);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.calcurse.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.calcurse.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
calcurse
|
|
||||||
libnotify
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./ags
|
|
||||||
./git
|
|
||||||
./nh
|
|
||||||
./hyprland
|
|
||||||
./terminal
|
|
||||||
./rofi
|
|
||||||
./pywal
|
|
||||||
./swaylock
|
|
||||||
./calcurse
|
|
||||||
./firefox
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.firefox.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.firefox.enable {
|
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "${config.programs.firefox.package}/bin/firefox";
|
|
||||||
|
|
||||||
home.packages = lib.mkIf config.homeconfig.wal.enable [
|
|
||||||
pkgs.pywalfox-native
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file.".mozilla/native-messaging-hosts/pywalfox.json".text = let
|
|
||||||
pywalfox-wrapper = pkgs.writeShellScriptBin "pywalfox-wrapper" ''
|
|
||||||
${pkgs.pywalfox-native}/bin/pywalfox start
|
|
||||||
'';
|
|
||||||
in lib.replaceStrings [ "<path>" ] [
|
|
||||||
"${pywalfox-wrapper}/bin/pywalfox-wrapper"
|
|
||||||
] (lib.readFile "${pkgs.pywalfox-native}/lib/python3.12/site-packages/pywalfox/assets/manifest.json");
|
|
||||||
|
|
||||||
|
|
||||||
programs.firefox = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.firefox;
|
|
||||||
|
|
||||||
profiles.nathan = {
|
|
||||||
search = {
|
|
||||||
default = "ddg";
|
|
||||||
privateDefault = "ddg";
|
|
||||||
};
|
|
||||||
bookmarks = {
|
|
||||||
force = true;
|
|
||||||
settings = [
|
|
||||||
{
|
|
||||||
name = "toolbar";
|
|
||||||
toolbar = true;
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "NixOS Search - Packages";
|
|
||||||
url = "https://search.nixos.org/packages";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
extensions.packages = with inputs.firefox-addons.packages.${pkgs.system}; [
|
|
||||||
ublock-origin
|
|
||||||
keepassxc-browser
|
|
||||||
pywalfox
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.git.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.git.enable {
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
secrets = {
|
|
||||||
"git/username" = {};
|
|
||||||
"git/email" = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
templates.gitconfig.content = ''
|
|
||||||
[user]
|
|
||||||
name = "${config.sops.placeholder."git/username"}"
|
|
||||||
email = "${config.sops.placeholder."git/email"}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
includes = [
|
|
||||||
{ path = "${config.sops.templates.gitconfig.path}"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
init = {
|
|
||||||
defaultBranch = "master";
|
|
||||||
};
|
|
||||||
url = {
|
|
||||||
"ssh://gitea@gitea.blunkall.us/" = {
|
|
||||||
insteadOf = [
|
|
||||||
"blunkall:"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprland.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprland.enable {
|
|
||||||
|
|
||||||
home.sessionVariables.NIX_OZONE_WL = "1";
|
|
||||||
|
|
||||||
programs.kitty.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
pyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
variables = [ "--all" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = let
|
|
||||||
monitor = if config.homeconfig.host == "laptop" then ''
|
|
||||||
monitor=eDP-1,1920x1080@60,0x0,1
|
|
||||||
'' else if config.homeconfig.host == "homebox" then ''
|
|
||||||
monitor=HDMI-A-2,1920x1080@60,0x0,1
|
|
||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
|
||||||
exec-once=hyprctl output create headless HEADLESS-2
|
|
||||||
exec-once=hyprctl keyword monitor HDMI-A-2,disable
|
|
||||||
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
|
||||||
'' else '''';
|
|
||||||
in monitor + ''
|
|
||||||
source = /home/nathan/.config/hypr/main.conf
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.nh.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.nh.enable {
|
|
||||||
|
|
||||||
programs.nh = {
|
|
||||||
enable = true;
|
|
||||||
flake = "${config.home.homeDirectory}/Projects/Olympus";
|
|
||||||
|
|
||||||
clean = {
|
|
||||||
enable = true;
|
|
||||||
dates = "weekly";
|
|
||||||
extraArgs = "--keep 5 --keep-since 5d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.wal.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wal.enable {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.pywal
|
|
||||||
|
|
||||||
pywal16
|
|
||||||
imagemagick
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.rofi.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.rofi.enable {
|
|
||||||
programs.rofi = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.rofi-wayland;
|
|
||||||
|
|
||||||
cycle = true;
|
|
||||||
|
|
||||||
theme = "/home/nathan/.cache/wal/colors-rofi-dark.rasi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.swaylock.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.swaylock.enable {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ swaylock-effects ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ oh-my-posh ];
|
|
||||||
|
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
blesh.enable = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza";
|
|
||||||
ll = "ls -l";
|
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
|
||||||
|
|
||||||
vi = "nvim";
|
|
||||||
vim = "nvim";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
||||||
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
||||||
'') else (lib.mkBefore ''
|
|
||||||
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
|
||||||
'');
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.bat = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs.bat-extras; [
|
|
||||||
batman
|
|
||||||
batpipe
|
|
||||||
batgrep
|
|
||||||
batdiff
|
|
||||||
batwatch
|
|
||||||
prettybat
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./bat
|
|
||||||
./eza
|
|
||||||
./fzf
|
|
||||||
./tmux
|
|
||||||
./kitty
|
|
||||||
./zoxide
|
|
||||||
./zsh
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.eza = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
"--color=auto"
|
|
||||||
];
|
|
||||||
|
|
||||||
git = true;
|
|
||||||
|
|
||||||
icons = "auto";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.fzf = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
tmux = {
|
|
||||||
#enableShellIntegration = true;
|
|
||||||
|
|
||||||
#shellIntegrationOptions = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
font = {
|
|
||||||
name = "FiraCode Nerd Font";
|
|
||||||
size = 12;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
|
|
||||||
confirm_os_window_close 0
|
|
||||||
|
|
||||||
include ${config.home.homeDirectory}/.cache/wal/colors-kitty.conf
|
|
||||||
|
|
||||||
disable_ligatures never
|
|
||||||
|
|
||||||
dynamic_background_opacity yes
|
|
||||||
|
|
||||||
tab_bar_edge top
|
|
||||||
|
|
||||||
map ctrl+shift+t new_tab
|
|
||||||
map ctrl+shift+w close_tab
|
|
||||||
|
|
||||||
map ctrl+tab next_tab
|
|
||||||
map ctrl+shift+tab previous_tab
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.tmux = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
clock24 = true;
|
|
||||||
|
|
||||||
mouse = true;
|
|
||||||
|
|
||||||
baseIndex = 1;
|
|
||||||
|
|
||||||
keyMode = "vi";
|
|
||||||
|
|
||||||
prefix = "C-b";
|
|
||||||
|
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.zoxide = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
options = [
|
|
||||||
"--cmd cd"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,158 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
oh-my-posh
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza";
|
|
||||||
ll = "ls -l";
|
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
|
||||||
|
|
||||||
vi = "nvim";
|
|
||||||
vim = "nvim";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
history = {
|
|
||||||
size = 5000;
|
|
||||||
ignoreAllDups = true;
|
|
||||||
ignoreSpace = true;
|
|
||||||
share = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
||||||
'') else (lib.mkBefore ''
|
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
|
||||||
'');
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".config/wal/templates/ohmyposh.toml".text = ''
|
|
||||||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
|
||||||
|
|
||||||
version = 2
|
|
||||||
final_space = true
|
|
||||||
console_title_template = '{{{{ .Shell }}}} in {{{{ .Folder }}}}'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'os'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
background = 'p:c1'
|
|
||||||
foreground = 'p:c12'
|
|
||||||
template = ' {{{{ .Icon }}}} '
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'session'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
background = 'p:c2'
|
|
||||||
foreground = 'p:c14'
|
|
||||||
template = '{{{{ .UserName }}}}@{{{{ .HostName }}}}'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'path'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
background = 'p:c4'
|
|
||||||
foreground = 'p:c13'
|
|
||||||
template = '{{{{ .Path }}}}'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
style = 'full'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
overflow = 'hidden'
|
|
||||||
alignment = 'right'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'executiontime'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
background = 'p:c4'
|
|
||||||
foreground = 'p:c13'
|
|
||||||
template = '{{{{ .FormattedMs }}}}'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'time'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
background = 'p:c2'
|
|
||||||
foreground = 'p:c14'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'shell'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
background = 'p:c1'
|
|
||||||
foreground = 'p:c12'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'text'
|
|
||||||
style = 'plain'
|
|
||||||
background = 'transparent'
|
|
||||||
foreground_templates = [
|
|
||||||
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
|
||||||
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
|
||||||
]
|
|
||||||
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
|
||||||
|
|
||||||
[transient_prompt]
|
|
||||||
foreground_templates = [
|
|
||||||
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
|
||||||
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
|
||||||
]
|
|
||||||
background = 'transparent'
|
|
||||||
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
|
||||||
|
|
||||||
[secondary_prompt]
|
|
||||||
background = 'transparent'
|
|
||||||
forground = 'p:c14'
|
|
||||||
template = "❭❭ "
|
|
||||||
|
|
||||||
|
|
||||||
[palette]
|
|
||||||
|
|
||||||
c0 = "{color0}"
|
|
||||||
c1 = "{color1}"
|
|
||||||
c2 = "{color2}"
|
|
||||||
c3 = "{color3}"
|
|
||||||
c4 = "{color4}"
|
|
||||||
c5 = "{color5}"
|
|
||||||
c6 = "{color6}"
|
|
||||||
c7 = "{color7}"
|
|
||||||
c8 = "{color8}"
|
|
||||||
c9 = "{color9}"
|
|
||||||
c10 = "{color10}"
|
|
||||||
c11 = "{color11}"
|
|
||||||
c12 = "{color12}"
|
|
||||||
c13 = "{color13}"
|
|
||||||
c14 = "{color14}"
|
|
||||||
c15 = "{color15}"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{}: {}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./mpd
|
|
||||||
./wayvnc
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
homeconfig.mpd.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.mpd.enable {
|
|
||||||
services.mpd = {
|
|
||||||
enable = true;
|
|
||||||
network.startWhenNeeded = true;
|
|
||||||
network.port = 6600;
|
|
||||||
network.listenAddress = "127.0.0.1";
|
|
||||||
musicDirectory = "/home/nathan/Music";
|
|
||||||
extraConfig = ''
|
|
||||||
audio_output {
|
|
||||||
type "pipewire"
|
|
||||||
name "Audio1"
|
|
||||||
}
|
|
||||||
audio_output {
|
|
||||||
type "fifo"
|
|
||||||
name "visualizer"
|
|
||||||
path "/tmp/mpd.fifo"
|
|
||||||
format "44100:16:1"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.mpdris2 = {
|
|
||||||
enable = true;
|
|
||||||
mpd.host = "127.0.0.1";
|
|
||||||
mpd.port = 6600;
|
|
||||||
package = pkgs.mpdris2;
|
|
||||||
mpd.musicDirectory = "/home/nathan/Music";
|
|
||||||
notifications = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.wayvnc.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
disabledModules = [
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
(import "${inputs.home-manager-us}/modules/services/wayvnc.nix" {
|
|
||||||
inherit config;
|
|
||||||
inherit lib;
|
|
||||||
pkgs = (import inputs.nixpkgs-us { system = "x86_64-linux"; });
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wayvnc.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
novnc
|
|
||||||
];
|
|
||||||
|
|
||||||
services.wayvnc = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
address = "0.0.0.0";
|
|
||||||
|
|
||||||
port = 5900;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
11
homes/nathan/home-manager/.sops.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
keys:
|
||||||
|
- &homebox age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
|
||||||
|
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
||||||
|
- &android age12pnf36uqesjmy3e0lythfnpwam3zg5mv8m936fc4jphy4ces2fdqwn0s74
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: ^secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *laptop
|
||||||
|
- *homebox
|
||||||
|
- *android
|
||||||
113
homes/nathan/home-manager/default.nix
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
|
||||||
|
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
|
|
||||||
|
options.homeconfig = with lib; {
|
||||||
|
|
||||||
|
name = mkOption {
|
||||||
|
type = with types; nullOr str;
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
graphical = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
standalone = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
virtual-machines = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
homeconfig = {
|
||||||
|
name = "nathan";
|
||||||
|
|
||||||
|
mpd.enable = lib.mkDefault true;
|
||||||
|
calcurse.enable = lib.mkDefault true;
|
||||||
|
git.enable = lib.mkDefault true;
|
||||||
|
nh.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
minimal = lib.mkDefault false;
|
||||||
|
hyprland.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
hypridle.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
|
wal.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
rofi.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
|
firefox.enable = lib.mkDefault config.homeconfig.graphical;
|
||||||
|
|
||||||
|
aurora.enable = lib.mkDefault config.homeconfig.hyprland.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.username = lib.mkDefault config.homeconfig.name;
|
||||||
|
|
||||||
|
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||||
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
|
home.pointerCursor = lib.mkIf config.homeconfig.graphical {
|
||||||
|
gtk.enable = true;
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 16;
|
||||||
|
};
|
||||||
|
|
||||||
|
dconf.settings = lib.mkIf config.homeconfig.virtual-machines {
|
||||||
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
|
autoconnect = ["qemu:///system"];
|
||||||
|
uris = ["qemu:///system"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = lib.mkIf (config.homeconfig.graphical && config.homeconfig.hyprland.enable) {
|
||||||
|
enable = true;
|
||||||
|
theme.name = "Tokyonight-Dark";
|
||||||
|
theme.package = pkgs.tokyonight-gtk-theme;
|
||||||
|
iconTheme.package = pkgs.rose-pine-icon-theme;
|
||||||
|
iconTheme.name = "rose-pine-moon";
|
||||||
|
};
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
|
||||||
|
#secrets."remoteBuildKey" = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.mpris-proxy.enable = true;
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"builder" = {
|
||||||
|
hostname = "esotericbytes.com";
|
||||||
|
user = "remote-builder";
|
||||||
|
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
|
||||||
|
"remote" = {
|
||||||
|
hostname = "esotericbytes.com";
|
||||||
|
user = "nathan";
|
||||||
|
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/chainsaw_man.png
Normal file
|
After Width: | Height: | Size: 2.9 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/eighty-six1.png
Normal file
|
After Width: | Height: | Size: 3.8 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/eighty-six2.png
Normal file
|
After Width: | Height: | Size: 5.2 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/eighty-six3.png
Normal file
|
After Width: | Height: | Size: 2.7 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/frieren.png
Normal file
|
After Width: | Height: | Size: 3.4 MiB |
0
home-manager/users/nathan/dotfiles/Wallpaper/galaxy.jpg → homes/nathan/home-manager/dotfiles/Wallpaper/galaxy.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 1007 KiB After Width: | Height: | Size: 1007 KiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/goblin_slayer1.png
Normal file
|
After Width: | Height: | Size: 3.5 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/goblin_slayer2.png
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/goblin_slayer3.png
Normal file
|
After Width: | Height: | Size: 2.9 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/higuruma.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/higuruma1.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 110 MiB After Width: | Height: | Size: 110 MiB |
|
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 191 KiB |
|
Before Width: | Height: | Size: 874 KiB After Width: | Height: | Size: 874 KiB |
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 48 MiB After Width: | Height: | Size: 48 MiB |
|
Before Width: | Height: | Size: 203 MiB After Width: | Height: | Size: 203 MiB |
|
Before Width: | Height: | Size: 670 KiB After Width: | Height: | Size: 670 KiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/nier_automata.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
|
Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 273 KiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/pink_fc.mp4
Normal file
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/recoil1.png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/recoil2.png
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 140 MiB After Width: | Height: | Size: 140 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/rimuru.png
Normal file
|
After Width: | Height: | Size: 4.9 MiB |
|
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 3.1 MiB |
|
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 2.8 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/shield_hero.png
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 36 MiB After Width: | Height: | Size: 36 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/sinon.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
homes/nathan/home-manager/dotfiles/Wallpaper/tanya.png
Normal file
|
After Width: | Height: | Size: 2.9 MiB |
13
homes/nathan/home-manager/dotfiles/default.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
flake.homeModules.nathan = { config, lib, ... }: {
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
||||||
|
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
||||||
|
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
||||||
|
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
35
homes/nathan/home-manager/dotfiles/hypr/dwindle.conf
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
dwindle {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = yes # you probably want this
|
||||||
|
}
|
||||||
|
|
||||||
|
bind = $mainMod, F1, submap, dwindle
|
||||||
|
|
||||||
|
submap = master
|
||||||
|
|
||||||
|
bind = $mainMod, F2, submap, master
|
||||||
|
bind = $mainMod, F3, submap, scrolling
|
||||||
|
bind = $mainMod, End, submap, reset
|
||||||
|
|
||||||
|
bind = $mainMod, down, workspace, r+1
|
||||||
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
|
bind = $mainMod, J, workspace, e+1
|
||||||
|
bind = $mainMod, K, workspace, e-1
|
||||||
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
submap = reset
|
||||||
@@ -10,13 +10,15 @@
|
|||||||
# #
|
# #
|
||||||
#------------------------------------------------#
|
#------------------------------------------------#
|
||||||
|
|
||||||
exec-once=onSystemStart
|
exec-once = onSystemStart
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = XCURSOR_SIZE,16
|
env = XCURSOR_SIZE,16
|
||||||
|
|
||||||
|
$mainMod = ALT
|
||||||
|
|
||||||
source = ~/.config/hypr/otf.conf
|
source = ~/.config/hypr/otf.conf
|
||||||
source = ~/.cache/wal/colors-hypr.conf
|
source = ~/.cache/wal/colors-hyprland.conf
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input {
|
input {
|
||||||
@@ -48,7 +50,7 @@ general {
|
|||||||
col.active_border = $color1 $color5 100deg
|
col.active_border = $color1 $color5 100deg
|
||||||
col.inactive_border = $color0
|
col.inactive_border = $color0
|
||||||
|
|
||||||
layout = dwindle
|
layout = scrolling
|
||||||
}
|
}
|
||||||
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
@@ -77,35 +79,29 @@ animations {
|
|||||||
animation = border, 1, 10, default
|
animation = border, 1, 10, default
|
||||||
animation = borderangle, 1, 8, default
|
animation = borderangle, 1, 8, default
|
||||||
animation = fade, 1, 7, default
|
animation = fade, 1, 7, default
|
||||||
animation = workspaces, 1, 6, default
|
animation = workspaces, 1, 6, default, slidevert
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
source = ~/.config/hypr/dwindle.conf
|
||||||
|
|
||||||
dwindle {
|
source = ~/.config/hypr/master.conf
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = yes # you probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
master {
|
source = ~/.config/hypr/scroll.conf
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_status = "master"
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
workspace_swipe = off
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
disable_hyprland_logo = false
|
disable_hyprland_logo = false
|
||||||
disable_splash_rendering = true
|
disable_splash_rendering = true
|
||||||
force_default_wallpaper = 2
|
force_default_wallpaper = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
ecosystem {
|
||||||
|
no_update_news = true
|
||||||
|
no_donation_nag = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# Binds
|
# Binds
|
||||||
$mainMod = ALT
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, E, exec, colorPrefix kitty
|
bind = $mainMod SHIFT, E, exec, colorPrefix kitty
|
||||||
|
|
||||||
@@ -115,14 +111,14 @@ bind = $mainMod SHIFT, B, exec, firefox --private-window
|
|||||||
|
|
||||||
bind = $mainMod, Q, killactive,
|
bind = $mainMod, Q, killactive,
|
||||||
|
|
||||||
bind = $mainMod, R, exec, colorPrefix kitty -e _systemRebuild
|
#bind = $mainMod, R, exec, colorPrefix kitty -e _systemRebuild
|
||||||
|
|
||||||
bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
#bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
||||||
|
|
||||||
bind = $mainMod, F, exec, thunar
|
bind = $mainMod, F, exec, thunar
|
||||||
bind = $mainMod SHIFT, F, fullscreen
|
bind = $mainMod SHIFT, F, fullscreen
|
||||||
|
|
||||||
bind = $mainMod, semicolon, exec, colorPrefix kitty -e nvim ~
|
bind = $mainMod SHIFT, semicolon, exec, colorPrefix kitty -e yazi
|
||||||
|
|
||||||
bind = $mainMod, Insert, exec, libreoffice
|
bind = $mainMod, Insert, exec, libreoffice
|
||||||
|
|
||||||
@@ -130,13 +126,15 @@ bind = $mainMod, V, togglefloating,
|
|||||||
|
|
||||||
bind = $mainMod SHIFT, V, exec, vlc
|
bind = $mainMod SHIFT, V, exec, vlc
|
||||||
|
|
||||||
bind = , Menu, exec, rofi -show drun
|
bind = , Menu, exec, rofi -show drun -show-icons -run-command '{cmd}'
|
||||||
|
|
||||||
bind = $mainMod, Menu, exec, hyprpanel -q; hyprpanel
|
bind = $mainMod, Menu, exec, systemctl restart --user quickshell
|
||||||
|
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
#bind = $mainMod, P, pseudo, # dwindle
|
||||||
|
#bind = $mainMod, Z, togglesplit, # dwindle
|
||||||
|
|
||||||
bind = $mainMod, Z, togglesplit, # dwindle
|
bind = $mainMod, N, layoutmsg, rollnext # master
|
||||||
|
bind = $mainMod, P, layoutmsg, rollprev # master
|
||||||
|
|
||||||
bind = $mainMod, M, exec, spotify
|
bind = $mainMod, M, exec, spotify
|
||||||
|
|
||||||
@@ -165,11 +163,13 @@ bind = $mainMod, Return, exec, discord --enable-features=UseOzonePlatform --ozon
|
|||||||
|
|
||||||
bind = $mainMod CTRL, Return, exec, firefox https://discord.com/app
|
bind = $mainMod CTRL, Return, exec, firefox https://discord.com/app
|
||||||
|
|
||||||
|
bind = , Home, exec, setWallpaper
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, H, movefocus, l
|
bind = $mainMod, W, movefocus, u
|
||||||
bind = $mainMod, L, movefocus, r
|
bind = $mainMod, A, movefocus, l
|
||||||
bind = $mainMod, J, movefocus, u
|
bind = $mainMod, S, movefocus, d
|
||||||
bind = $mainMod, K, movefocus, d
|
bind = $mainMod, D, movefocus, r
|
||||||
# Switch workspaces with mainMod + [0-9]
|
# Switch workspaces with mainMod + [0-9]
|
||||||
bind = $mainMod, 1, workspace, 1
|
bind = $mainMod, 1, workspace, 1
|
||||||
bind = $mainMod, 2, workspace, 2
|
bind = $mainMod, 2, workspace, 2
|
||||||
@@ -199,8 +199,25 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|||||||
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
bind = $mainMod, right, workspace, e+1
|
bind = $mainMod, down, workspace, r+1
|
||||||
bind = $mainMod, left, workspace, e-1
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
|
bind = $mainMod, J, workspace, e+1
|
||||||
|
bind = $mainMod, K, workspace, e-1
|
||||||
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
|
|
||||||
#switch network connections
|
#switch network connections
|
||||||
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
||||||
@@ -210,58 +227,38 @@ bind = CTRL SHIFT, 2, exec, nmcli connection up CXNK00813829
|
|||||||
bind = CTRL SHIFT, 3, exec, nmcli connection up ATT9MhT2ql
|
bind = CTRL SHIFT, 3, exec, nmcli connection up ATT9MhT2ql
|
||||||
|
|
||||||
#brightness keys
|
#brightness keys
|
||||||
bind = , XF86MonBrightnessUp, exec, brightnessctl set +10%
|
binde = SHIFT, XF86MonBrightnessUp, exec, brightnessctl set +2%
|
||||||
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
binde = SHIFT, XF86MonBrightnessDown, exec, brightnessctl set 2%-
|
||||||
|
binde = , XF86MonBrightnessUp, exec, brightnessctl set +10%
|
||||||
|
binde = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
||||||
|
|
||||||
#volume keys
|
#volume keys
|
||||||
|
binde = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 2%+
|
||||||
|
binde = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 2%-
|
||||||
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
||||||
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
||||||
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
||||||
bind = $mainMod, F9, exec, pavucontrol
|
bind = $mainMod, F9, exec, pavucontrol
|
||||||
|
|
||||||
#screen lock key
|
#screen lock key
|
||||||
bind = $mainMod, F12, exec, swaylock
|
#bind = $mainMod, F12, exec, swaylock
|
||||||
|
|
||||||
#logout shortcut
|
#logout shortcut
|
||||||
bind = CTRL ALT, Delete, exec, loginctl kill-session self
|
bind = CTRL ALT, Delete, exec, loginctl kill-session self
|
||||||
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
bind = $mainMod SHIFT, J, movewindow, u
|
bind = $mainMod SHIFT, W, movewindow, u
|
||||||
bind = $mainMod SHIFT, K, movewindow, d
|
bind = $mainMod SHIFT, A, movewindow, l
|
||||||
bind = $mainMod SHIFT, H, movewindow, l
|
bind = $mainMod SHIFT, S, movewindow, d
|
||||||
bind = $mainMod SHIFT, L, movewindow, r
|
bind = $mainMod SHIFT, D, movewindow, r
|
||||||
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod SHIFT, mouse:272, resizewindow
|
bindm = $mainMod SHIFT, mouse:272, resizewindow
|
||||||
|
|
||||||
$scratchpadsize = size 60% 80%
|
source = ~/.config/hypr/pypr.conf
|
||||||
|
|
||||||
$scratchpad = class:^(scratchpad)$
|
bind = CTRL SHIFT, Home, exec, ssh nathan@esotericbytes.com -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
||||||
windowrulev2 = float, $scratchpad
|
|
||||||
windowrulev2 = $scratchpadsize, $scratchpad
|
|
||||||
windowrulev2 = workspace special silent, $scratchpad
|
|
||||||
|
|
||||||
$kitty = class:^(scratchpad-kitty)$
|
|
||||||
windowrulev2 = float, $kitty
|
|
||||||
windowrulev2 = $scratchpadsize, $kitty
|
|
||||||
windowrulev2 = workspace special silent, $kitty
|
|
||||||
|
|
||||||
$nvim = class:^(scratchpad-nvim)$
|
|
||||||
windowrulev2 = float, $nvim
|
|
||||||
windowrulev2 = $scratchpadsize, $nvim
|
|
||||||
windowrulev2 = workspace special silent, $nvim
|
|
||||||
|
|
||||||
$cal = class:^(scratchpad-calendar)$
|
|
||||||
windowrulev2 = float, $cal
|
|
||||||
windowrulev2 = $scratchpadsize, $cal
|
|
||||||
windowrulev2 = workspace special silent, $cal
|
|
||||||
|
|
||||||
bind = $mainMod, N, exec, colorPrefix pypr toggle nvim
|
|
||||||
bind = $mainMod, E, exec, colorPrefix pypr toggle kitty
|
|
||||||
bind = $mainMod, C, exec, colorPrefix pypr toggle calendar
|
|
||||||
|
|
||||||
|
|
||||||
bind = CTRL SHIFT, Home, exec, ssh nathan@blunkall.us -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
|
||||||
bind = CTRL SHIFT, Home, submap, clean
|
bind = CTRL SHIFT, Home, submap, clean
|
||||||
|
|
||||||
|
|
||||||
35
homes/nathan/home-manager/dotfiles/hypr/master.conf
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
|
||||||
|
master {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
new_status = "master"
|
||||||
|
}
|
||||||
|
|
||||||
|
bind = $mainMod, F2, submap, master
|
||||||
|
|
||||||
|
submap = master
|
||||||
|
|
||||||
|
bind = $mainMod, F1, submap, dwindle
|
||||||
|
bind = $mainMod, F3, submap, scrolling
|
||||||
|
bind = $mainMod, End, submap, reset
|
||||||
|
|
||||||
|
bind = $mainMod, down, workspace, r+1
|
||||||
|
bind = $mainMod, up, workspace, r-1
|
||||||
|
bind = $mainMod, left, layoutmsg, move -col
|
||||||
|
bind = $mainMod, right, layoutmsg, move +col
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, down, movetoworkspace, r+1
|
||||||
|
bind = $mainMod SHIFT, up, movetoworkspace, r-1
|
||||||
|
bind = $mainMod SHIFT, left, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, right, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
bind = $mainMod, H, layoutmsg, focus l
|
||||||
|
bind = $mainMod, J, workspace, e+1
|
||||||
|
bind = $mainMod, K, workspace, e-1
|
||||||
|
bind = $mainMod, L, layoutmsg, focus r
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, layoutmsg, swapcol l
|
||||||
|
bind = $mainMod SHIFT, J, movetoworkspace, e+1
|
||||||
|
bind = $mainMod SHIFT, K, movetoworkspace, e-1
|
||||||
|
bind = $mainMod SHIFT, L, layoutmsg, swapcol r
|
||||||
|
|
||||||
|
submap = reset
|
||||||