├── LICENSE ├── README.md ├── configuration.nix ├── flake.lock ├── flake.nix ├── hardware-configuration.nix ├── home.nix ├── images ├── image1.png ├── image2.png └── image3.png └── modules ├── default.nix ├── home-manager ├── aichat.nix ├── beets.nix ├── default.nix ├── desktop.nix ├── firefox.nix ├── git.nix ├── gtk.nix ├── home.nix ├── hyprland.nix ├── iamb.nix ├── kitty.nix ├── lazygit.nix ├── mako.nix ├── plover.nix ├── rofi.nix ├── shell.nix ├── tmux.nix ├── wallpaper.png └── zoxide.nix └── system ├── GUI-nvidia.nix ├── boot.nix ├── default.nix ├── droidcam.nix ├── musnix.nix ├── networkd.nix ├── nixvim.nix ├── packages.nix ├── services.nix ├── shell.nix ├── steam.nix ├── thunar.nix ├── wine.nix └── yeetmouse.nix /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Frogix 2 | 3 | ### Just Theo's NixOS config 4 | 5 | NixOS my beloved 6 | 7 | #### Features 8 | 9 | - Neovim using [nixvim](https://github.com/nix-community/nixvim). 10 | - You can run my nixvim config by itself too. `nix run github:thesmallteaboi/frogix#neovim` 11 | ![Neovim](/images/image3.png) 12 | - Tmux-based workflow with the Fish shell 13 | 14 | - Using flakes because that's the correct way of using nix. 15 | - Using [home-manager](https://github.com/nix-community/home-manager). 16 | - Fairly light, but not the main focus. 17 | - Rice for everything using [catppuccin](https://github.com/catppuccin/catppuccin). 18 | ![screenshot1](/images/image1.png) 19 | ![screenshot2](/images/image2.png) 20 | 21 | -------------------------------------------------------------------------------- /configuration.nix: -------------------------------------------------------------------------------- 1 | # Edit this configuration file to define what should be installed on 2 | # your system. Help is available in the configuration.nix(5) man page, on 3 | # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). 4 | {pkgs, ...}: { 5 | imports = [ 6 | # Include the results of the hardware scan. 7 | ./hardware-configuration.nix 8 | ]; 9 | 10 | # Enable "experimental" features 11 | nix.settings.experimental-features = ["nix-command" "flakes"]; 12 | nix.settings.trusted-users = ["root" "@wheel"]; 13 | 14 | # This could a default at this point lol. 15 | nix.optimise.automatic = true; 16 | 17 | networking.hostName = "ratholomew"; # Define your hostname. 18 | 19 | programs.virt-manager.enable = true; 20 | users.extraGroups.libvirtd.members = ["theo"]; 21 | virtualisation.libvirtd.enable = true; 22 | virtualisation.spiceUSBRedirection.enable = true; 23 | 24 | time.timeZone = "America/Buenos_Aires"; 25 | 26 | fonts.packages = with pkgs; [nerd-fonts.fira-code noto-fonts noto-fonts-lgc-plus google-fonts]; 27 | 28 | # I love zram. 29 | zramSwap = { 30 | enable = true; 31 | memoryPercent = 75; # Give me all of it 32 | algorithm = "lz4"; 33 | }; 34 | 35 | # rtkit is optional but recommended 36 | security.rtkit.enable = true; 37 | 38 | hardware = { 39 | uinput.enable = true; 40 | }; 41 | 42 | home-manager.backupFileExtension = "bk"; 43 | 44 | # Define a user account. Don't forget to set a password with ‘passwd’. 45 | users.users.theo = { 46 | isNormalUser = true; 47 | extraGroups = ["wheel" "input" "uinput" "audio"]; 48 | }; 49 | 50 | # Disable the firewall altogether. 51 | networking.firewall.enable = false; 52 | 53 | nixpkgs.config = {allowUnfree = true;}; 54 | 55 | programs.java = { 56 | enable = true; 57 | }; 58 | 59 | # Enable Theme 60 | environment.variables = { 61 | HYPRCURSOR_SIZE = "8"; 62 | GTK_THEME = "catppuccin-mocha-teal-standard"; 63 | }; 64 | qt.enable = true; 65 | qt.platformTheme = "gtk2"; 66 | qt.style = "gtk2"; 67 | 68 | console = { 69 | earlySetup = true; 70 | colors = [ 71 | "24273a" 72 | "ed8796" 73 | "a6da95" 74 | "eed49f" 75 | "8aadf4" 76 | "f5bde6" 77 | "8bd5ca" 78 | "cad3f5" 79 | "5b6078" 80 | "ed8796" 81 | "a6da95" 82 | "eed49f" 83 | "8aadf4" 84 | "f5bde6" 85 | "8bd5ca" 86 | "a5adcb" 87 | ]; 88 | }; 89 | 90 | # Override packages 91 | nixpkgs.config.packageOverrides = pkgs: { 92 | colloid-icon-theme = pkgs.colloid-icon-theme.override {colorVariants = ["teal"];}; 93 | catppuccin-gtk = pkgs.catppuccin-gtk.override { 94 | accents = ["teal"]; 95 | size = "standard"; 96 | variant = "mocha"; 97 | }; 98 | }; 99 | 100 | environment.systemPackages = with pkgs; [ 101 | numix-icon-theme-circle 102 | colloid-icon-theme 103 | catppuccin-gtk 104 | catppuccin-kvantum 105 | ]; 106 | 107 | # Copy the NixOS configuration file and link it from the resulting system 108 | # (/run/current-system/configuration.nix). This is useful in case you 109 | # accidentally delete configuration.nix. 110 | # system.copySystemConfiguration = true; 111 | 112 | # This option defines the first version of NixOS you have installed on this particular machine, 113 | # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. 114 | # 115 | # Most users should NEVER change this value after the initial install, for any reason, 116 | # even if you've upgraded your system to a new NixOS release. 117 | # 118 | # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, 119 | # so changing it will NOT upgrade your system. 120 | # 121 | # This value being lower than the current NixOS release does NOT mean your system is 122 | # out of date, out of support, or vulnerable. 123 | # 124 | # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, 125 | # and migrated your data accordingly. 126 | # 127 | # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . 128 | system.stateVersion = "23.11"; # Did you read the comment? 129 | } 130 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "aquamarine": { 4 | "inputs": { 5 | "hyprutils": [ 6 | "hyprland", 7 | "hyprutils" 8 | ], 9 | "hyprwayland-scanner": [ 10 | "hyprland", 11 | "hyprwayland-scanner" 12 | ], 13 | "nixpkgs": [ 14 | "hyprland", 15 | "nixpkgs" 16 | ], 17 | "systems": [ 18 | "hyprland", 19 | "systems" 20 | ] 21 | }, 22 | "locked": { 23 | "lastModified": 1742213273, 24 | "narHash": "sha256-0l0vDb4anfsBu1rOs94bC73Hub+xEivgBAo6QXl2MmU=", 25 | "owner": "hyprwm", 26 | "repo": "aquamarine", 27 | "rev": "484b732195cc53f4536ce4bd59a5c6402b1e7ccf", 28 | "type": "github" 29 | }, 30 | "original": { 31 | "owner": "hyprwm", 32 | "repo": "aquamarine", 33 | "type": "github" 34 | } 35 | }, 36 | "flake-compat": { 37 | "flake": false, 38 | "locked": { 39 | "lastModified": 1696426674, 40 | "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 41 | "owner": "edolstra", 42 | "repo": "flake-compat", 43 | "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 44 | "type": "github" 45 | }, 46 | "original": { 47 | "owner": "edolstra", 48 | "repo": "flake-compat", 49 | "type": "github" 50 | } 51 | }, 52 | "flake-compat_2": { 53 | "locked": { 54 | "lastModified": 1733328505, 55 | "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", 56 | "owner": "edolstra", 57 | "repo": "flake-compat", 58 | "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", 59 | "type": "github" 60 | }, 61 | "original": { 62 | "owner": "edolstra", 63 | "repo": "flake-compat", 64 | "type": "github" 65 | } 66 | }, 67 | "flake-parts": { 68 | "inputs": { 69 | "nixpkgs-lib": [ 70 | "nixvim", 71 | "nixpkgs" 72 | ] 73 | }, 74 | "locked": { 75 | "lastModified": 1741352980, 76 | "narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=", 77 | "owner": "hercules-ci", 78 | "repo": "flake-parts", 79 | "rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9", 80 | "type": "github" 81 | }, 82 | "original": { 83 | "owner": "hercules-ci", 84 | "repo": "flake-parts", 85 | "type": "github" 86 | } 87 | }, 88 | "flake-utils": { 89 | "inputs": { 90 | "systems": "systems_2" 91 | }, 92 | "locked": { 93 | "lastModified": 1731533236, 94 | "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 95 | "owner": "numtide", 96 | "repo": "flake-utils", 97 | "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 98 | "type": "github" 99 | }, 100 | "original": { 101 | "owner": "numtide", 102 | "repo": "flake-utils", 103 | "type": "github" 104 | } 105 | }, 106 | "gitignore": { 107 | "inputs": { 108 | "nixpkgs": [ 109 | "hyprland", 110 | "pre-commit-hooks", 111 | "nixpkgs" 112 | ] 113 | }, 114 | "locked": { 115 | "lastModified": 1709087332, 116 | "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", 117 | "owner": "hercules-ci", 118 | "repo": "gitignore.nix", 119 | "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", 120 | "type": "github" 121 | }, 122 | "original": { 123 | "owner": "hercules-ci", 124 | "repo": "gitignore.nix", 125 | "type": "github" 126 | } 127 | }, 128 | "home-manager": { 129 | "inputs": { 130 | "nixpkgs": [ 131 | "nixpkgs" 132 | ] 133 | }, 134 | "locked": { 135 | "lastModified": 1742670145, 136 | "narHash": "sha256-xQ2F9f+ICAGBp/nNv3ddD2U4ZvzuLOci0u/5lyMXPvk=", 137 | "owner": "nix-community", 138 | "repo": "home-manager", 139 | "rev": "63e77d09a133ac641a0c204e7cfb0c97e133706d", 140 | "type": "github" 141 | }, 142 | "original": { 143 | "owner": "nix-community", 144 | "repo": "home-manager", 145 | "type": "github" 146 | } 147 | }, 148 | "hyprcursor": { 149 | "inputs": { 150 | "hyprlang": [ 151 | "hyprland", 152 | "hyprlang" 153 | ], 154 | "nixpkgs": [ 155 | "hyprland", 156 | "nixpkgs" 157 | ], 158 | "systems": [ 159 | "hyprland", 160 | "systems" 161 | ] 162 | }, 163 | "locked": { 164 | "lastModified": 1742215578, 165 | "narHash": "sha256-zfs71PXVVPEe56WEyNi2TJQPs0wabU4WAlq0XV7GcdE=", 166 | "owner": "hyprwm", 167 | "repo": "hyprcursor", 168 | "rev": "2fd36421c21aa87e2fe3bee11067540ae612f719", 169 | "type": "github" 170 | }, 171 | "original": { 172 | "owner": "hyprwm", 173 | "repo": "hyprcursor", 174 | "type": "github" 175 | } 176 | }, 177 | "hyprgraphics": { 178 | "inputs": { 179 | "hyprutils": [ 180 | "hyprland", 181 | "hyprutils" 182 | ], 183 | "nixpkgs": [ 184 | "hyprland", 185 | "nixpkgs" 186 | ], 187 | "systems": [ 188 | "hyprland", 189 | "systems" 190 | ] 191 | }, 192 | "locked": { 193 | "lastModified": 1739049071, 194 | "narHash": "sha256-3+7TpXMrbsUXSwgr5VAKAnmkzMb6JO+Rvc9XRb5NMg4=", 195 | "owner": "hyprwm", 196 | "repo": "hyprgraphics", 197 | "rev": "175c6b29b6ff82100539e7c4363a35a02c74dd73", 198 | "type": "github" 199 | }, 200 | "original": { 201 | "owner": "hyprwm", 202 | "repo": "hyprgraphics", 203 | "type": "github" 204 | } 205 | }, 206 | "hyprland": { 207 | "inputs": { 208 | "aquamarine": "aquamarine", 209 | "hyprcursor": "hyprcursor", 210 | "hyprgraphics": "hyprgraphics", 211 | "hyprland-protocols": "hyprland-protocols", 212 | "hyprland-qtutils": "hyprland-qtutils", 213 | "hyprlang": "hyprlang", 214 | "hyprutils": "hyprutils", 215 | "hyprwayland-scanner": "hyprwayland-scanner", 216 | "nixpkgs": "nixpkgs", 217 | "pre-commit-hooks": "pre-commit-hooks", 218 | "systems": "systems", 219 | "xdph": "xdph" 220 | }, 221 | "locked": { 222 | "lastModified": 1742664841, 223 | "narHash": "sha256-I9cprYu92u8PatjTGyM3Bp6XvAmznYiY88AjAr14tUw=", 224 | "owner": "hyprwm", 225 | "repo": "Hyprland", 226 | "rev": "6ab5a0befb45e90eb45b8d6582e68d13147297dc", 227 | "type": "github" 228 | }, 229 | "original": { 230 | "owner": "hyprwm", 231 | "repo": "Hyprland", 232 | "type": "github" 233 | } 234 | }, 235 | "hyprland-protocols": { 236 | "inputs": { 237 | "nixpkgs": [ 238 | "hyprland", 239 | "nixpkgs" 240 | ], 241 | "systems": [ 242 | "hyprland", 243 | "systems" 244 | ] 245 | }, 246 | "locked": { 247 | "lastModified": 1738422629, 248 | "narHash": "sha256-5v+bv75wJWvahyM2xcMTSNNxmV8a7hb01Eey5zYnBJw=", 249 | "owner": "hyprwm", 250 | "repo": "hyprland-protocols", 251 | "rev": "755aef8dab49d0fc4663c715fa4ad221b2aedaed", 252 | "type": "github" 253 | }, 254 | "original": { 255 | "owner": "hyprwm", 256 | "repo": "hyprland-protocols", 257 | "type": "github" 258 | } 259 | }, 260 | "hyprland-qt-support": { 261 | "inputs": { 262 | "hyprlang": [ 263 | "hyprland", 264 | "hyprland-qtutils", 265 | "hyprlang" 266 | ], 267 | "nixpkgs": [ 268 | "hyprland", 269 | "hyprland-qtutils", 270 | "nixpkgs" 271 | ], 272 | "systems": [ 273 | "hyprland", 274 | "hyprland-qtutils", 275 | "systems" 276 | ] 277 | }, 278 | "locked": { 279 | "lastModified": 1737634706, 280 | "narHash": "sha256-nGCibkfsXz7ARx5R+SnisRtMq21IQIhazp6viBU8I/A=", 281 | "owner": "hyprwm", 282 | "repo": "hyprland-qt-support", 283 | "rev": "8810df502cdee755993cb803eba7b23f189db795", 284 | "type": "github" 285 | }, 286 | "original": { 287 | "owner": "hyprwm", 288 | "repo": "hyprland-qt-support", 289 | "type": "github" 290 | } 291 | }, 292 | "hyprland-qtutils": { 293 | "inputs": { 294 | "hyprland-qt-support": "hyprland-qt-support", 295 | "hyprlang": [ 296 | "hyprland", 297 | "hyprlang" 298 | ], 299 | "hyprutils": [ 300 | "hyprland", 301 | "hyprland-qtutils", 302 | "hyprlang", 303 | "hyprutils" 304 | ], 305 | "nixpkgs": [ 306 | "hyprland", 307 | "nixpkgs" 308 | ], 309 | "systems": [ 310 | "hyprland", 311 | "systems" 312 | ] 313 | }, 314 | "locked": { 315 | "lastModified": 1739048983, 316 | "narHash": "sha256-REhTcXq4qs3B3cCDtLlYDz0GZvmsBSh947Ub6pQWGTQ=", 317 | "owner": "hyprwm", 318 | "repo": "hyprland-qtutils", 319 | "rev": "3504a293c8f8db4127cb0f7cfc1a318ffb4316f8", 320 | "type": "github" 321 | }, 322 | "original": { 323 | "owner": "hyprwm", 324 | "repo": "hyprland-qtutils", 325 | "type": "github" 326 | } 327 | }, 328 | "hyprlang": { 329 | "inputs": { 330 | "hyprutils": [ 331 | "hyprland", 332 | "hyprutils" 333 | ], 334 | "nixpkgs": [ 335 | "hyprland", 336 | "nixpkgs" 337 | ], 338 | "systems": [ 339 | "hyprland", 340 | "systems" 341 | ] 342 | }, 343 | "locked": { 344 | "lastModified": 1741191527, 345 | "narHash": "sha256-kM+11Nch47Xwfgtw2EpRitJuORy4miwoMuRi5tyMBDY=", 346 | "owner": "hyprwm", 347 | "repo": "hyprlang", 348 | "rev": "72df3861f1197e41b078faa3e38eedd60e00018d", 349 | "type": "github" 350 | }, 351 | "original": { 352 | "owner": "hyprwm", 353 | "repo": "hyprlang", 354 | "type": "github" 355 | } 356 | }, 357 | "hyprutils": { 358 | "inputs": { 359 | "nixpkgs": [ 360 | "hyprland", 361 | "nixpkgs" 362 | ], 363 | "systems": [ 364 | "hyprland", 365 | "systems" 366 | ] 367 | }, 368 | "locked": { 369 | "lastModified": 1741534688, 370 | "narHash": "sha256-EV3945SnjOCuRVbGRghsWx/9D89FyshnSO1Q6/TuQ14=", 371 | "owner": "hyprwm", 372 | "repo": "hyprutils", 373 | "rev": "dd1f720cbc2dbb3c71167c9598045dd3261d27b3", 374 | "type": "github" 375 | }, 376 | "original": { 377 | "owner": "hyprwm", 378 | "repo": "hyprutils", 379 | "type": "github" 380 | } 381 | }, 382 | "hyprwayland-scanner": { 383 | "inputs": { 384 | "nixpkgs": [ 385 | "hyprland", 386 | "nixpkgs" 387 | ], 388 | "systems": [ 389 | "hyprland", 390 | "systems" 391 | ] 392 | }, 393 | "locked": { 394 | "lastModified": 1739870480, 395 | "narHash": "sha256-SiDN5BGxa/1hAsqhgJsS03C3t2QrLgBT8u+ENJ0Qzwc=", 396 | "owner": "hyprwm", 397 | "repo": "hyprwayland-scanner", 398 | "rev": "206367a08dc5ac4ba7ad31bdca391d098082e64b", 399 | "type": "github" 400 | }, 401 | "original": { 402 | "owner": "hyprwm", 403 | "repo": "hyprwayland-scanner", 404 | "type": "github" 405 | } 406 | }, 407 | "ixx": { 408 | "inputs": { 409 | "flake-utils": [ 410 | "nixvim", 411 | "nuschtosSearch", 412 | "flake-utils" 413 | ], 414 | "nixpkgs": [ 415 | "nixvim", 416 | "nuschtosSearch", 417 | "nixpkgs" 418 | ] 419 | }, 420 | "locked": { 421 | "lastModified": 1729958008, 422 | "narHash": "sha256-EiOq8jF4Z/zQe0QYVc3+qSKxRK//CFHMB84aYrYGwEs=", 423 | "owner": "NuschtOS", 424 | "repo": "ixx", 425 | "rev": "9fd01aad037f345350eab2cd45e1946cc66da4eb", 426 | "type": "github" 427 | }, 428 | "original": { 429 | "owner": "NuschtOS", 430 | "ref": "v0.0.6", 431 | "repo": "ixx", 432 | "type": "github" 433 | } 434 | }, 435 | "musnix": { 436 | "inputs": { 437 | "nixpkgs": "nixpkgs_2" 438 | }, 439 | "locked": { 440 | "lastModified": 1741303672, 441 | "narHash": "sha256-eRKbKccBu3PK/oJpmUuLo+0v45d0SEjosE8tVsHbpeA=", 442 | "owner": "musnix", 443 | "repo": "musnix", 444 | "rev": "d56a15f30329f304151e4e05fa82264d127da934", 445 | "type": "github" 446 | }, 447 | "original": { 448 | "owner": "musnix", 449 | "repo": "musnix", 450 | "type": "github" 451 | } 452 | }, 453 | "nix-alien": { 454 | "inputs": { 455 | "flake-compat": "flake-compat_2", 456 | "nix-index-database": "nix-index-database", 457 | "nixpkgs": "nixpkgs_3" 458 | }, 459 | "locked": { 460 | "lastModified": 1742038403, 461 | "narHash": "sha256-mzZdujmFWC+wHRvm0tKUlXL0LLz3YI3EDUCnFCtzgxY=", 462 | "owner": "thiagokokada", 463 | "repo": "nix-alien", 464 | "rev": "876d83ac35fc52145674282f87898824182edc48", 465 | "type": "github" 466 | }, 467 | "original": { 468 | "owner": "thiagokokada", 469 | "repo": "nix-alien", 470 | "type": "github" 471 | } 472 | }, 473 | "nix-index-database": { 474 | "inputs": { 475 | "nixpkgs": [ 476 | "nix-alien", 477 | "nixpkgs" 478 | ] 479 | }, 480 | "locked": { 481 | "lastModified": 1741619381, 482 | "narHash": "sha256-koZtlJRqi0/MD/AKd0KrXLA2NuBOVzlIyAJprjzpxZE=", 483 | "owner": "nix-community", 484 | "repo": "nix-index-database", 485 | "rev": "66537fb185462ba9b07f4e6f2d54894a1b2d04ab", 486 | "type": "github" 487 | }, 488 | "original": { 489 | "owner": "nix-community", 490 | "repo": "nix-index-database", 491 | "type": "github" 492 | } 493 | }, 494 | "nixpkgs": { 495 | "locked": { 496 | "lastModified": 1742069588, 497 | "narHash": "sha256-C7jVfohcGzdZRF6DO+ybyG/sqpo1h6bZi9T56sxLy+k=", 498 | "owner": "NixOS", 499 | "repo": "nixpkgs", 500 | "rev": "c80f6a7e10b39afcc1894e02ef785b1ad0b0d7e5", 501 | "type": "github" 502 | }, 503 | "original": { 504 | "owner": "NixOS", 505 | "ref": "nixos-unstable", 506 | "repo": "nixpkgs", 507 | "type": "github" 508 | } 509 | }, 510 | "nixpkgs_2": { 511 | "locked": { 512 | "lastModified": 1740695751, 513 | "narHash": "sha256-D+R+kFxy1KsheiIzkkx/6L63wEHBYX21OIwlFV8JvDs=", 514 | "owner": "NixOS", 515 | "repo": "nixpkgs", 516 | "rev": "6313551cd05425cd5b3e63fe47dbc324eabb15e4", 517 | "type": "github" 518 | }, 519 | "original": { 520 | "owner": "NixOS", 521 | "ref": "nixos-unstable", 522 | "repo": "nixpkgs", 523 | "type": "github" 524 | } 525 | }, 526 | "nixpkgs_3": { 527 | "locked": { 528 | "lastModified": 1741851582, 529 | "narHash": "sha256-cPfs8qMccim2RBgtKGF+x9IBCduRvd/N5F4nYpU0TVE=", 530 | "owner": "NixOS", 531 | "repo": "nixpkgs", 532 | "rev": "6607cf789e541e7873d40d3a8f7815ea92204f32", 533 | "type": "github" 534 | }, 535 | "original": { 536 | "owner": "NixOS", 537 | "ref": "nixos-unstable", 538 | "repo": "nixpkgs", 539 | "type": "github" 540 | } 541 | }, 542 | "nixpkgs_4": { 543 | "locked": { 544 | "lastModified": 1742422364, 545 | "narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=", 546 | "owner": "NixOS", 547 | "repo": "nixpkgs", 548 | "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", 549 | "type": "github" 550 | }, 551 | "original": { 552 | "owner": "NixOS", 553 | "ref": "nixos-unstable", 554 | "repo": "nixpkgs", 555 | "type": "github" 556 | } 557 | }, 558 | "nixpkgs_5": { 559 | "locked": { 560 | "lastModified": 1744463964, 561 | "narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=", 562 | "owner": "NixOS", 563 | "repo": "nixpkgs", 564 | "rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650", 565 | "type": "github" 566 | }, 567 | "original": { 568 | "owner": "NixOS", 569 | "repo": "nixpkgs", 570 | "rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650", 571 | "type": "github" 572 | } 573 | }, 574 | "nixvim": { 575 | "inputs": { 576 | "flake-parts": "flake-parts", 577 | "nixpkgs": [ 578 | "nixpkgs" 579 | ], 580 | "nuschtosSearch": "nuschtosSearch" 581 | }, 582 | "locked": { 583 | "lastModified": 1742559284, 584 | "narHash": "sha256-PSSjCCqpJPkCagkkdLODBVVonGxgwU5dN2CYlFPNVNw=", 585 | "owner": "nix-community", 586 | "repo": "nixvim", 587 | "rev": "c980271267ef146a6c30394c611a97e077471cf2", 588 | "type": "github" 589 | }, 590 | "original": { 591 | "owner": "nix-community", 592 | "repo": "nixvim", 593 | "type": "github" 594 | } 595 | }, 596 | "nuschtosSearch": { 597 | "inputs": { 598 | "flake-utils": "flake-utils", 599 | "ixx": "ixx", 600 | "nixpkgs": [ 601 | "nixvim", 602 | "nixpkgs" 603 | ] 604 | }, 605 | "locked": { 606 | "lastModified": 1741886583, 607 | "narHash": "sha256-sScfYKtxp3CYv5fJcHQDvQjqBL+tPNQqS9yf9Putd+s=", 608 | "owner": "NuschtOS", 609 | "repo": "search", 610 | "rev": "2974bc5fa3441a319fba943f3ca41f7dcd1a1467", 611 | "type": "github" 612 | }, 613 | "original": { 614 | "owner": "NuschtOS", 615 | "repo": "search", 616 | "type": "github" 617 | } 618 | }, 619 | "plover": { 620 | "flake": false, 621 | "locked": { 622 | "lastModified": 1746530207, 623 | "narHash": "sha256-ihosqIiE2W11vpdyniIdMRIfv4aa+ud+zC1hTCSX1J0=", 624 | "owner": "openstenoproject", 625 | "repo": "plover", 626 | "rev": "b8573e2833f5f0703bb991013c293242f31dac63", 627 | "type": "github" 628 | }, 629 | "original": { 630 | "owner": "openstenoproject", 631 | "repo": "plover", 632 | "type": "github" 633 | } 634 | }, 635 | "plover-flake": { 636 | "inputs": { 637 | "nixpkgs": "nixpkgs_5", 638 | "plover": "plover", 639 | "plover-machine-hid": "plover-machine-hid", 640 | "plover-stroke": "plover-stroke", 641 | "plover2cat": "plover2cat", 642 | "plover_plugins_registry": "plover_plugins_registry", 643 | "rtf-tokenize": "rtf-tokenize" 644 | }, 645 | "locked": { 646 | "lastModified": 1746589930, 647 | "narHash": "sha256-8BuZzsPL1k7FVtUd3L4GPzO1X6m5k81XVBMQTKFcU0M=", 648 | "owner": "openstenoproject", 649 | "repo": "plover-flake", 650 | "rev": "0376462b660e3dcd98ba3192d4c389242bf32970", 651 | "type": "github" 652 | }, 653 | "original": { 654 | "owner": "openstenoproject", 655 | "repo": "plover-flake", 656 | "type": "github" 657 | } 658 | }, 659 | "plover-machine-hid": { 660 | "flake": false, 661 | "locked": { 662 | "lastModified": 1737480175, 663 | "narHash": "sha256-gQAPJwOPQB11El2UyM3NOC7JlC0ppdkHiI0qEIFCEA0=", 664 | "owner": "dnaq", 665 | "repo": "plover-machine-hid", 666 | "rev": "5f80c9e53dbc52980cf48b55b1c1278e4f0f025e", 667 | "type": "github" 668 | }, 669 | "original": { 670 | "owner": "dnaq", 671 | "repo": "plover-machine-hid", 672 | "type": "github" 673 | } 674 | }, 675 | "plover-stroke": { 676 | "flake": false, 677 | "locked": { 678 | "lastModified": 1652559629, 679 | "narHash": "sha256-A75OMzmEn0VmDAvmQCp6/7uptxzwWJTwsih3kWlYioA=", 680 | "owner": "openstenoproject", 681 | "repo": "plover_stroke", 682 | "rev": "e717a1983b58dcba644153a542dbf8514425a39b", 683 | "type": "github" 684 | }, 685 | "original": { 686 | "owner": "openstenoproject", 687 | "repo": "plover_stroke", 688 | "type": "github" 689 | } 690 | }, 691 | "plover2cat": { 692 | "flake": false, 693 | "locked": { 694 | "lastModified": 1740191225, 695 | "narHash": "sha256-rAHNYkmEHLvnsKBkirCizGYJNgDzu1XEnLh54fmTW/U=", 696 | "owner": "greenwyrt", 697 | "repo": "plover2CAT", 698 | "rev": "c5187632e5e7a633c141704b1a59d9a5703ecd73", 699 | "type": "github" 700 | }, 701 | "original": { 702 | "owner": "greenwyrt", 703 | "repo": "plover2CAT", 704 | "type": "github" 705 | } 706 | }, 707 | "plover_plugins_registry": { 708 | "flake": false, 709 | "locked": { 710 | "lastModified": 1746250566, 711 | "narHash": "sha256-PvR6XhDokshD+yFAZ9/Xen/gThguxbMlHKwabSIL6hk=", 712 | "owner": "openstenoproject", 713 | "repo": "plover_plugins_registry", 714 | "rev": "52e8959bc4b671dc82fc4117d46d60d3aefc9638", 715 | "type": "github" 716 | }, 717 | "original": { 718 | "owner": "openstenoproject", 719 | "repo": "plover_plugins_registry", 720 | "type": "github" 721 | } 722 | }, 723 | "pre-commit-hooks": { 724 | "inputs": { 725 | "flake-compat": "flake-compat", 726 | "gitignore": "gitignore", 727 | "nixpkgs": [ 728 | "hyprland", 729 | "nixpkgs" 730 | ] 731 | }, 732 | "locked": { 733 | "lastModified": 1742058297, 734 | "narHash": "sha256-b4SZc6TkKw8WQQssbN5O2DaCEzmFfvSTPYHlx/SFW9Y=", 735 | "owner": "cachix", 736 | "repo": "git-hooks.nix", 737 | "rev": "59f17850021620cd348ad2e9c0c64f4e6325ce2a", 738 | "type": "github" 739 | }, 740 | "original": { 741 | "owner": "cachix", 742 | "repo": "git-hooks.nix", 743 | "type": "github" 744 | } 745 | }, 746 | "root": { 747 | "inputs": { 748 | "home-manager": "home-manager", 749 | "hyprland": "hyprland", 750 | "musnix": "musnix", 751 | "nix-alien": "nix-alien", 752 | "nixpkgs": "nixpkgs_4", 753 | "nixvim": "nixvim", 754 | "plover-flake": "plover-flake", 755 | "yeetmouse": "yeetmouse" 756 | } 757 | }, 758 | "rtf-tokenize": { 759 | "flake": false, 760 | "locked": { 761 | "lastModified": 1633915168, 762 | "narHash": "sha256-zwD2sRYTY1Kmm/Ag2hps9VRdUyQoi4zKtDPR+F52t9A=", 763 | "owner": "openstenoproject", 764 | "repo": "rtf_tokenize", 765 | "rev": "509b009b97077d5abcebe53d46ca6b67c3438a2c", 766 | "type": "github" 767 | }, 768 | "original": { 769 | "owner": "openstenoproject", 770 | "repo": "rtf_tokenize", 771 | "type": "github" 772 | } 773 | }, 774 | "systems": { 775 | "locked": { 776 | "lastModified": 1689347949, 777 | "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", 778 | "owner": "nix-systems", 779 | "repo": "default-linux", 780 | "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", 781 | "type": "github" 782 | }, 783 | "original": { 784 | "owner": "nix-systems", 785 | "repo": "default-linux", 786 | "type": "github" 787 | } 788 | }, 789 | "systems_2": { 790 | "locked": { 791 | "lastModified": 1681028828, 792 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 793 | "owner": "nix-systems", 794 | "repo": "default", 795 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 796 | "type": "github" 797 | }, 798 | "original": { 799 | "owner": "nix-systems", 800 | "repo": "default", 801 | "type": "github" 802 | } 803 | }, 804 | "xdph": { 805 | "inputs": { 806 | "hyprland-protocols": [ 807 | "hyprland", 808 | "hyprland-protocols" 809 | ], 810 | "hyprlang": [ 811 | "hyprland", 812 | "hyprlang" 813 | ], 814 | "hyprutils": [ 815 | "hyprland", 816 | "hyprutils" 817 | ], 818 | "hyprwayland-scanner": [ 819 | "hyprland", 820 | "hyprwayland-scanner" 821 | ], 822 | "nixpkgs": [ 823 | "hyprland", 824 | "nixpkgs" 825 | ], 826 | "systems": [ 827 | "hyprland", 828 | "systems" 829 | ] 830 | }, 831 | "locked": { 832 | "lastModified": 1741934139, 833 | "narHash": "sha256-ZhTcTH9FoeAtbPfWGrhkH7RjLJZ7GeF18nygLAMR+WE=", 834 | "owner": "hyprwm", 835 | "repo": "xdg-desktop-portal-hyprland", 836 | "rev": "150b0b6f52bb422a1b232a53698606fe0320dde0", 837 | "type": "github" 838 | }, 839 | "original": { 840 | "owner": "hyprwm", 841 | "repo": "xdg-desktop-portal-hyprland", 842 | "type": "github" 843 | } 844 | }, 845 | "yeetmouse": { 846 | "inputs": { 847 | "nixpkgs": [ 848 | "nixpkgs" 849 | ] 850 | }, 851 | "locked": { 852 | "dir": "nix", 853 | "lastModified": 1739811646, 854 | "narHash": "sha256-ISEA4XCDO1nZhWTTTPrzkqEMuVxKOZP6fXauhMpV0go=", 855 | "owner": "AndyFilter", 856 | "repo": "YeetMouse", 857 | "rev": "fa35c33b23fd2f2a594f09c0eb08ee8b21b9c536", 858 | "type": "github" 859 | }, 860 | "original": { 861 | "dir": "nix", 862 | "owner": "AndyFilter", 863 | "repo": "YeetMouse", 864 | "type": "github" 865 | } 866 | } 867 | }, 868 | "root": "root", 869 | "version": 7 870 | } 871 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | description = "Me when the linux"; 3 | 4 | inputs = { 5 | # NixOS official package source, using the unstable branch here 6 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 7 | 8 | nixvim = { 9 | url = "github:nix-community/nixvim/"; 10 | inputs.nixpkgs.follows = "nixpkgs"; 11 | }; 12 | 13 | musnix = {url = "github:musnix/musnix";}; 14 | 15 | nix-alien = {url = "github:thiagokokada/nix-alien";}; 16 | 17 | yeetmouse = { 18 | url = "github:AndyFilter/YeetMouse?dir=nix"; 19 | inputs.nixpkgs.follows = "nixpkgs"; 20 | }; 21 | 22 | home-manager = { 23 | url = "github:nix-community/home-manager"; 24 | inputs.nixpkgs.follows = "nixpkgs"; 25 | }; 26 | 27 | plover-flake.url = "github:openstenoproject/plover-flake"; 28 | 29 | hyprland.url = "github:hyprwm/Hyprland"; 30 | }; 31 | outputs = { 32 | nixpkgs, 33 | nixvim, 34 | home-manager, 35 | yeetmouse, 36 | ... 37 | } @ inputs: let 38 | system = "x86_64-linux"; 39 | 40 | unfreePkgs = import nixpkgs { 41 | system = "x86_64-linux"; 42 | config.allowUnfree = true; 43 | }; 44 | in { 45 | nixosConfigurations = { 46 | ratholomew = nixpkgs.lib.nixosSystem { 47 | system = "x86_64-linux"; 48 | specialArgs = {inherit inputs;}; 49 | modules = [ 50 | ./configuration.nix 51 | ./modules 52 | home-manager.nixosModules.home-manager 53 | inputs.musnix.nixosModules.musnix 54 | yeetmouse.nixosModules.default 55 | ]; 56 | }; 57 | }; 58 | packages = { 59 | ${system}.neovim = nixvim.legacyPackages.${system}.makeNixvimWithModule { 60 | pkgs = unfreePkgs; 61 | module = import ./modules/system/nixvim.nix; 62 | }; 63 | }; 64 | }; 65 | } 66 | -------------------------------------------------------------------------------- /hardware-configuration.nix: -------------------------------------------------------------------------------- 1 | # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 | # and may be overwritten by future invocations. Please make changes 3 | # to /etc/nixos/configuration.nix instead. 4 | { 5 | config, 6 | lib, 7 | modulesPath, 8 | ... 9 | }: { 10 | imports = [ 11 | (modulesPath + "/installer/scan/not-detected.nix") 12 | ]; 13 | 14 | boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "sd_mod"]; 15 | boot.initrd.kernelModules = []; 16 | boot.kernelModules = ["kvm-intel"]; 17 | boot.extraModulePackages = []; 18 | 19 | fileSystems."/" = { 20 | device = "/dev/disk/by-label/nixos"; 21 | fsType = "ext4"; 22 | options = ["noatime"]; 23 | }; 24 | 25 | fileSystems."/efi" = { 26 | device = "systemd-1"; 27 | fsType = "autofs"; 28 | }; 29 | 30 | fileSystems."/home/theo/Rattus" = { 31 | device = "/dev/disk/by-uuid/e0fa5f82-c2b8-417d-a4dd-9ff45ee93fb4"; 32 | fsType = "ext4"; 33 | options = ["nofail"]; 34 | }; 35 | 36 | fileSystems."/home/theo/Data" = { 37 | device = "/dev/disk/by-uuid/65e258da-2f64-4fa5-a170-afc2de0ff11c"; 38 | fsType = "btrfs"; 39 | options = ["compress-force=zstd:10" "noatime" "nofail"]; 40 | }; 41 | 42 | fileSystems."/boot" = { 43 | device = "/dev/disk/by-label/boot"; 44 | fsType = "vfat"; 45 | }; 46 | 47 | # This shit doesn't work anymore, seems lexar SSDs don't have the greatest QC 48 | # fileSystems."/home/theo/SSD" = { 49 | # device = "/dev/disk/by-uuid/47686783-7cf2-40e3-98cc-72e17b420217"; 50 | # fsType = "ext4"; 51 | # options = ["discard" "nofail"]; 52 | # }; 53 | 54 | swapDevices = []; 55 | 56 | # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 57 | # (the default) this is the recommended approach. When using systemd-networkd it's 58 | # still possible to use this option, but it's recommended to use it in conjunction 59 | # with explicit per-interface declarations with `networking.interfaces..useDHCP`. 60 | networking.useDHCP = lib.mkDefault true; 61 | # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; 62 | 63 | nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 64 | hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 65 | } 66 | -------------------------------------------------------------------------------- /home.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | outputs, 4 | ... 5 | }: { 6 | imports = [ 7 | inputs.home-manager.nixosModules.home-manager 8 | ]; 9 | home-manager = { 10 | extraSpecialArgs = {inherit inputs outputs;}; 11 | useGlobalPkgs = false; 12 | useUserPackages = true; 13 | users = { 14 | # Import your home-manager configuration 15 | theo = import ./home-manager; 16 | }; 17 | }; 18 | } 19 | -------------------------------------------------------------------------------- /images/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSmallTeaBoi/frogix/e92c5f5afc6bd96bdcfa548999474b5edfb60052/images/image1.png -------------------------------------------------------------------------------- /images/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSmallTeaBoi/frogix/e92c5f5afc6bd96bdcfa548999474b5edfb60052/images/image2.png -------------------------------------------------------------------------------- /images/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSmallTeaBoi/frogix/e92c5f5afc6bd96bdcfa548999474b5edfb60052/images/image3.png -------------------------------------------------------------------------------- /modules/default.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | outputs, 4 | ... 5 | }: { 6 | imports = [ 7 | ./system 8 | inputs.home-manager.nixosModules.home-manager 9 | ]; 10 | 11 | home-manager = { 12 | extraSpecialArgs = {inherit inputs outputs;}; 13 | useGlobalPkgs = false; 14 | useUserPackages = true; 15 | users = { 16 | # Import your home-manager configuration 17 | theo = import ./home-manager; 18 | }; 19 | }; 20 | } 21 | -------------------------------------------------------------------------------- /modules/home-manager/aichat.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | xdg.configFile."aichat/config.yaml".text = 3 | #yaml 4 | '' 5 | light_theme: true 6 | model: ollama 7 | clients: 8 | - type: ollama 9 | api_base: http://localhost:11434 10 | api_auth: null 11 | models: 12 | - name: llama3 13 | max_input_tokens: 8096 14 | - name: mistral 15 | max_input_tokens: 8096 16 | - name: qwen2:0.5b 17 | max_input_tokens: 8096 18 | - name: codellama:7b 19 | max_input_tokens: 8096 20 | - name: codegemma:2b 21 | max_input_tokens: 8096 22 | ''; 23 | 24 | xdg.configFile."aichat/roles.yaml".text = 25 | #yaml 26 | '' 27 | - name: grammar-genie 28 | prompt: > 29 | Your task is to take the text provided and rewrite it into a clear, grammatically correct version while preserving the original meaning as closely as possible. Correct any spelling mistakes, punctuation errors, verb tense issues, word choice problems, and other grammatical mistakes. 30 | 31 | - name: emoji 32 | prompt: you're a computer program that can only output emoji, mimicking the user's input text. 33 | ''; 34 | } 35 | -------------------------------------------------------------------------------- /modules/home-manager/beets.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | xdg.configFile."beets/config.yaml".text = '' 3 | plugins: convert duplicates rewrite badfiles embedart fetchart 4 | directory: /home/theo/Data/Music/ 5 | convert: 6 | dest: /home/theo/Data/music-lossier/ 7 | format: opus 8 | formats: 9 | opus: ffmpeg -i $source -y -vn -acodec libopus -ab 192k $dest 10 | rewrite: 11 | artist CaparaRezza: Caparezza 12 | embedart: 13 | remove_art_file: yes 14 | ''; 15 | } 16 | -------------------------------------------------------------------------------- /modules/home-manager/default.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | imports = [ 3 | ./aichat.nix 4 | ./beets.nix 5 | ./desktop.nix 6 | ./firefox.nix 7 | ./git.nix 8 | ./gtk.nix 9 | ./home.nix 10 | ./hyprland.nix 11 | ./iamb.nix 12 | ./kitty.nix 13 | ./lazygit.nix 14 | ./mako.nix 15 | ./plover.nix 16 | ./rofi.nix 17 | ./shell.nix 18 | ./tmux.nix 19 | ./zoxide.nix 20 | ]; 21 | programs.home-manager.enable = true; 22 | } 23 | -------------------------------------------------------------------------------- /modules/home-manager/desktop.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | xdg.desktopEntries = { 3 | steam = { 4 | name = "Steam"; 5 | genericName = "Game Store"; 6 | exec = "steam -no-cef-sandbox"; 7 | icon = "steam"; 8 | terminal = false; 9 | categories = ["Application"]; 10 | }; 11 | vesktop = { 12 | name = "Vesktop"; 13 | exec = "vesktop --enable-features=VaapiIgnoreDriverChecks,VaapiVideoEncoder,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo"; 14 | icon = "vesktop"; 15 | genericName = "Internet Messenger"; 16 | categories = [ 17 | "Network" 18 | "InstantMessaging" 19 | "Chat" 20 | ]; 21 | }; 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /modules/home-manager/firefox.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | programs.firefox = { 3 | enable = true; 4 | nativeMessagingHosts = [pkgs.tridactyl-native]; 5 | profiles.theo = { 6 | isDefault = true; 7 | userChrome = 8 | #css 9 | '' 10 | @import "${ 11 | builtins.fetchGit { 12 | url = "https://github.com/rockofox/firefox-minima"; 13 | ref = "main"; 14 | rev = "dc40a861b24b378982c265a7769e3228ffccd45a"; 15 | } 16 | }/userChrome.css"; 17 | 18 | .tabbrowser-tab:first-child{ counter-reset: nth-tab 0 } /* Change to -1 for 0-indexing */ 19 | .tab-text::before{ content: counter(nth-tab) " | "; counter-increment: nth-tab } 20 | 21 | .tabbrowser-tab .tab-label 22 | { 23 | font-family: FiraCode Nerd Font Mono !important; 24 | font-size: 14px !important; 25 | } 26 | ''; 27 | settings = { 28 | # Enable userChrome customizations 29 | "toolkit.legacyUserProfileCustomizations.stylesheets" = true; 30 | # Disable translation popup 31 | "browser.translations.automaticallyPopup" = false; 32 | "browser.cache.disk.enable" = false; 33 | }; 34 | }; 35 | }; 36 | 37 | # Tridactyl config 38 | xdg.configFile.".tridactylrc".text = 39 | #vim 40 | '' 41 | 42 | " Make sure we start from a clean state 43 | sanitise tridactyllocal 44 | 45 | " Set newtab to my dashboard 46 | set newtab home.iturriflix.local 47 | 48 | " Binds 49 | 50 | bind g1 tab 1 51 | bind g3 tab 3 52 | bind g5 tab 5 53 | bind g7 tab 7 54 | bind g2 tab 2 55 | bind g4 tab 4 56 | bind g6 tab 6 57 | bind g8 tab 8 58 | bind g9 tab 9 59 | 60 | " Comment toggler for Reddit, Hacker News and Lobste.rs 61 | bind ;c hint -Jc [class*="expand"],[class*="togg"],[class="comment_folder"] 62 | 63 | " make t open the selection with tabopen 64 | bind --mode=visual t composite js document.getSelection().toString() | fillcmdline tabopen 65 | 66 | " Make gu take you back to subreddit from comments 67 | bindurl reddit.com gu urlparent 4 68 | 69 | " Make `gi` on GitHub take you to the search box 70 | bindurl ^https://github.com gi hint -Vc .AppHeader-searchButton 71 | 72 | " Allow Ctrl-c to copy in the commandline 73 | unbind --mode=ex 74 | 75 | " Open right click menu on links 76 | bind ;C composite hint_focus; !s xdotool key Menu 77 | 78 | " Binds for new reader mode 79 | bind gr reader 80 | bind gR reader --tab 81 | 82 | " Misc settings 83 | 84 | " Set colorscheme 85 | colors shydactyl 86 | 87 | " Sane hinting mode 88 | set hintfiltermode vimperator-reflow 89 | set hintnames short 90 | 91 | " Defaults to 300ms but I'm a 'move fast and close the wrong tabs' kinda chap 92 | set hintdelay 200 93 | set hintchars srtnfgyeia 94 | ''; 95 | } 96 | -------------------------------------------------------------------------------- /modules/home-manager/git.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | programs.git = { 3 | enable = true; 4 | userEmail = "theoiturri@tutanota.com"; 5 | userName = "TheSmallTeaBoi"; 6 | extraConfig = { 7 | credential.helper = "cache --timeout=3600"; # Cache credentials for one hour 8 | }; 9 | }; 10 | } 11 | -------------------------------------------------------------------------------- /modules/home-manager/gtk.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | gtk = { 3 | enable = true; 4 | 5 | iconTheme = { 6 | name = "Papirus-Dark"; 7 | package = pkgs.catppuccin-papirus-folders; 8 | }; 9 | 10 | gtk3.extraConfig = { 11 | Settings = '' 12 | gtk-application-prefer-dark-theme=1 13 | gtk-cursor-theme-size=8 14 | ''; 15 | }; 16 | gtk4.extraConfig = { 17 | Settings = '' 18 | gtk-application-prefer-dark-theme=1 19 | gtk-cursor-theme-size=8 20 | ''; 21 | }; 22 | }; 23 | home.pointerCursor = { 24 | name = "catppuccin-mocha-light-cursors"; 25 | gtk.enable = true; 26 | x11.enable = true; 27 | size = 8; 28 | package = pkgs.catppuccin-cursors.mochaLight; 29 | }; 30 | qt = { 31 | enable = true; 32 | platformTheme.name = "adwaita-dark"; 33 | style.name = "adwaita-dark"; 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /modules/home-manager/home.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | home.username = "theo"; 3 | home.homeDirectory = "/home/theo"; 4 | home.stateVersion = "23.11"; 5 | } 6 | -------------------------------------------------------------------------------- /modules/home-manager/hyprland.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: let 2 | wallpaper = ./wallpaper.png; # Change this to change the wallpaper. 3 | in { 4 | wayland.windowManager.hyprland = { 5 | enable = true; 6 | xwayland.enable = true; 7 | 8 | settings = { 9 | "$mod" = "SUPER"; 10 | monitor = [ 11 | "DP-1, 1920x1080@60, 0x0, 1" 12 | "HDMI-A-1, 1366x768@60, auto-left, 1, transform, 3" 13 | ", preferred, auto, 1" 14 | ]; 15 | 16 | decoration = { 17 | rounding = 10; 18 | }; 19 | 20 | general = { 21 | border_size = 3; 22 | gaps_out = [0 10 10 10]; 23 | "col.active_border" = "0xf38ba8ff"; 24 | animation = [ 25 | "workspaces, 1, 2.5, easeOutQuart" 26 | "windows, 1, 2.5, easeOutQuart, slide" 27 | "fade, 1, 2, easeOutQuart" 28 | ]; 29 | snap = { 30 | enabled = true; 31 | }; 32 | }; 33 | 34 | cursor = { 35 | enable_hyprcursor = false; 36 | no_hardware_cursors = true; 37 | # allow_dumb_copy = false; 38 | }; 39 | 40 | curves = { 41 | bezier = "easeOutQuart, 0.25, 1, 0.5, 1"; 42 | }; 43 | 44 | bindm = [ 45 | # mouse movements 46 | "$mod, mouse:272, movewindow" 47 | "$mod, mouse:273, resizewindow" 48 | ]; 49 | 50 | input = { 51 | repeat_delay = 180; 52 | repeat_rate = 60; 53 | accel_profile = "flat"; 54 | kb_options = "compose:menu"; 55 | }; 56 | 57 | env = [ 58 | "LIBVA_DRIVER_NAME,nvidia" 59 | "XDG_SESSION_TYPE,wayland" 60 | "GBM_BACKEND,nvidia-drm" 61 | " __GLX_VENDOR_LIBRARY_NAME,nvidia" 62 | ]; 63 | 64 | exec-once = [ 65 | "sleep 20 && ${pkgs.waybar}/bin/waybar" 66 | "nicotine -n" 67 | "${pkgs.clipse}/bin/clipse -listen" 68 | "firefox" 69 | "vesktop" 70 | "${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr" 71 | "${pkgs.mako}/bin/mako" 72 | ]; 73 | 74 | windowrulev2 = [ 75 | "workspace 3 silent, class:(steam)" 76 | "workspace 2 silent, class:(vesktop)" 77 | "workspace 1 silent, class:(firefox)" 78 | "float,class:(clipse)" 79 | "size 622 652,class:(clipse)" 80 | "noblur, class:^(plugdata)$" 81 | ]; 82 | 83 | workspace = [ 84 | "1, monitor:DP-1" 85 | "2, monitor:HDMI-A-1" 86 | "3, monitor:HDMI-A-1" 87 | ]; 88 | 89 | bind = 90 | [ 91 | "$mod, Return, exec, kitty" 92 | "$mod, R, exec, kitty --class ${pkgs.clipse}/bin/clipse -e 'clipse'" 93 | 94 | "$mod, D, exec, rofi -show drun" 95 | "$mod, C, exec, rofi -show calc -modi calc -no-show-match -no-sort" 96 | "$mod, Period, exec, rofi -modi emoji -show emoji" 97 | 98 | "$mod, E, exec, nemo" # File manager 99 | 100 | "$mod, T, killactive" 101 | "$mod, TAB, workspace, previous" 102 | "$mod, J, cyclenext" 103 | "$mod, K, cyclenext, prev" 104 | "$mod, P, togglefloating" 105 | "$mod, F, fullscreen" 106 | 107 | ",XF86AudioLowerVolume, exec, ${pkgs.pulsemixer}/bin/pulsemixer --change-volume -5" 108 | ",XF86AudioRaiseVolume, exec, ${pkgs.pulsemixer}/bin/pulsemixer --change-volume +5 --max-volume 100" 109 | 110 | ",XF86AudioPlay, exec, ${pkgs.playerctl}/bin/playerctl play-pause" 111 | 112 | ", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area" 113 | "SHIFT, Print, exec, ${pkgs.grimblast}/bin/grimblast copy output" 114 | ] 115 | ++ ( 116 | # Workspaces 117 | builtins.concatLists (builtins.genList (i: let 118 | ws = i + 1; 119 | in [ 120 | "$mod, code:1${toString i}, workspace, ${toString ws}" 121 | "$mod CONTROL, code:1${toString i}, movetoworkspace, ${toString ws}" 122 | ]) 123 | 9) 124 | ); 125 | }; 126 | }; 127 | 128 | services.hyprpaper = { 129 | enable = true; 130 | settings = { 131 | preload = ["${wallpaper}"]; 132 | wallpaper = [",${wallpaper}"]; 133 | }; 134 | }; 135 | 136 | programs.waybar = { 137 | enable = true; 138 | settings = { 139 | mainBar = { 140 | layer = "top"; 141 | position = "top"; 142 | height = 15; 143 | output = "DP-1"; 144 | modules-left = ["hyprland/workspaces"]; 145 | modules-center = ["hyprland/window" "custom/waybar-mpris"]; 146 | modules-right = ["pulseaudio" "clock"]; 147 | 148 | "hyprland/window" = { 149 | separate-outputs = true; 150 | }; 151 | 152 | "hyprland/workspaces" = { 153 | persistent-workspaces = { 154 | "HDMI-A-1" = [2 3]; 155 | "DP-1" = [1]; 156 | }; 157 | }; 158 | 159 | "custom/waybar-mpris" = { 160 | "return-type" = "json"; 161 | "exec" = "waybar-mpris --position --autofocus --pause '' --play '' --separator '  '"; 162 | "on-click" = "waybar-mpris --send toggle"; 163 | "on-click-right" = "waybar-mpris --send player-next"; 164 | "on-scroll-up" = "waybar-mpris --send next"; 165 | "on-scroll-down" = "waybar-mpris --send prev"; 166 | "escape" = true; 167 | "hide-empty-text" = true; 168 | }; 169 | }; 170 | secondaryBar = { 171 | layer = "top"; 172 | position = "top"; 173 | height = 15; 174 | output = "HDMI-A-1"; 175 | modules-left = ["hyprland/workspaces"]; 176 | modules-center = ["hyprland/window"]; 177 | modules-right = ["cpu" "memory"]; 178 | 179 | "hyprland/window" = { 180 | separate-outputs = true; 181 | }; 182 | 183 | "hyprland/workspaces" = { 184 | persistent-workspaces = { 185 | "HDMI-A-1" = [2 3]; 186 | "DP-1" = [1]; 187 | }; 188 | }; 189 | }; 190 | }; 191 | style = 192 | #css 193 | '' 194 | * { 195 | background: transparent; 196 | border: none; 197 | border-radius: 0; 198 | font-family: Roboto, Helvetica, Arial, sans-serif; 199 | font-size: 13px; 200 | min-height: 16px; 201 | padding: 0 2px; 202 | margin: 1px 0; 203 | } 204 | 205 | 206 | tooltip { 207 | background: rgb(30, 30, 46); 208 | border: 1px solid rgb(30, 30, 46); 209 | } 210 | tooltip label { 211 | color: rgb(205, 214, 244); 212 | } 213 | 214 | #workspaces button { 215 | padding: 0 5px; 216 | background: rgb(30, 30, 46); 217 | color: rgb(205, 214, 244); 218 | border-bottom: 3px solid transparent; 219 | border-top: 3px solid transparent; 220 | } 221 | 222 | #workspaces button.active { 223 | background: rgb(49, 50, 68); 224 | border-bottom: 3px solid rgb(203, 166, 247); 225 | border-top: 3px solid rgb(203, 166, 247); 226 | color: rgb(205, 214, 244); 227 | } 228 | 229 | #workspaces button.urgent { 230 | background: rgb(49, 50, 68); 231 | border-bottom: 3px solid rgb(243, 139, 168); 232 | border-top: 3px solid rgb(243, 139, 168); 233 | color: rgb(205, 214, 244); 234 | } 235 | 236 | #workspaces button.visible { 237 | background: rgb(49, 50, 68); 238 | border-bottom: 3px solid rgb(203, 166, 247); 239 | color: rgb(205, 214, 244); 240 | } 241 | 242 | label.module{ 243 | padding: 0 10px; 244 | background: rgb(30, 30, 46); 245 | color: rgb(205, 214, 244); 246 | border-radius: 5px; 247 | } 248 | 249 | #window { 250 | background: rgb(30, 30, 46); 251 | color: rgb(205, 214, 244); 252 | border-radius: 5px; 253 | padding: 0 10px; 254 | margin: 0 5px; 255 | } 256 | 257 | window#waybar.empty #window { 258 | background-color: transparent; 259 | } 260 | 261 | #clock { 262 | background-color: rgb(137, 180, 250); 263 | color: rgb(30, 30, 46); 264 | margin: 0 2px; 265 | } 266 | 267 | #pulseaudio { 268 | background-color: rgb(243, 139, 168); 269 | color: rgb(30, 30, 46); 270 | margin: 0 2px; 271 | } 272 | 273 | #cpu { 274 | background-color: rgb(203, 166, 247); 275 | color: rgb(30, 30, 46); 276 | margin: 0 2px; 277 | } 278 | 279 | #memory { 280 | background-color: rgb(243, 139, 168); 281 | color: rgb(30, 30, 46); 282 | margin: 0 2px; 283 | } 284 | 285 | @keyframes blink { 286 | to { 287 | background-color: rgb(205, 214, 244); 288 | color: black; 289 | } 290 | } 291 | 292 | ''; 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /modules/home-manager/iamb.nix: -------------------------------------------------------------------------------- 1 | {config, ...}: { 2 | xdg.configFile."iamb/config.toml".text = '' 3 | [profiles.user] 4 | user_id = "@thesmallteaboi:matrix.org" 5 | 6 | [settings.notifications] 7 | enabled = true 8 | via = "bell" 9 | 10 | [settings] 11 | username_display = "displayname" 12 | 13 | [dirs] 14 | downloads = '${config.home.homeDirectory}/Unorganized/iamb/' 15 | ''; 16 | } 17 | -------------------------------------------------------------------------------- /modules/home-manager/kitty.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | programs.kitty = { 3 | enable = true; 4 | shellIntegration.enableFishIntegration = true; 5 | font.name = "FiraCode Nerd Font Mono"; 6 | themeFile = "Catppuccin-Mocha"; 7 | settings = { 8 | font_size = 10; 9 | confirm_os_window_close = 0; 10 | window_padding_width = 18; 11 | tab_bar_min_tabs = 2; 12 | tab_bar_edge = "top"; 13 | tab_bar_style = "powerline"; 14 | tab_powerline_style = "angled"; 15 | tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}"; 16 | }; 17 | # some sort of race condition with kitty and starship 18 | # https://github.com/kovidgoyal/kitty/issues/4476#issuecomment-1013617251 19 | shellIntegration.enableBashIntegration = false; 20 | }; 21 | } 22 | -------------------------------------------------------------------------------- /modules/home-manager/lazygit.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | programs.lazygit = { 3 | enable = true; 4 | settings = { 5 | gui.theme = { 6 | # Use the catppuccin mocha theme 7 | activeBorderColor = [ 8 | "#89b4fa" 9 | "bold" 10 | ]; 11 | inactiveBorderColor = ["#a6adc8"]; 12 | optionsTextColor = ["#89b4fa"]; 13 | selectedLineBgColor = ["#313244"]; 14 | selectedRangeBgColor = ["#313244"]; 15 | cherryPickedCommitBgColor = ["#bcc0cc"]; 16 | cherryPickedCommitFgColor = ["#1e66f5"]; 17 | unstagedChangesColor = ["#d20f39"]; 18 | defaultFgColor = ["#4c4f69"]; 19 | searchingActiveBorderColor = ["#df8e1d"]; 20 | }; 21 | }; 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /modules/home-manager/mako.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | services.mako = { 3 | enable = true; 4 | backgroundColor = "#1e1e2e"; 5 | textColor = "#cdd6f4"; 6 | borderRadius = 5; 7 | borderColor = "#cdd6f4"; 8 | margin = "20"; 9 | # defaultTimeout = 5; 10 | extraConfig = '' 11 | border-size=3 12 | ''; 13 | }; 14 | } 15 | -------------------------------------------------------------------------------- /modules/home-manager/plover.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | pkgs, 4 | ... 5 | }: { 6 | imports = [ 7 | inputs.plover-flake.homeManagerModules.plover 8 | ]; 9 | 10 | programs.plover = { 11 | enable = true; 12 | package = inputs.plover-flake.packages.${pkgs.system}.plover.withPlugins ( 13 | ps: 14 | with ps; [ 15 | plover-lapwing-aio 16 | plover-retro-untranslator 17 | plover-uinput 18 | plover-tapey-tape 19 | ] 20 | ); 21 | }; 22 | } 23 | -------------------------------------------------------------------------------- /modules/home-manager/rofi.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | programs.rofi = { 3 | enable = true; 4 | theme = "catppuccin-mocha"; 5 | plugins = [pkgs.rofi-emoji pkgs.rofi-calc]; 6 | extraConfig = { 7 | modi = "run,drun,window"; 8 | icon-theme = "Oranchelo"; 9 | show-icons = true; 10 | terminal = "kitty"; 11 | drun-display-format = "{icon} {name}"; 12 | location = 0; 13 | disable-history = false; 14 | hide-scrollbar = true; 15 | display-drun = "  Apps "; 16 | display-run = "  Run "; 17 | display-window = " 﩯 Window"; 18 | display-Network = " 󰤨 Network"; 19 | sidebar-mode = true; 20 | }; 21 | }; 22 | 23 | # Catppuccin theme 24 | xdg.configFile."rofi/catppuccin-mocha.rasi".text = 25 | #rasi 26 | '' 27 | * { 28 | bg-col: #1e1e2e; 29 | bg-col-light: #1e1e2e; 30 | border-col: #1e1e2e; 31 | selected-col: #1e1e2e; 32 | blue: #89b4fa; 33 | fg-col: #cdd6f4; 34 | fg-col2: #f38ba8; 35 | grey: #6c7086; 36 | 37 | width: 600; 38 | font: "JetBrainsMono Nerd Font 14"; 39 | } 40 | 41 | element-text, element-icon , mode-switcher { 42 | background-color: inherit; 43 | text-color: inherit; 44 | } 45 | 46 | window { 47 | height: 360px; 48 | border: 3px; 49 | border-color: @border-col; 50 | background-color: @bg-col; 51 | } 52 | 53 | mainbox { 54 | background-color: @bg-col; 55 | } 56 | 57 | inputbar { 58 | children: [prompt,entry]; 59 | background-color: @bg-col; 60 | border-radius: 5px; 61 | padding: 2px; 62 | } 63 | 64 | prompt { 65 | background-color: @blue; 66 | padding: 6px; 67 | text-color: @bg-col; 68 | border-radius: 3px; 69 | margin: 20px 0px 0px 20px; 70 | } 71 | 72 | textbox-prompt-colon { 73 | expand: false; 74 | str: ":"; 75 | } 76 | 77 | entry { 78 | padding: 6px; 79 | margin: 20px 0px 0px 10px; 80 | text-color: @fg-col; 81 | background-color: @bg-col; 82 | } 83 | 84 | listview { 85 | border: 0px 0px 0px; 86 | padding: 6px 0px 0px; 87 | margin: 10px 0px 0px 20px; 88 | columns: 2; 89 | lines: 5; 90 | background-color: @bg-col; 91 | } 92 | 93 | element { 94 | padding: 5px; 95 | background-color: @bg-col; 96 | text-color: @fg-col ; 97 | } 98 | 99 | element-icon { 100 | size: 25px; 101 | } 102 | 103 | element selected { 104 | background-color: @selected-col ; 105 | text-color: @fg-col2 ; 106 | } 107 | 108 | mode-switcher { 109 | spacing: 0; 110 | } 111 | 112 | button { 113 | padding: 10px; 114 | background-color: @bg-col-light; 115 | text-color: @grey; 116 | vertical-align: 0.5; 117 | horizontal-align: 0.5; 118 | } 119 | 120 | button selected { 121 | background-color: @bg-col; 122 | text-color: @blue; 123 | } 124 | 125 | message { 126 | background-color: @bg-col-light; 127 | margin: 2px; 128 | padding: 2px; 129 | border-radius: 5px; 130 | } 131 | 132 | textbox { 133 | padding: 6px; 134 | margin: 20px 0px 0px 20px; 135 | text-color: @blue; 136 | background-color: @bg-col-light; 137 | } 138 | ''; 139 | } 140 | -------------------------------------------------------------------------------- /modules/home-manager/shell.nix: -------------------------------------------------------------------------------- 1 | { 2 | pkgs, 3 | lib, 4 | ... 5 | }: { 6 | home.sessionVariables = { 7 | fish_tmux_config = "~/.config/tmux/tmux.config"; 8 | }; 9 | programs.fish = { 10 | enable = true; 11 | functions = { 12 | fish_greeting = ""; 13 | # fish_prompt = "set_color red; echo $IN_NIX_SHELL '> '"; 14 | }; 15 | plugins = [ 16 | ]; 17 | 18 | shellAliases = { 19 | l = "eza -lh --icons"; 20 | ls = "eza --icons"; 21 | la = "eza -a --icons"; 22 | ll = "eza -i --icons"; 23 | tree = "eza --tree --icons"; 24 | nixb = "sudo nixos-rebuild switch --flake ~/frogix/"; 25 | nsearch = "nix search nixpkgs"; 26 | dev = "nix develop --command fish"; # This shit sucks 27 | det = "tmux detach"; 28 | }; 29 | # fix starship prompt to only have newlines after the first command 30 | # https://github.com/starship/starship/issues/560#issuecomment-1465630645 31 | shellInit = '' 32 | function postexec_newline --on-event fish_postexec 33 | echo "" 34 | end 35 | ''; 36 | # add transient prompt for fish via transient.fish plugin in fish.nix 37 | # the starship transience module doesn't handle empty commands properly 38 | # https://github.com/starship/starship/issues/4929 39 | interactiveShellInit = 40 | lib.mkAfter 41 | # fish 42 | '' 43 | function transient_prompt_func 44 | starship module character 45 | end 46 | 47 | # Enter tmux if not started 48 | if not set -q TMUX 49 | set -g TMUX tmux new-session -d -s base 50 | eval $TMUX 51 | tmux attach-session -t base 52 | end 53 | ''; 54 | }; 55 | 56 | # fish plugins, home-manager's programs.fish.plugins has a weird format 57 | home.packages = with pkgs.fishPlugins; [ 58 | # used as starship's transient prompt does not handle empty commands 59 | transient-fish 60 | ]; 61 | 62 | programs.starship = { 63 | enable = true; 64 | enableBashIntegration = true; 65 | enableFishIntegration = true; 66 | settings = let 67 | dir_bg = "#ea76cb"; 68 | accent_style = "bg:${dir_bg} fg:#4c4f69"; 69 | important_style = "bg:#4c4f69 fg:#eff1f5"; 70 | in { 71 | add_newline = false; 72 | format = lib.concatStrings [ 73 | # begin left format 74 | "$username" 75 | "$hostname" 76 | "$directory[](${dir_bg}) " 77 | # end left format 78 | "$fill" 79 | # begin right format 80 | "[█](${dir_bg})" 81 | "[](${accent_style})" 82 | "$git_branch" 83 | "$git_state" 84 | "$git_status" 85 | "$nix_shell" 86 | "[█](${dir_bg})" 87 | # end right format 88 | "$line_break" 89 | "$character" 90 | ]; 91 | 92 | # modules 93 | character = { 94 | error_symbol = "[ ](bold red)"; 95 | success_symbol = "[](purple)"; 96 | vimcmd_symbol = "[](green)"; 97 | }; 98 | username = { 99 | style_root = important_style; 100 | style_user = important_style; 101 | format = "[ $user in ]($style)"; 102 | }; 103 | hostname = { 104 | style = important_style; 105 | }; 106 | directory = { 107 | format = "[ $path ]($style)"; 108 | style = accent_style; 109 | }; 110 | git_branch = { 111 | symbol = ""; 112 | format = "[ $symbol $branch]($style)"; 113 | style = accent_style; 114 | }; 115 | git_state = { 116 | format = "([ $state( $progress_current/$progress_total)]($style)) "; 117 | style = accent_style; 118 | }; 119 | git_status = { 120 | conflicted = "​"; 121 | deleted = "​"; 122 | format = "[[ (*$conflicted$untracked$modified$staged$renamed$deleted)]($style)($ahead_behind$stashed)]($style)"; 123 | modified = "​"; 124 | renamed = "​"; 125 | staged = "​"; 126 | stashed = "≡"; 127 | style = accent_style; 128 | untracked = "​"; 129 | }; 130 | nix_shell = { 131 | format = "[ $symbol]($style)"; 132 | symbol = ""; 133 | style = accent_style; 134 | }; 135 | fill = { 136 | symbol = ""; 137 | }; 138 | line_break = { 139 | disabled = false; 140 | }; 141 | time = { 142 | format = "[ $time]($style)"; 143 | disabled = false; 144 | time_format = "%H:%M"; 145 | style = accent_style; 146 | }; 147 | }; 148 | }; 149 | } 150 | -------------------------------------------------------------------------------- /modules/home-manager/tmux.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | programs.tmux = { 3 | enable = true; 4 | plugins = with pkgs; [ 5 | tmuxPlugins.catppuccin 6 | ]; 7 | 8 | extraConfig = 9 | #tmux 10 | '' 11 | set -s escape-time 0 12 | set -g prefix M-a 13 | set -g status-position bottom 14 | 15 | # Set titles correctly 16 | set -s set-titles on 17 | set -s set-titles-string "#T" 18 | 19 | # 0-Index makes sense for offsets, not this. 20 | set -g base-index 1 21 | setw -g pane-base-index 1 22 | 23 | # Me when this piece of software is still stuck in 1996 24 | set-option -g default-terminal "screen-256color" 25 | 26 | # Catppuccin theme 27 | set -g @catppuccin_flavor "mocha" 28 | set -g @catppuccin_status_background "default" 29 | set -g @catppuccin_window_status_style "rounded" 30 | set -g status-style fg=default,bg=default 31 | 32 | # Make catppuccin respect the window names. 33 | set -g @catppuccin_window_current_text " #W" 34 | set -g @catppuccin_window_text " #W" 35 | 36 | # Set the modules 37 | set -g status-left "" 38 | set -g status-right "" 39 | 40 | # Reorder windows when one gets deleted. 41 | set -g renumber-windows on 42 | 43 | # Don't display status line if only 1 window 44 | if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on" 45 | set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' 46 | set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' 47 | 48 | # This is needed for catppuccin to work, for whatever reason... 49 | set-hook -g after-new-session "source-file ~/.config/tmux/tmux.conf" 50 | 51 | # It's 2025, ffs 52 | set-option -g history-limit 250000 53 | 54 | # M-Space brings out the menu 55 | bind-key -n M-Space display-menu\ 56 | "New Session" S "command-prompt -p \"New Session:\" \"new-session -A -s '%%'\"" \ 57 | "Kill Session" x "kill-session" \ 58 | "Kill Other Session(s)" X "kill-session -a" \ 59 | "" \ 60 | "New Window"  new-window \ 61 | "With directory"  "new-window -c '#{pane_current_path}'" \ 62 | "Kill Window" 󰆴 "killw" \ 63 | "Choose Window" 󰒅 choose-window \ 64 | "Previous Window"  previous-window \ 65 | "Next Window"  next-window \ 66 | "Swap Window Right"  "swap-window -t -1" \ 67 | "Swap Window Left"  "swap-window -t +1" \ 68 | "Horizontal Split"  "split-window -h" \ 69 | "Vertical Split"  "split-window -v" \ 70 | "" \ 71 | "Layout Horizontal"  "select-layout even-horizontal" \ 72 | "Layout Vertical"  "select-layout even-horizontal" \ 73 | "" \ 74 | "Swap Pane Up" < "swap-pane -U" \ 75 | "Swap Pane Down" > "swap-pane -D" \ 76 | "Break Pane" t break-pane \ 77 | "Join Pane" j "choose-window 'join-pane -h -s \"%%\"'" \ 78 | "#{?window_zoomed_flag,Unzoom,Zoom}" z "resize-pane -Z" \ 79 | "" \ 80 | "Nvim"  "new-window -n "Nvim" -c '#{pane_current_path}' 'nvim'" \ 81 | "With directory"  "new-window -n "Nvim" -c '#{pane_current_path}' 'nvim .'" \ 82 | "Notes" 󰏪 "new-window -n "Notes" -c '/home/theo/Data/Personal/diary/' 'nvim notes.txt'" \ 83 | "Nix" 󱄅 "new-window -n "Nix" -c '/home/theo/frogix/' 'nvim .'" \ 84 | ""\ 85 | "Lazygit"  "new-window -n "Lazygit" -c '#{pane_current_path}' 'lazygit'" \ 86 | "Bottom"  "new-window -n "Bottom" 'btm'" 87 | 88 | 89 | 90 | bind h split-window -h 91 | bind v split-window -v 92 | bind -n M-Tab last-window 93 | bind -n M-n select-pane -t :.+ 94 | bind -n M-p select-pane -t :.- 95 | 96 | # Go to window with Alt+1-9 97 | bind -n M-1 selectw -t 1 98 | bind -n M-2 selectw -t 2 99 | bind -n M-3 selectw -t 3 100 | bind -n M-4 selectw -t 4 101 | bind -n M-5 selectw -t 5 102 | bind -n M-6 selectw -t 6 103 | bind -n M-7 selectw -t 7 104 | bind -n M-8 selectw -t 8 105 | bind -n M-9 selectw -t 9 106 | 107 | 108 | # Unbind 109 | unbind '"' 110 | unbind % 111 | ''; 112 | }; 113 | } 114 | -------------------------------------------------------------------------------- /modules/home-manager/wallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheSmallTeaBoi/frogix/e92c5f5afc6bd96bdcfa548999474b5edfb60052/modules/home-manager/wallpaper.png -------------------------------------------------------------------------------- /modules/home-manager/zoxide.nix: -------------------------------------------------------------------------------- 1 | {...}: { 2 | programs.zoxide = { 3 | enable = true; 4 | options = [ 5 | "--cmd cd" 6 | ]; 7 | }; 8 | } 9 | -------------------------------------------------------------------------------- /modules/system/GUI-nvidia.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | config, 4 | pkgs, 5 | ... 6 | }: { 7 | nixpkgs.config.allowUnfree = true; 8 | 9 | hardware = { 10 | graphics = { 11 | enable = true; 12 | enable32Bit = true; 13 | }; 14 | }; 15 | 16 | services.xserver.videoDrivers = ["nvidia"]; 17 | 18 | # nvidia configuration 19 | hardware.nvidia = { 20 | modesetting.enable = true; 21 | powerManagement.enable = false; 22 | powerManagement.finegrained = false; 23 | open = false; 24 | nvidiaSettings = true; 25 | package = config.boot.kernelPackages.nvidiaPackages.beta; 26 | }; 27 | 28 | programs.hyprland = { 29 | enable = true; 30 | package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; 31 | portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; 32 | }; 33 | 34 | services.libinput = { 35 | enable = true; 36 | 37 | # all my homies love mouse acceleration 38 | # but the libinput one is useless, doesn't get recognized by 39 | # games that use raw input, which makes sense but isn't what 40 | # a gamer wants. 41 | # for the actual config, chech `./yeetmouse.nix` 42 | mouse = { 43 | accelProfile = "flat"; 44 | middleEmulation = false; 45 | }; 46 | }; 47 | 48 | services.displayManager = { 49 | sddm.enable = true; 50 | sddm.theme = "catppuccin"; 51 | sddm.wayland.enable = true; 52 | defaultSession = "hyprland"; 53 | autoLogin = { 54 | enable = true; 55 | user = "theo"; 56 | }; 57 | }; 58 | } 59 | -------------------------------------------------------------------------------- /modules/system/boot.nix: -------------------------------------------------------------------------------- 1 | { 2 | config, 3 | pkgs, 4 | ... 5 | }: { 6 | boot = { 7 | kernelPackages = pkgs.linuxPackages_xanmod; 8 | extraModulePackages = [ 9 | config.boot.kernelPackages.v4l2loopback 10 | ]; 11 | extraModprobeConfig = '' 12 | options v4l2loopback exclusive_caps=1 13 | ''; 14 | kernelParams = [ 15 | "quiet" 16 | ]; 17 | loader.timeout = 0; 18 | 19 | # Use the systemd-boot EFI boot loader. 20 | loader = { 21 | systemd-boot.enable = true; 22 | efi.canTouchEfiVariables = true; 23 | }; 24 | 25 | initrd.checkJournalingFS = false; # fsck seems to always fail, for whatever reason. 26 | }; 27 | 28 | powerManagement.cpuFreqGovernor = "performance"; 29 | } 30 | -------------------------------------------------------------------------------- /modules/system/default.nix: -------------------------------------------------------------------------------- 1 | { 2 | imports = [ 3 | ./yeetmouse.nix 4 | ./GUI-nvidia.nix 5 | ./boot.nix 6 | ./droidcam.nix 7 | ./networkd.nix 8 | ./packages.nix 9 | ./services.nix 10 | ./shell.nix 11 | ./steam.nix 12 | ./wine.nix 13 | ./musnix.nix 14 | ]; 15 | } 16 | -------------------------------------------------------------------------------- /modules/system/droidcam.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | pkgs, 4 | ... 5 | }: { 6 | programs = { 7 | droidcam = { 8 | enable = true; 9 | }; 10 | dconf = { 11 | enable = true; 12 | }; 13 | }; 14 | } 15 | -------------------------------------------------------------------------------- /modules/system/musnix.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | pkgs, 4 | ... 5 | }: { 6 | musnix = { 7 | enable = true; 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /modules/system/networkd.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | outputs, 4 | config, 5 | pkgs, 6 | ... 7 | }: { 8 | networking.dhcpcd = { 9 | enable = true; 10 | wait = "background"; 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /modules/system/nixvim.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | config = { 3 | extraPackages = with pkgs; [ 4 | black 5 | alejandra 6 | codespell 7 | ormolu 8 | ghc 9 | gcc 10 | fd 11 | prettierd 12 | ]; 13 | opts = { 14 | updatetime = 100; 15 | number = true; 16 | relativenumber = true; 17 | smartcase = true; 18 | list = true; 19 | foldmethod = "expr"; 20 | foldexpr = "nvim_treesitter#foldexpr()"; 21 | foldenable = true; 22 | foldlevel = 99; 23 | scrolloff = 15; 24 | signcolumn = "yes"; 25 | fo = "cqj"; 26 | tabstop = 2; 27 | shiftwidth = 2; 28 | expandtab = true; 29 | 30 | textwidth = 80; 31 | # This means it'll show the colorcolumn at the textwidth 32 | colorcolumn = "+0"; 33 | 34 | # show spaces and stuff 35 | listchars = "tab:▸ ,trail:·,nbsp:␣"; 36 | }; 37 | globals = { 38 | mapleader = " "; 39 | }; 40 | extraConfigLua = 41 | # lua 42 | '' 43 | -- Make lsp popups pretty 44 | local _border = "rounded" 45 | 46 | vim.lsp.handlers["textDocument/hover"] = vim.lsp.with( 47 | vim.lsp.handlers.hover, { 48 | border = _border 49 | } 50 | ) 51 | 52 | vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with( 53 | vim.lsp.handlers.signature_help, { 54 | border = _border 55 | } 56 | ) 57 | 58 | vim.diagnostic.config{ 59 | float={border=_border} 60 | }; 61 | 62 | require('lspconfig.ui.windows').default_options = { 63 | border = _border 64 | } 65 | 66 | -- This fixes luasnip. 67 | package.preload["jsregexp"] = package.loadlib("${pkgs.lua51Packages.jsregexp}/lib/lua/5.1/jsregexp/core.so", "luaopen_jsregexp_core"); 68 | ''; 69 | package = pkgs.neovim-unwrapped; 70 | enableMan = true; 71 | clipboard.register = "unnamedplus"; 72 | colorscheme = "catppuccin"; 73 | colorschemes.catppuccin = { 74 | enable = true; 75 | settings = { 76 | flavour = "mocha"; 77 | transparent_background = true; 78 | }; 79 | }; 80 | plugins = { 81 | treesitter = { 82 | enable = true; 83 | # settings = { 84 | # ensure_installed = [ 85 | # "all" 86 | # ]; 87 | # }; 88 | nixvimInjections = true; 89 | }; 90 | web-devicons.enable = true; 91 | lsp = { 92 | enable = true; 93 | servers = { 94 | #nix 95 | nixd.enable = true; 96 | 97 | #python 98 | pyright.enable = true; 99 | ruff.enable = true; 100 | 101 | #bash 102 | bashls.enable = true; 103 | 104 | #lua 105 | lua_ls.enable = true; 106 | 107 | #javascript 108 | ts_ls.enable = true; 109 | 110 | #html 111 | html.enable = true; 112 | 113 | #filesystem 114 | fsautocomplete.enable = true; 115 | }; 116 | keymaps.lspBuf = { 117 | "gd" = "definition"; 118 | "gD" = "references"; 119 | "gi" = "implementation"; 120 | "K" = "hover"; 121 | }; 122 | }; 123 | nix.enable = true; 124 | comment.enable = true; 125 | telescope.enable = true; 126 | intellitab.enable = true; 127 | indent-o-matic.enable = true; 128 | 129 | # Make it pretty 130 | dressing.enable = true; 131 | indent-blankline.enable = true; 132 | colorizer.enable = true; 133 | lualine.enable = true; 134 | lspkind = { 135 | enable = true; 136 | symbolMap = {Codeium = "󰚩";}; 137 | }; 138 | 139 | neocord.enable = true; 140 | 141 | cursorline.enable = true; 142 | 143 | # Make it usable 144 | gitsigns = { 145 | enable = true; 146 | settings = { 147 | current_line_blame = true; 148 | }; 149 | }; 150 | 151 | hop = { 152 | enable = true; 153 | settings = { 154 | keys = "srtnyeiafg"; 155 | }; 156 | }; 157 | 158 | conform-nvim = { 159 | enable = true; 160 | settings = { 161 | lsp_fallback = true; 162 | formatters_by_ft = { 163 | # Conform will run multiple formatters sequentially 164 | python = ["black"]; 165 | 166 | nix = ["alejandra"]; 167 | 168 | html = ["prettierd"]; 169 | css = ["prettierd"]; 170 | javascript = ["prettierd"]; 171 | 172 | # Use the "*" filetype to run formatters on all filetypes. 173 | #"*" = ["codespell"]; 174 | # Use the "_" filetype to run formatters on filetypes that don't 175 | # have other formatters configured. 176 | "_" = ["trim_whitespace"]; 177 | }; 178 | }; 179 | }; 180 | 181 | luasnip = { 182 | enable = true; 183 | settings = { 184 | enable_autosnippets = true; 185 | }; 186 | fromVscode = [ 187 | { 188 | lazyLoad = true; 189 | paths = "${pkgs.vimPlugins.friendly-snippets}"; 190 | } 191 | ]; 192 | }; 193 | 194 | which-key = { 195 | enable = true; 196 | }; 197 | 198 | vim-surround.enable = true; 199 | nvim-autopairs.enable = true; 200 | rainbow-delimiters.enable = true; 201 | 202 | oil = { 203 | enable = true; 204 | settings.defaultFileExplorer = true; 205 | }; 206 | 207 | cmp = { 208 | enable = true; 209 | autoEnableSources = true; 210 | settings = { 211 | experimental = {ghost_text = true;}; 212 | snippet = {expand = "luasnip";}; 213 | sources = [ 214 | {name = "nvim_lsp";} 215 | {name = "luasnip";} 216 | {name = "path";} 217 | ]; 218 | mapping = { 219 | "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; 220 | "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; 221 | "" = "cmp.mapping.select_next_item()"; 222 | "" = "cmp.mapping.select_prev_item()"; 223 | "" = "cmp.mapping.abort()"; 224 | "" = "cmp.mapping.scroll_docs(-4)"; 225 | "" = "cmp.mapping.scroll_docs(4)"; 226 | "" = "cmp.mapping.complete()"; 227 | "" = "cmp.mapping.confirm({ select = false })"; 228 | "" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })"; 229 | }; 230 | }; 231 | }; 232 | 233 | # cmp-ai.settings = { 234 | # enable = true; 235 | # provider = "Ollama"; 236 | # provider_options = { 237 | # model = "codellama:7b"; 238 | # }; 239 | # max_lines = 50; 240 | # notify = true; 241 | # run_on_every_keystroke = true; 242 | # }; 243 | }; 244 | 245 | keymaps = [ 246 | # Oil 247 | { 248 | action = "Oil ."; 249 | key = "f"; 250 | options.desc = "Open file explorer"; 251 | } 252 | # Telescope 253 | { 254 | action = "Telescope find_files"; 255 | key = "tf"; 256 | options.desc = "Find files"; 257 | } 258 | { 259 | action = "Telescope buffers"; 260 | key = "to"; 261 | options.desc = "Pick open buffers"; 262 | } 263 | { 264 | action = "Telescope live_grep"; 265 | key = "tt"; 266 | options.desc = "Find text in project"; 267 | } 268 | # LSP 269 | { 270 | action = "lua vim.lsp.buf.code_action()"; 271 | key = "lc"; 272 | options.desc = "Code actions"; 273 | } 274 | { 275 | action = "lua vim.lsp.buf.rename()"; 276 | key = "lr"; 277 | options.desc = "Rename"; 278 | } 279 | { 280 | action = "lua vim.diagnostic.open_float()"; 281 | key = "lf"; 282 | options.desc = "Open diagnostic"; 283 | } 284 | # Other 285 | { 286 | mode = "n"; 287 | action = "nohlsearch"; 288 | key = ""; 289 | } 290 | { 291 | mode = "n"; 292 | action = "HopWord"; 293 | key = ""; 294 | } 295 | { 296 | mode = "n"; 297 | action = "HopPattern"; 298 | key = "/"; 299 | } 300 | { 301 | mode = "n"; 302 | action = "HopYankChar1"; 303 | key = "y"; 304 | } 305 | { 306 | mode = "n"; 307 | action = "b#"; 308 | key = "b"; 309 | } 310 | # LuaSnip 311 | { 312 | mode = ["n" "i" "s"]; 313 | action = "lua require('luasnip').jump(-1)"; 314 | key = ""; 315 | } 316 | { 317 | mode = ["n" "i" "s"]; 318 | action = "lua require('luasnip').jump(1)"; 319 | key = ""; 320 | } 321 | ]; 322 | 323 | autoCmd = [ 324 | { 325 | event = ["BufWritePre"]; 326 | command = "lua require(\"conform\").format()"; 327 | } 328 | { 329 | event = ["BufRead" "BufNewFile"]; 330 | pattern = ["*/diary/*.txt"]; 331 | command = "source notes.vim"; 332 | } 333 | { 334 | event = ["BufWritePre"]; 335 | pattern = ["*/diary/*.txt"]; 336 | command = "helptags ./"; 337 | } 338 | { 339 | event = ["BufReadPost"]; 340 | pattern = ["*/diary/*.txt"]; 341 | command = "normal!'\""; 342 | } 343 | ]; 344 | }; 345 | } 346 | -------------------------------------------------------------------------------- /modules/system/packages.nix: -------------------------------------------------------------------------------- 1 | { 2 | pkgs, 3 | inputs, 4 | ... 5 | }: { 6 | nixpkgs.config.allowUnfree = true; 7 | environment.systemPackages = with pkgs; [ 8 | # Ricing stuff 9 | nerd-fonts.fira-code 10 | catppuccin-papirus-folders 11 | waybar-mpris 12 | mako 13 | rofi 14 | 15 | # Terminal tools 16 | clipse 17 | wl-clipboard 18 | fzf 19 | ripgrep 20 | neofetch 21 | wget 22 | rclone 23 | git 24 | pulsemixer 25 | bottom 26 | eza 27 | file 28 | beets 29 | yt-dlp 30 | ffmpeg 31 | iamb 32 | qmk 33 | qmk-udev-rules 34 | playerctl 35 | picotts 36 | mp3val 37 | flac 38 | 39 | vial 40 | 41 | # Coding, I guess 42 | inputs.self.packages.x86_64-linux.neovim 43 | inputs.nix-alien.packages.x86_64-linux.nix-alien 44 | 45 | devenv 46 | mysql-workbench 47 | 48 | # Random GUI stuff 49 | feh 50 | obsidian # /shrug 51 | pandoc 52 | warpinator 53 | grimblast 54 | appimage-run 55 | nemo 56 | 57 | heroic-unwrapped 58 | 59 | vesktop 60 | 61 | revolt-desktop 62 | 63 | # Art? 64 | obs-studio 65 | 66 | # compressed stuff 67 | xarchiver 68 | unar 69 | unzip 70 | zip 71 | p7zip 72 | 73 | # Game stuff 74 | 75 | xonotic-sdl 76 | 77 | # Emulation { 78 | retroarchFull 79 | pcsx2 80 | flycast 81 | ppsspp 82 | torzu 83 | # } 84 | 85 | logmein-hamachi # my beloved 86 | parsec-bin # actual black magic. 87 | protontricks 88 | 89 | # Piracy stuff :) 90 | aria2 91 | 92 | # Music stuff 93 | nicotine-plus 94 | picard 95 | mpv 96 | tauon # The best music player to ever exist 97 | 98 | # Music making 99 | 100 | AMB-plugins 101 | aether-lv2 102 | autotalent 103 | bchoppr 104 | calf 105 | caps 106 | carla 107 | chow-centaur 108 | chow-kick 109 | chow-phaser 110 | chow-tape-model 111 | cmt 112 | dexed 113 | distrho-ports 114 | dragonfly-reverb 115 | drumkv1 116 | eq10q 117 | geonkick 118 | guitarix 119 | helm 120 | infamousPlugins 121 | lsp-plugins 122 | mod-distortion 123 | ninjas2 124 | noise-repellent 125 | oxefmsynth 126 | plugdata 127 | quadrafuzz 128 | samplv1 129 | sfizz 130 | sorcer 131 | surge-XT 132 | synthv1 133 | tap-plugins 134 | vital 135 | x42-plugins 136 | zam-plugins 137 | zita-at1 138 | zynaddsubfx 139 | 140 | rubberband 141 | 142 | # Misc 143 | btrfs-progs # btrfs my beloved 144 | rofi-power-menu 145 | rofi-pulse-select 146 | ]; 147 | } 148 | -------------------------------------------------------------------------------- /modules/system/services.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | services = { 3 | # This is needed for Vial and plover 4 | udev.extraRules = '' 5 | KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" 6 | KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput" 7 | ''; 8 | 9 | # Drive mounting 10 | gvfs = { 11 | enable = true; 12 | package = pkgs.gvfs; 13 | }; 14 | 15 | udisks2.enable = true; 16 | 17 | # Does anyone know how to only apply this to SSDs? 18 | fstrim.enable = true; 19 | 20 | ratbagd.enable = true; 21 | 22 | dbus = { 23 | enable = true; 24 | implementation = "broker"; 25 | }; 26 | 27 | # Enable sound. 28 | pipewire = { 29 | enable = true; 30 | alsa.enable = true; 31 | alsa.support32Bit = true; 32 | pulse.enable = true; 33 | jack.enable = true; 34 | }; 35 | 36 | # tailscale.enable = true; 37 | 38 | # Enable the OpenSSH daemon. 39 | openssh.enable = true; 40 | 41 | # Syncthing 42 | syncthing = { 43 | enable = true; 44 | user = "theo"; 45 | dataDir = "/home/theo/Documents"; 46 | configDir = "/home/theo/.config/syncthing"; 47 | overrideDevices = true; # overrides any devices added or deleted through the WebUI 48 | overrideFolders = true; # overrides any folders added or deleted through the WebUI 49 | settings = { 50 | devices = { 51 | "Phone" = { 52 | id = "WCFUTSH-VU6QZOM-SJEHLLF-OFRDX3T-PWPHBX6-XNRV3VZ-AQZWC6X-36A5OAV"; 53 | }; 54 | "JTB" = { 55 | id = "MHKUJWR-YK2YZ2X-2C6AJRB-HEG6YBJ-FTL6PEA-ZGDLMOF-NL43P2P-6RDXKAY"; 56 | }; 57 | }; 58 | folders = { 59 | "Obsidian" = { 60 | path = "/home/theo/Data/Personal/obsidian"; 61 | devices = ["Phone"]; 62 | ignorePerms = false; # By default, Syncthing doesn't sync file permissions. This line enables it for this folder. 63 | }; 64 | "z7ezp-ya3ym" = { 65 | path = "/home/theo/Rattus/musik/02 Projects/collab/"; 66 | devices = ["JTB"]; 67 | ignorePerms = false; # By default, Syncthing doesn't sync file permissions. This line enables it for this folder. 68 | }; 69 | "music-lossy" = { 70 | path = "/home/theo/Data/music-lossier/"; 71 | devices = ["Phone"]; 72 | }; 73 | }; 74 | }; 75 | }; 76 | }; 77 | } 78 | -------------------------------------------------------------------------------- /modules/system/shell.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | programs.fish = { 3 | enable = true; 4 | promptInit = '' 5 | nix-your-shell fish | source 6 | ''; 7 | }; 8 | 9 | programs.ssh.askPassword = ""; # I have absolutely no idea why this isn't default. 10 | users.users.theo.shell = pkgs.fish; 11 | environment = { 12 | systemPackages = [pkgs.nix-your-shell]; 13 | variables = { 14 | EDITOR = "nvim"; 15 | VISUAL = "nvim"; 16 | XDG_DATA_HOME = "$HOME/.local/share"; 17 | XDG_CONFIG_HOME = "$HOME/.config"; 18 | XDG_STATE_HOME = "$HOME/.local/state"; 19 | XDG_CACHE_HOME = "$HOME/.cache"; 20 | SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0"; 21 | XCURSOR_SIZE = "8"; 22 | }; 23 | }; 24 | } 25 | -------------------------------------------------------------------------------- /modules/system/steam.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | pkgs, 4 | ... 5 | }: { 6 | programs = { 7 | steam = { 8 | enable = true; 9 | remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play 10 | dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server 11 | gamescopeSession.enable = true; 12 | # extraCompatPackages = with pkgs; [ 13 | # proton-ge-bin 14 | # ]; 15 | }; 16 | }; 17 | nixpkgs = { 18 | config = { 19 | allowUnfree = true; 20 | packageOverrides = pkgs: { 21 | steam = pkgs.steam.override { 22 | extraPkgs = pkgs: 23 | with pkgs; [ 24 | xorg.libXcursor 25 | xorg.libXi 26 | xorg.libXinerama 27 | xorg.libXScrnSaver 28 | libpng 29 | libpulseaudio 30 | libvorbis 31 | stdenv.cc.cc.lib 32 | libkrb5 33 | keyutils 34 | ]; 35 | }; 36 | }; 37 | }; 38 | }; 39 | } 40 | -------------------------------------------------------------------------------- /modules/system/thunar.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: { 2 | programs.thunar = { 3 | enable = true; 4 | plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman]; 5 | }; 6 | } 7 | -------------------------------------------------------------------------------- /modules/system/wine.nix: -------------------------------------------------------------------------------- 1 | { 2 | inputs, 3 | pkgs, 4 | ... 5 | }: { 6 | environment.systemPackages = with pkgs; [ 7 | # ... 8 | 9 | # support both 32- and 64-bit applications 10 | wineWowPackages.stable 11 | 12 | # support 32-bit only 13 | wine 14 | 15 | # support 64-bit only 16 | (wine.override {wineBuild = "wine64";}) 17 | 18 | # support 64-bit only 19 | wine64 20 | 21 | # wine-staging (version with experimental features) 22 | wineWowPackages.staging 23 | 24 | # winetricks (all versions) 25 | winetricks 26 | 27 | # native wayland support (unstable) 28 | wineWowPackages.waylandFull 29 | ]; 30 | } 31 | -------------------------------------------------------------------------------- /modules/system/yeetmouse.nix: -------------------------------------------------------------------------------- 1 | {pkgs, ...}: let 2 | accel = 0.7; 3 | accelMode = "linear"; 4 | accelModeNum = 1; 5 | preScale = 0.5; 6 | sens = 0.5; 7 | midpoint = 6.0; 8 | useSmoothing = false; 9 | offset = 5.0; 10 | outputCap = 0.0; 11 | inputCap = 0.0; 12 | exponent = 1.0; 13 | rotation = 0.0; # This takes radians. 14 | snapAngle = 0.0; 15 | snapThreshold = 0.0; # This takes radians. 16 | in { 17 | hardware = { 18 | yeetmouse = { 19 | enable = true; 20 | parameters = { 21 | AccelerationMode = accelMode; 22 | PreScale = preScale; 23 | Sensitivity = sens; 24 | Midpoint = midpoint; 25 | UseSmoothing = useSmoothing; 26 | ScrollsPerTick = 1; 27 | InputCap = inputCap; 28 | OutputCap = outputCap; 29 | Exponent = exponent; 30 | RotationAngle = rotation; 31 | }; 32 | }; 33 | }; 34 | 35 | services.udev.extraRules = let 36 | # Yeetmouse will only work with my g305 if I do this; I know it's ugly. 37 | echo = "${pkgs.coreutils}/bin/echo"; 38 | yeetmouseConfig = pkgs.writeShellScriptBin "yeetmouseConfig" '' 39 | ${echo} "${toString accel}" > /sys/module/leetmouse/parameters/Acceleration 40 | ${echo} "${toString midpoint}" > /sys/module/leetmouse/parameters/Midpoint 41 | ${echo} "${toString preScale}" > /sys/module/leetmouse/parameters/PreScale 42 | ${echo} "${toString sens}" > /sys/module/leetmouse/parameters/Sensitivity 43 | ${echo} "${toString sens}" > /sys/module/leetmouse/parameters/SensitivityY 44 | ${echo} "${toString accelModeNum}" > /sys/module/leetmouse/parameters/AccelerationMode 45 | ${echo} "${toString offset}" > /sys/module/leetmouse/parameters/Offset 46 | ${echo} "${toString outputCap}" > /sys/module/leetmouse/parameters/OutputCap 47 | ${echo} "${toString snapAngle}" > /sys/module/leetmouse/parameters/AngleSnap_Angle 48 | ${echo} "${toString snapThreshold}" > /sys/module/leetmouse/parameters/AngleSnap_Threshold 49 | ${echo} "1" > /sys/module/leetmouse/parameters/update 50 | ''; 51 | in '' 52 | ACTION=="add|bind|change", SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c53f", RUN+="/bin/sh -c 'echo -n 1-9:1.1 > /sys/bus/usb/drivers/usbhid/unbind; echo -n 1-9:1.1 > /sys/bus/usb/drivers/leetmouse/bind; ${yeetmouseConfig}/bin/yeetmouseConfig'" 53 | ''; 54 | } 55 | --------------------------------------------------------------------------------