2525 lines
86 KiB
HTML
2525 lines
86 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||
<head>
|
||
<!-- 2026-03-11 wo 19:57 -->
|
||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>Droidnix: A Dendritic NixOS + Home Manager Configuration NixOS Configuration Structure</title>
|
||
<meta name="author" content="Henro Veijer" />
|
||
<meta name="generator" content="Org Mode" />
|
||
<style type="text/css">
|
||
#content { max-width: 60em; margin: auto; }
|
||
.title { text-align: center;
|
||
margin-bottom: .2em; }
|
||
.subtitle { text-align: center;
|
||
font-size: medium;
|
||
font-weight: bold;
|
||
margin-top:0; }
|
||
.todo { font-family: monospace; color: red; }
|
||
.done { font-family: monospace; color: green; }
|
||
.priority { font-family: monospace; color: orange; }
|
||
.tag { background-color: #eee; font-family: monospace;
|
||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||
.timestamp { color: #bebebe; }
|
||
.timestamp-kwd { color: #5f9ea0; }
|
||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||
.underline { text-decoration: underline; }
|
||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||
p.verse { margin-left: 3%; }
|
||
pre {
|
||
border: 1px solid #e6e6e6;
|
||
border-radius: 3px;
|
||
background-color: #f2f2f2;
|
||
padding: 8pt;
|
||
font-family: monospace;
|
||
overflow: auto;
|
||
margin: 1.2em;
|
||
}
|
||
pre.src {
|
||
position: relative;
|
||
overflow: auto;
|
||
}
|
||
pre.src:before {
|
||
display: none;
|
||
position: absolute;
|
||
top: -8px;
|
||
right: 12px;
|
||
padding: 3px;
|
||
color: #555;
|
||
background-color: #f2f2f299;
|
||
}
|
||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||
/* Languages per Org manual */
|
||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||
pre.src-awk:before { content: 'Awk'; }
|
||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||
pre.src-C:before { content: 'C'; }
|
||
/* pre.src-C++ doesn't work in CSS */
|
||
pre.src-clojure:before { content: 'Clojure'; }
|
||
pre.src-css:before { content: 'CSS'; }
|
||
pre.src-D:before { content: 'D'; }
|
||
pre.src-ditaa:before { content: 'ditaa'; }
|
||
pre.src-dot:before { content: 'Graphviz'; }
|
||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||
pre.src-fortran:before { content: 'Fortran'; }
|
||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||
pre.src-haskell:before { content: 'Haskell'; }
|
||
pre.src-hledger:before { content: 'hledger'; }
|
||
pre.src-java:before { content: 'Java'; }
|
||
pre.src-js:before { content: 'Javascript'; }
|
||
pre.src-latex:before { content: 'LaTeX'; }
|
||
pre.src-ledger:before { content: 'Ledger'; }
|
||
pre.src-lisp:before { content: 'Lisp'; }
|
||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||
pre.src-lua:before { content: 'Lua'; }
|
||
pre.src-matlab:before { content: 'MATLAB'; }
|
||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||
pre.src-octave:before { content: 'Octave'; }
|
||
pre.src-org:before { content: 'Org mode'; }
|
||
pre.src-oz:before { content: 'OZ'; }
|
||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||
pre.src-processing:before { content: 'Processing.js'; }
|
||
pre.src-python:before { content: 'Python'; }
|
||
pre.src-R:before { content: 'R'; }
|
||
pre.src-ruby:before { content: 'Ruby'; }
|
||
pre.src-sass:before { content: 'Sass'; }
|
||
pre.src-scheme:before { content: 'Scheme'; }
|
||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||
pre.src-sed:before { content: 'Sed'; }
|
||
pre.src-sh:before { content: 'shell'; }
|
||
pre.src-sql:before { content: 'SQL'; }
|
||
pre.src-sqlite:before { content: 'SQLite'; }
|
||
/* additional languages in org.el's org-babel-load-languages alist */
|
||
pre.src-forth:before { content: 'Forth'; }
|
||
pre.src-io:before { content: 'IO'; }
|
||
pre.src-J:before { content: 'J'; }
|
||
pre.src-makefile:before { content: 'Makefile'; }
|
||
pre.src-maxima:before { content: 'Maxima'; }
|
||
pre.src-perl:before { content: 'Perl'; }
|
||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||
pre.src-scala:before { content: 'Scala'; }
|
||
pre.src-shell:before { content: 'Shell Script'; }
|
||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||
/* additional language identifiers per "defun org-babel-execute"
|
||
in ob-*.el */
|
||
pre.src-cpp:before { content: 'C++'; }
|
||
pre.src-abc:before { content: 'ABC'; }
|
||
pre.src-coq:before { content: 'Coq'; }
|
||
pre.src-groovy:before { content: 'Groovy'; }
|
||
/* additional language identifiers from org-babel-shell-names in
|
||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||
the execution function name together. */
|
||
pre.src-bash:before { content: 'bash'; }
|
||
pre.src-csh:before { content: 'csh'; }
|
||
pre.src-ash:before { content: 'ash'; }
|
||
pre.src-dash:before { content: 'dash'; }
|
||
pre.src-ksh:before { content: 'ksh'; }
|
||
pre.src-mksh:before { content: 'mksh'; }
|
||
pre.src-posh:before { content: 'posh'; }
|
||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||
pre.src-ada:before { content: 'Ada'; }
|
||
pre.src-asm:before { content: 'Assembler'; }
|
||
pre.src-caml:before { content: 'Caml'; }
|
||
pre.src-delphi:before { content: 'Delphi'; }
|
||
pre.src-html:before { content: 'HTML'; }
|
||
pre.src-idl:before { content: 'IDL'; }
|
||
pre.src-mercury:before { content: 'Mercury'; }
|
||
pre.src-metapost:before { content: 'MetaPost'; }
|
||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||
pre.src-pascal:before { content: 'Pascal'; }
|
||
pre.src-ps:before { content: 'PostScript'; }
|
||
pre.src-prolog:before { content: 'Prolog'; }
|
||
pre.src-simula:before { content: 'Simula'; }
|
||
pre.src-tcl:before { content: 'tcl'; }
|
||
pre.src-tex:before { content: 'TeX'; }
|
||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||
pre.src-verilog:before { content: 'Verilog'; }
|
||
pre.src-vhdl:before { content: 'VHDL'; }
|
||
pre.src-xml:before { content: 'XML'; }
|
||
pre.src-nxml:before { content: 'XML'; }
|
||
/* add a generic configuration mode; LaTeX export needs an additional
|
||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||
pre.src-conf:before { content: 'Configuration File'; }
|
||
|
||
table { border-collapse:collapse; }
|
||
caption.t-above { caption-side: top; }
|
||
caption.t-bottom { caption-side: bottom; }
|
||
td, th { vertical-align:top; }
|
||
th.org-right { text-align: center; }
|
||
th.org-left { text-align: center; }
|
||
th.org-center { text-align: center; }
|
||
td.org-right { text-align: right; }
|
||
td.org-left { text-align: left; }
|
||
td.org-center { text-align: center; }
|
||
dt { font-weight: bold; }
|
||
.footpara { display: inline; }
|
||
.footdef { margin-bottom: 1em; }
|
||
.figure { padding: 1em; }
|
||
.figure p { text-align: center; }
|
||
.equation-container {
|
||
display: table;
|
||
text-align: center;
|
||
width: 100%;
|
||
}
|
||
.equation {
|
||
vertical-align: middle;
|
||
}
|
||
.equation-label {
|
||
display: table-cell;
|
||
text-align: right;
|
||
vertical-align: middle;
|
||
}
|
||
.inlinetask {
|
||
padding: 10px;
|
||
border: 2px solid gray;
|
||
margin: 10px;
|
||
background: #ffffcc;
|
||
}
|
||
#org-div-home-and-up
|
||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||
textarea { overflow-x: auto; }
|
||
.linenr { font-size: smaller }
|
||
.code-highlighted { background-color: #ffff00; }
|
||
.org-info-js_info-navigation { border-style: none; }
|
||
#org-info-js_console-label
|
||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||
.org-info-js_search-highlight
|
||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||
.org-svg { }
|
||
</style>
|
||
<style>pre.src { background-color: #1e1e2e; color: #cdd6f4; padding: 1em; border-radius: 4px; }</style>
|
||
<script src="https://cdn.jsdelivr.net/npm/tree.js@1.0.0/dist/tree.min.js"></script>
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tree.js@1.0.0/dist/tree.min.css">
|
||
</head>
|
||
<body>
|
||
<div id="content" class="content">
|
||
<h1 class="title">Droidnix: A Dendritic NixOS + Home Manager Configuration NixOS Configuration Structure</h1>
|
||
<div id="table-of-contents" role="doc-toc">
|
||
<h2>Table of Contents</h2>
|
||
<div id="text-table-of-contents" role="doc-toc">
|
||
<ul>
|
||
<li><a href="#orgbf20bcc">Shortcuts</a></li>
|
||
<li><a href="#introduction">Introduction   <span class="tag"><span class="intro">intro</span></span></a>
|
||
<ul>
|
||
<li><a href="#orgb04ea6f">What is Droidnix</a>
|
||
<ul>
|
||
<li><a href="#org0b70e11">Installed components:</a></li>
|
||
<li><a href="#org542976a">Goals, project Structure, import hierarchy</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#orgeb1ae8c">Root Level</a></li>
|
||
<li><a href="#org04dd407">Generated Structure</a>
|
||
<ul>
|
||
<li><a href="#orgcb5ec91">System (<code>generated/system/</code>)</a>
|
||
<ul>
|
||
<li><a href="#org608fb8a">Applications (<code>applications/</code>)</a></li>
|
||
<li><a href="#orgd62f884">Development (<code>development/</code>)</a></li>
|
||
<li><a href="#org282dcaa">System Management (<code>system_management/</code>)</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#orgab31837">Hyprland (<code>generated/hyprland/</code>)</a></li>
|
||
<li><a href="#orgb3db7cf">MangoWC (<code>generated/mangowc/</code>)</a></li>
|
||
<li><a href="#orgeb11403">First Setup</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#the-assets-folder">The Assets Folder   <span class="tag"><span class="assets">assets</span></span></a>
|
||
<ul>
|
||
<li><a href="#org3770041"><code>.assets/system/</code></a></li>
|
||
<li><a href="#orgf9af5da"><code>.assets/hyprland/</code></a></li>
|
||
<li><a href="#orgfac3a53"><code>.assets/mangowc/</code></a></li>
|
||
<li><a href="#org2baf581"><code>.assets/machines/</code></a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#the-actual-code">The Actual Code   <span class="tag"><span class="code">code</span></span></a>
|
||
<ul>
|
||
<li><a href="#orgc811f3c"><code>flake.nix</code></a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#orgcdb3fab">First the nix-files that flake really needs and that do not fit wel in the hierarchical structure</a>
|
||
<ul>
|
||
<li><a href="#org99b76a6"><code>assets/flake/users/henrov.nix</code></a></li>
|
||
<li><a href="#org2ab9b28"><code>assets/flake/terminal_shell/devshell.nix</code></a></li>
|
||
<li><a href="#orgcbfb09a"><code>assets/flake/machines/traveldroid/top.nix</code></a></li>
|
||
<li><a href="#orgac503d0"><code>assets/flake/machines/traveldroid/boot.nix</code></a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#org21c70b4">Now we reach the top of the hierarchy which will call all other imports</a>
|
||
<ul>
|
||
<li><a href="#orgf801846"><code>generated/top.nix</code></a></li>
|
||
<li><a href="#org309220b"><code>generated/hyprland/top.nix</code></a></li>
|
||
<li><a href="#orgb9ce02c"><code>generated/hyprland/hyprland.nix</code></a></li>
|
||
<li><a href="#orga0af7ea"><code>generated/mangowc/top.nix</code></a></li>
|
||
<li><a href="#org10731d5"><code>generated/system/top.nix</code></a></li>
|
||
<li><a href="#org6b9a3de"><code>generated/system/applications/top.nix</code></a></li>
|
||
<li><a href="#org7a435d3"><code>generated/system/applications/packages.nix</code></a></li>
|
||
<li><a href="#orgc2c5559"><code>generated/system/applications/flatpaks.nix</code></a></li>
|
||
<li><a href="#orgd60b96c"><code>generated/system/core/top.nix</code></a></li>
|
||
<li><a href="#org73d2f61"><code>generated/system/core/fonts.nix</code></a></li>
|
||
<li><a href="#orgce6a910"><code>generated/system/core/eww.nix</code></a></li>
|
||
<li><a href="#org7962f58"><code>generated/system/core/waybar.nix</code></a></li>
|
||
<li><a href="#org2e7cdf8"><code>generated/system/core/login-tuigreeter.nix</code></a></li>
|
||
<li><a href="#org444757e"><code>generated/system/core/wayland.nix</code></a></li>
|
||
<li><a href="#orge23331a"><code>generated/system/development/top.nix</code></a></li>
|
||
<li><a href="#orgb9ae1bc"><code>generated/system/system_management/top.nix</code></a></li>
|
||
<li><a href="#orgc700d83"><code>generated/hyprland/animations_effects/top.nix</code></a></li>
|
||
<li><a href="#org5b0e7fe"><code>generated/hyprland/decorations/top.nix</code></a></li>
|
||
<li><a href="#org607c3df"><code>generated/hyprland/keyboard_binds/top.nix</code></a></li>
|
||
<li><a href="#orgc6fe593"><code>generated/hyprland/notifications/top.nix</code></a></li>
|
||
<li><a href="#org2d4717c"><code>generated/hyprland/statusbar_tray/top.nix</code></a></li>
|
||
<li><a href="#orgb1fe061"><code>generated/hyprland/task_launcher/top.nix</code></a></li>
|
||
<li><a href="#orgf6dc779"><code>generated/system/task_launcher/wofi.nix</code></a></li>
|
||
<li><a href="#org3d1c0b8"><code>generated/hyprland/task_window_workspace_switcher/top.nix</code></a></li>
|
||
<li><a href="#org3385510"><code>generated/hyprland/window_rules/top.nix</code></a></li>
|
||
<li><a href="#org7ad83d7"><code>generated/mangowc/animations_effects/top.nix</code></a></li>
|
||
<li><a href="#org5f35868"><code>generated/mangowc/decorations/top.nix</code></a></li>
|
||
<li><a href="#orgfdc0fc9"><code>generated/mangowc/keyboard_binds/top.nix</code></a></li>
|
||
<li><a href="#org7626771"><code>generated/mangowc/notifications/top.nix</code></a></li>
|
||
<li><a href="#org34e7f89"><code>generated/mangowc/statusbar_tray/top.nix</code></a></li>
|
||
<li><a href="#org0ab3add"><code>generated/mangowc/task_launcher/top.nix</code></a></li>
|
||
<li><a href="#org5ef80ee"><code>generated/mangowc/task_window_workspace_switcher/top.nix</code></a></li>
|
||
<li><a href="#org769ba9b"><code>generated/mangowc/window_rules/top.nix</code></a></li>
|
||
<li><a href="#org01541e3"><code>generated/system/applications/accessibility/top.nix</code></a></li>
|
||
<li><a href="#org35a56fd"><code>generated/system/applications/file_management/top.nix</code></a></li>
|
||
<li><a href="#org84d26e6"><code>generated/system/applications/gaming/top.nix</code></a></li>
|
||
<li><a href="#org606ad97"><code>generated/system/applications/media_playback_editing/top.nix</code></a></li>
|
||
<li><a href="#org15e032d"><code>generated/system/applications/office_productivity/top.nix</code></a></li>
|
||
<li><a href="#org61c696a"><code>generated/system/applications/terminal_shell/top.nix</code></a></li>
|
||
<li><a href="#orgb5e5f0f"><code>generated/system/applications/terminal_shell/kitty.nix</code></a></li>
|
||
<li><a href="#org957e5e5"><code>generated/system/applications/terminal_shell/starship.nix</code></a></li>
|
||
<li><a href="#org842ee1b"><code>generated/system/applications/terminal_shell/zsh.nix</code></a></li>
|
||
<li><a href="#orgda9213a"><code>generated/system/development/databases/top.nix</code></a></li>
|
||
<li><a href="#org048d6cb"><code>generated/system/development/devops_ci_cd/top.nix</code></a></li>
|
||
<li><a href="#org70e717d"><code>generated/system/development/programming_languages/top.nix</code></a></li>
|
||
<li><a href="#orgf4edaa0"><code>generated/system/development/virtualization/top.nix</code></a></li>
|
||
<li><a href="#orgb4e9fce"><code>generated/system/development/web_development/top.nix</code></a></li>
|
||
<li><a href="#org061f1b3"><code>generated/system/system_management/audio/top.nix</code></a></li>
|
||
<li><a href="#org714f07f"><code>generated/system/system_management/backups/top.nix</code></a></li>
|
||
<li><a href="#orga9daa15"><code>generated/system/system_management/bluetooth/top.nix</code></a></li>
|
||
<li><a href="#org4a45be7"><code>generated/system/system_management/disk_management/top.nix</code></a></li>
|
||
<li><a href="#orgd744fff"><code>generated/system/system_management/hardware_sensors/top.nix</code></a></li>
|
||
<li><a href="#org119f110"><code>generated/system/system_management/logging_monitoring/top.nix</code></a></li>
|
||
<li><a href="#org55fc95a"><code>generated/system/system_management/login_manager/top.nix</code></a></li>
|
||
<li><a href="#org4e9971b"><code>generated/system/system_management/monitor_setup/top.nix</code></a></li>
|
||
<li><a href="#org6db8ed5"><code>generated/system/system_management/networking/top.nix</code></a></li>
|
||
<li><a href="#org6f5489f"><code>generated/system/system_management/power_management/top.nix</code></a></li>
|
||
<li><a href="#org1c538b9"><code>generated/system/system_management/printers_scanners/top.nix</code></a></li>
|
||
<li><a href="#orga397813"><code>generated/system/system_management/security/top.nix</code></a></li>
|
||
<li><a href="#org0096d84"><code>generated/system/system_management/system_updates/top.nix</code></a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgbf20bcc" class="outline-2">
|
||
<h2 id="orgbf20bcc">Shortcuts</h2>
|
||
<div class="outline-text-2" id="text-orgbf20bcc">
|
||
<p>
|
||
<a href="#introduction">Introduction</a>
|
||
<a href="#the-assets-folder">The Assets Folder</a>
|
||
<a href="#the-actual-code">The Actual Code</a>
|
||
</p>
|
||
|
||
<p>
|
||
—
|
||
</p>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-introduction" class="outline-2">
|
||
<h2 id="introduction">Introduction   <span class="tag"><span class="intro">intro</span></span></h2>
|
||
<div class="outline-text-2" id="text-introduction">
|
||
</div>
|
||
<div id="outline-container-orgb04ea6f" class="outline-3">
|
||
<h3 id="orgb04ea6f">What is Droidnix</h3>
|
||
<div class="outline-text-3" id="text-orgb04ea6f">
|
||
<p>
|
||
Droidnix is a modular, declarative NixOS + Home Manager configuration system. It allows users to choose between <code>Hyprland</code> and <code>Mangowc</code> as their window manager, with shared and WM-specific configurations managed via Emacs Org and Nix Flakes. The project is designed for reproducibility, maintainability, and cross-machine compatibility.
|
||
</p>
|
||
</div>
|
||
<div id="outline-container-org0b70e11" class="outline-4">
|
||
<h4 id="org0b70e11">Installed components:</h4>
|
||
<div class="outline-text-4" id="text-org0b70e11">
|
||
</div>
|
||
<ul class="org-ul">
|
||
<li><a id="org000fee7"></a>Core<br /></li>
|
||
<li><a id="org913e3f2"></a>Hyprland<br /></li>
|
||
<li><a id="orgaeb711f"></a>Mangowc<br /></li>
|
||
</ul>
|
||
</div>
|
||
<div id="outline-container-org542976a" class="outline-4">
|
||
<h4 id="org542976a">Goals, project Structure, import hierarchy</h4>
|
||
<div class="outline-text-4" id="text-org542976a">
|
||
<p>
|
||
This project uses a <b><b>modular NixOS configuration</b></b> with <b><b>Hyprland</b></b> and <b><b>MangoWC</b></b> support, designed for <b><b>literate programming</b></b> and <b><b>cross-device reusability</b></b>.
|
||
The Droidnix repository is organized into two main parts:
|
||
</p>
|
||
<ol class="org-ol">
|
||
<li><code>.assets/</code>: Static, non-generated files (e.g., configs, scripts, themes).</li>
|
||
<li>Generated folders (<code>system</code>, <code>hyprland</code>, <code>mangowc</code>): NixOS and Home Manager configurations, generated from Org files.</li>
|
||
</ol>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgeb1ae8c" class="outline-2">
|
||
<h2 id="orgeb1ae8c">Root Level</h2>
|
||
<div class="outline-text-2" id="text-orgeb1ae8c">
|
||
<ul class="org-ul">
|
||
<li><code>flake.nix</code> is the entry point and imports:
|
||
<ul class="org-ul">
|
||
<li><code>generated/system/</code></li>
|
||
<li><code>generated/hyprland/</code></li>
|
||
<li><code>generated/mangowc/</code></li>
|
||
<li>Machine-specific configurations from <code>assets/machines/</code></li>
|
||
</ul></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org04dd407" class="outline-2">
|
||
<h2 id="org04dd407">Generated Structure</h2>
|
||
<div class="outline-text-2" id="text-org04dd407">
|
||
<p>
|
||
The <code>generated/</code> directory contains all generated configurations, divided into three main groups: <code>system</code>, <code>hyprland</code>, and <code>mangowc</code>.
|
||
</p>
|
||
</div>
|
||
<div id="outline-container-orgcb5ec91" class="outline-3">
|
||
<h3 id="orgcb5ec91">System (<code>generated/system/</code>)</h3>
|
||
<div class="outline-text-3" id="text-orgcb5ec91">
|
||
<p>
|
||
This directory contains system-wide configurations that are independent of the window manager.
|
||
</p>
|
||
</div>
|
||
<div id="outline-container-org608fb8a" class="outline-4">
|
||
<h4 id="org608fb8a">Applications (<code>applications/</code>)</h4>
|
||
<div class="outline-text-4" id="text-org608fb8a">
|
||
<ul class="org-ul">
|
||
<li><code>file_management/</code>: Configurations for file managers and storage solutions.</li>
|
||
<li><code>gaming/</code>: Settings for gaming-related software.</li>
|
||
<li><code>office_productivity/</code>: Configurations for office software.</li>
|
||
<li><code>media_playback_editing/</code>: Settings for media playback and editing software.</li>
|
||
<li><code>terminal_shell/</code>: Configurations for terminal emulators and shells.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgd62f884" class="outline-4">
|
||
<h4 id="orgd62f884">Development (<code>development/</code>)</h4>
|
||
<div class="outline-text-4" id="text-orgd62f884">
|
||
<ul class="org-ul">
|
||
<li><code>databases/</code>: Settings for local databases.</li>
|
||
<li><code>devops_ci_cd/</code>: Configurations for DevOps tools.</li>
|
||
<li><code>programming_languages/</code>: Settings for programming languages and their runtimes.</li>
|
||
<li><code>virtualization/</code>: Configurations for virtualization and containerization tools.</li>
|
||
<li><code>web_development/</code>: Settings for web development.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org282dcaa" class="outline-4">
|
||
<h4 id="org282dcaa">System Management (<code>system_management/</code>)</h4>
|
||
<div class="outline-text-4" id="text-org282dcaa">
|
||
<ul class="org-ul">
|
||
<li><code>backups/</code>: Settings for backup software.</li>
|
||
<li><code>bluetooth/</code>: Configurations for Bluetooth devices and services.</li>
|
||
<li><code>power_management/</code>: Settings for power management.</li>
|
||
<li><code>audio/</code>: Configurations for audio.</li>
|
||
<li><code>hardware_sensors/</code>: Settings for hardware monitoring.</li>
|
||
<li><code>logging_monitoring/</code>: Configurations for system logging and monitoring.</li>
|
||
<li><code>login_manager/</code>: Settings for the login manager.</li>
|
||
<li><code>monitor_setup/</code>: Configurations for display settings.</li>
|
||
<li><code>networking/</code>: Settings for networking.</li>
|
||
<li><code>printers_scanners/</code>: Configurations for printers and scanners.</li>
|
||
<li><code>disk_management/</code>: Settings for disk management.</li>
|
||
<li><code>security/</code>: Security-related configurations.</li>
|
||
<li><code>system_updates/</code>: Settings for system updates and package management.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgab31837" class="outline-3">
|
||
<h3 id="orgab31837">Hyprland (<code>generated/hyprland/</code>)</h3>
|
||
<div class="outline-text-3" id="text-orgab31837">
|
||
<p>
|
||
This directory contains configurations specific to Hyprland.
|
||
</p>
|
||
|
||
<ul class="org-ul">
|
||
<li><code>animations_effects/</code>: Settings for window animations and visual effects.</li>
|
||
<li><code>decorations/</code>: Configurations for window decorations.</li>
|
||
<li><code>keyboard_binds/</code>: Keyboard shortcuts for Hyprland.</li>
|
||
<li><code>notifications/</code>: Settings for notifications.</li>
|
||
<li><code>statusbar_tray/</code>: Configurations for the status bar and system tray.</li>
|
||
<li><code>task_launcher/</code>: Settings for task launchers.</li>
|
||
<li><code>task_window_workspace_switcher/</code>: Configurations for switching between windows and workspaces.</li>
|
||
<li><code>window_rules/</code>: Rules for window behavior.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgb3db7cf" class="outline-3">
|
||
<h3 id="orgb3db7cf">MangoWC (<code>generated/mangowc/</code>)</h3>
|
||
<div class="outline-text-3" id="text-orgb3db7cf">
|
||
<p>
|
||
This directory contains configurations specific to MangoWC.
|
||
</p>
|
||
|
||
<ul class="org-ul">
|
||
<li><code>animations_effects/</code>: Settings for animations and effects in MangoWC.</li>
|
||
<li><code>decorations/</code>: Configurations for window decorations.</li>
|
||
<li><code>keyboard_binds/</code>: Keyboard shortcuts for MangoWC.</li>
|
||
<li><code>notifications/</code>: Settings for notifications.</li>
|
||
<li><code>statusbar_tray/</code>: Configurations for the status bar and system tray.</li>
|
||
<li><code>task_launcher/</code>: Settings for task launchers.</li>
|
||
<li><code>task_window_workspace_switcher/</code>: Configurations for switching between windows and workspaces.</li>
|
||
<li><code>window_rules/</code>: Rules for window behavior.</li>
|
||
</ul>
|
||
|
||
<p>
|
||
<b><b>File Structure and Imports</b></b>
|
||
</p>
|
||
<ul class="org-ul">
|
||
<li>Every <code>top.nix</code> file imports all <code>.nix</code> files in its directory.</li>
|
||
<li>Machine-specific configurations are stored in <code>assets/machines/</code>.</li>
|
||
<li>Themes and overrides are modular and reusable across setups.</li>
|
||
</ul>
|
||
|
||
<p>
|
||
<b><b>Design Principles</b></b>
|
||
</p>
|
||
<ul class="org-ul">
|
||
<li><b><b>Modularity</b></b>: Each component is self-contained and reusable.</li>
|
||
<li><b><b>Consistency</b></b>: Every directory follows the same import pattern.</li>
|
||
<li><b><b>Scalability</b></b>: Easy to add new machines or configurations.</li>
|
||
</ul>
|
||
|
||
<pre class="example" id="orgfe07df8">
|
||
.
|
||
├── assets
|
||
│ ├── system
|
||
│ │ ├── conf
|
||
│ │ │ └── base.conf
|
||
│ │ ├── cursors
|
||
│ │ │ └── Bibata_Cursor-main
|
||
│ │ ├── emacs
|
||
│ │ │ └── setup_emacs.sh
|
||
│ │ ├── icons
|
||
│ │ │ └── papirus-icon-theme-master
|
||
│ │ ├── neovim
|
||
│ │ │ └── setup_nvim_literate_nixos.sh
|
||
│ │ ├── nixos_conf
|
||
│ │ │ └── wallpaperstuff
|
||
│ │ │ ├── pictures
|
||
│ │ │ └── videos
|
||
│ │ ├── scripts
|
||
│ │ │ ├── copy_stuff.sh
|
||
│ │ │ └── end_script.sh
|
||
│ │ └── themes
|
||
│ │ └── Catppuccin-Mocha-Standard-Blue-Dark
|
||
│ ├── copy_stuff
|
||
│ │ ├── Droidnix
|
||
│ │ │ ├── hypr
|
||
│ │ │ │ ├── conf.d
|
||
│ │ │ │ └── scripts
|
||
│ │ │ └── wallpaperstuff
|
||
│ │ │ ├── pictures
|
||
│ │ │ └── videos
|
||
│ │ └── kitty
|
||
│ │ ├── kitty.conf
|
||
│ │ └── themes
|
||
│ │ └── Catppuccin-Mocha.conf
|
||
│ ├── hyprland
|
||
│ │ ├── conf
|
||
│ │ ├── scripts
|
||
│ │ └── themes
|
||
│ ├── machines
|
||
│ │ ├── maindroid
|
||
│ │ └── traveldroid
|
||
│ │ ├── configuration.nix
|
||
│ │ ├── hardware-configuration.nix
|
||
│ │ └── home.nix
|
||
│ └── mangowc
|
||
│ ├── conf
|
||
│ ├── scripts
|
||
│ └── themes
|
||
├── generated
|
||
│ ├── hyprland
|
||
│ │ ├── animations_effects
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── decorations
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── keyboard_binds
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── notifications
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── statusbar_tray
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── task_launcher
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── task_window_workspace_switcher
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ └── window_rules
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── mangowc
|
||
│ │ ├── animations_effects
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── decorations
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── keyboard_binds
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── notifications
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── statusbar_tray
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── task_launcher
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── task_window_workspace_switcher
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ └── window_rules
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ └── system
|
||
│ ├── applications
|
||
│ │ ├── file_management
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── gaming
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── office_productivity
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── media_playback_editing
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── terminal_shell
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ └── accessibility
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── development
|
||
│ │ ├── databases
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── devops_ci_cd
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── programming_languages
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ ├── virtualization
|
||
│ │ │ ├── top.nix
|
||
│ │ │ └── placeholder.nix
|
||
│ │ └── web_development
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ └── system_management
|
||
│ ├── backups
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── bluetooth
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── power_management
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── audio
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── hardware_sensors
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── logging_monitoring
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── login_manager
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── monitor_setup
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── networking
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── printers_scanners
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── disk_management
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ ├── security
|
||
│ │ ├── top.nix
|
||
│ │ └── placeholder.nix
|
||
│ └── system_updates
|
||
│ ├── top.nix
|
||
│ └── placeholder.nix
|
||
├── flake.nix
|
||
├── README.html
|
||
└── README.org
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgeb11403" class="outline-3">
|
||
<h3 id="orgeb11403">First Setup</h3>
|
||
<div class="outline-text-3" id="text-orgeb11403">
|
||
<ol class="org-ol">
|
||
<li>Clone this repository.</li>
|
||
<li>Run the setup script: <code>./setup_droidnix.sh</code>.</li>
|
||
<li>Edit <code>.assets/system/conf/base.conf</code> to choose your window manager (<code>wm = "hyprland"</code> or <code>wm = "mangowc"</code>).</li>
|
||
<li>Tangle this Org file to generate Nix configurations: <code>C-c C-v t</code> in Emacs or use this: <code>emacs README.org --batch -f org-babel-tangle && emacs --batch --eval "(setq org-html-htmlize-output-type nil)" README.org -f org-html-export-to-html</code></li>
|
||
<li>Build and switch: <code>sudo nixos-rebuild switch --flake .#<hostname></code>.</li>
|
||
</ol>
|
||
|
||
<p>
|
||
—
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-the-assets-folder" class="outline-2">
|
||
<h2 id="the-assets-folder">The Assets Folder   <span class="tag"><span class="assets">assets</span></span></h2>
|
||
<div class="outline-text-2" id="text-the-assets-folder">
|
||
<p>
|
||
The <code>.assets/</code> folder contains all static files, such as configs, scripts, and themes. These files are not generated and can be edited directly.
|
||
</p>
|
||
</div>
|
||
<div id="outline-container-org3770041" class="outline-3">
|
||
<h3 id="org3770041"><code>.assets/system/</code></h3>
|
||
<div class="outline-text-3" id="text-org3770041">
|
||
<p>
|
||
This folder contains files shared across both window managers, such as wallpapers, shell configs, and system scripts.
|
||
</p>
|
||
|
||
<ul class="org-ul">
|
||
<li><code>conf/base.conf</code>: Defines the window manager choice and other global settings.</li>
|
||
<li><code>scripts/</code>: System-wide scripts (e.g., utilities, helpers).</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgf9af5da" class="outline-3">
|
||
<h3 id="orgf9af5da"><code>.assets/hyprland/</code></h3>
|
||
<div class="outline-text-3" id="text-orgf9af5da">
|
||
<p>
|
||
Hyprland-specific assets, including configs, themes, and scripts.
|
||
</p>
|
||
|
||
<ul class="org-ul">
|
||
<li><code>conf/</code>: Hyprland configuration files (e.g., <code>hyprland.conf</code>).</li>
|
||
<li><code>themes/</code>: Hyprland-specific theme scripts.</li>
|
||
<li><code>scripts/</code>: Hyprland-specific scripts.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgfac3a53" class="outline-3">
|
||
<h3 id="orgfac3a53"><code>.assets/mangowc/</code></h3>
|
||
<div class="outline-text-3" id="text-orgfac3a53">
|
||
<p>
|
||
Mangowc-specific assets, including configs, themes, and scripts.
|
||
</p>
|
||
|
||
<ul class="org-ul">
|
||
<li><code>conf/</code>: Mangowc configuration files.</li>
|
||
<li><code>themes/</code>: Mangowc-specific theme scripts.</li>
|
||
<li><code>scripts/</code>: Mangowc-specific scripts.</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org2baf581" class="outline-3">
|
||
<h3 id="org2baf581"><code>.assets/machines/</code></h3>
|
||
<div class="outline-text-3" id="text-org2baf581">
|
||
<p>
|
||
Machine-specific NixOS configurations (e.g., <code>configuration.nix</code> for <code>maindroid</code> and <code>traveldroid</code>).
|
||
</p>
|
||
|
||
<p>
|
||
—
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-the-actual-code" class="outline-2">
|
||
<h2 id="the-actual-code">The Actual Code   <span class="tag"><span class="code">code</span></span></h2>
|
||
<div class="outline-text-2" id="text-the-actual-code">
|
||
<p>
|
||
This section contains the Org blocks for tangling Nix code into the generated folders.
|
||
</p>
|
||
</div>
|
||
<div id="outline-container-orgc811f3c" class="outline-3">
|
||
<h3 id="orgc811f3c"><code>flake.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgc811f3c">
|
||
<p>
|
||
The Nix flake definition for Droidnix.
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
||
|
||
inputs = {
|
||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
home-manager = {
|
||
url = "github:nix-community/home-manager";
|
||
inputs.nixpkgs.follows = "nixpkgs";
|
||
};
|
||
emacs-overlay = {
|
||
url = "github:nix-community/emacs-overlay";
|
||
inputs.nixpkgs.follows = "nixpkgs";
|
||
};
|
||
catppuccin = {
|
||
url = "github:catppuccin/nix";
|
||
inputs.nixpkgs.follows = "nixpkgs";
|
||
};
|
||
zen-browser = {
|
||
url = "github:youwen5/zen-browser-flake";
|
||
inputs.nixpkgs.follows = "nixpkgs";
|
||
};
|
||
hyprland.url = "github:hyprwm/Hyprland";
|
||
};
|
||
|
||
outputs =
|
||
inputs@{
|
||
self,
|
||
nixpkgs,
|
||
home-manager,
|
||
emacs-overlay,
|
||
catppuccin,
|
||
zen-browser,
|
||
hyprland,
|
||
...
|
||
}:
|
||
let
|
||
lib = nixpkgs.lib;
|
||
system = "x86_64-linux"; # Define the system explicitly
|
||
user = import ./assets/flake/users/henrov.nix;
|
||
machines = [
|
||
"traveldroid"
|
||
"maindroid"
|
||
];
|
||
in
|
||
{
|
||
nixosConfigurations = lib.genAttrs machines (
|
||
machine:
|
||
lib.nixosSystem {
|
||
inherit system;
|
||
modules = [
|
||
# Import machine-specific configurations
|
||
./assets/flake/machines/${machine}/top.nix
|
||
|
||
# Home Manager and theme modules
|
||
home-manager.nixosModules.home-manager
|
||
{
|
||
home-manager.useGlobalPkgs = true;
|
||
home-manager.useUserPackages = true;
|
||
home-manager.extraSpecialArgs = { inherit user inputs; flakeRoot = ./.; };
|
||
}
|
||
inputs.catppuccin.nixosModules.catppuccin
|
||
|
||
# Let's start importing the whole generated tree
|
||
./generated/top.nix
|
||
];
|
||
specialArgs = { inherit user inputs; flakeRoot = ./.; };
|
||
}
|
||
);
|
||
|
||
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
|
||
inherit (nixpkgs.legacyPackages.${system}) mkShell;
|
||
};
|
||
};
|
||
}
|
||
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgcdb3fab" class="outline-2">
|
||
<h2 id="orgcdb3fab">First the nix-files that flake really needs and that do not fit wel in the hierarchical structure</h2>
|
||
<div class="outline-text-2" id="text-orgcdb3fab">
|
||
</div>
|
||
<div id="outline-container-org99b76a6" class="outline-3">
|
||
<h3 id="org99b76a6"><code>assets/flake/users/henrov.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org99b76a6">
|
||
<p>
|
||
This is the default user, just search and replace henrov another name if you want to change
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
username = "henrov";
|
||
hashedPassword = "$6$ISAmsPLyFi7idYXr$VmZsq.zMsyh1irSkyDNqtorNXG0oEHbbMVqTii1t8bymvrQ5ZQmbdi4OiBNeNYe/huHGrojXM.3TST2fTLz0T.";
|
||
homeDirectory = "/home/henrov";
|
||
stateVersion = "25.11";
|
||
locale = "nl_NL.UTF-8";
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org2ab9b28" class="outline-3">
|
||
<h3 id="org2ab9b28"><code>assets/flake/terminal_shell/devshell.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org2ab9b28">
|
||
<p>
|
||
This code defines a Nix shell environment (also called a "devShell") that you can enter using the nix develop command. When you enter this shell, Nix will provide the tools and dependencies listed in buildInputs.
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ mkShell, ... }:
|
||
mkShell {
|
||
buildInputs = with import <nixpkgs> {}; [
|
||
nil
|
||
nixfmt-rfc-style
|
||
];
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgcbfb09a" class="outline-3">
|
||
<h3 id="orgcbfb09a"><code>assets/flake/machines/traveldroid/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgcbfb09a">
|
||
<p>
|
||
This code defines the machine to build. Just search and replace traveldroid to provision another machine.
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
|
||
{
|
||
imports = [
|
||
./boot.nix
|
||
./hardware-configuration.nix
|
||
];
|
||
|
||
options = {
|
||
wm = lib.mkOption {
|
||
type = lib.types.str;
|
||
default = "hyprland";
|
||
description = "Type of window manager to use";
|
||
};
|
||
};
|
||
|
||
config = {
|
||
# Minimal settings that must be defined here
|
||
networking.hostName = "traveldroid";
|
||
wm.type = "hyprland";
|
||
|
||
# User configuration
|
||
users.users.${user.username} = {
|
||
isNormalUser = true;
|
||
extraGroups = [ "wheel" "networkmanager" ];
|
||
hashedPassword = user.hashedPassword;
|
||
home = user.homeDirectory;
|
||
};
|
||
|
||
# Optional: Enable auto-login for testing
|
||
services.getty.autologinUser = user.username;
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgac503d0" class="outline-3">
|
||
<h3 id="orgac503d0"><code>assets/flake/machines/traveldroid/boot.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgac503d0">
|
||
<p>
|
||
This file has most of the settings the control how the computer boots up.
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ pkgs, ... } :
|
||
{
|
||
boot = {
|
||
initrd = {
|
||
verbose = false; # its a lot of logs. dont need it, unless we do.
|
||
kernelModules = [ ]; # no kernel modules on boot
|
||
};
|
||
|
||
extraModulePackages = [ ]; # no extra packages on boot either
|
||
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
|
||
kernelParams = [ "silent" ]; # quiet those logs
|
||
|
||
consoleLogLevel = 0; # quiten more logs
|
||
plymouth.enable = true; # graphical boot animation instead
|
||
|
||
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
|
||
|
||
loader = {
|
||
systemd-boot.enable = true; # systemd-boot
|
||
systemd-boot.configurationLimit = 10;
|
||
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
|
||
timeout = 5; # grub timeout to make a selection
|
||
};
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org21c70b4" class="outline-2">
|
||
<h2 id="org21c70b4">Now we reach the top of the hierarchy which will call all other imports</h2>
|
||
<div class="outline-text-2" id="text-org21c70b4">
|
||
</div>
|
||
<div id="outline-container-orgf801846" class="outline-3">
|
||
<h3 id="orgf801846"><code>generated/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgf801846">
|
||
<p>
|
||
The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure.
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, ... }:
|
||
{
|
||
imports = [
|
||
./system/top.nix
|
||
./hyprland/top.nix
|
||
# ./mangowc/top.nix
|
||
];
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org309220b" class="outline-3">
|
||
<h3 id="org309220b"><code>generated/hyprland/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org309220b">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./hyprland.nix
|
||
./animations_effects/top.nix
|
||
./decorations/top.nix
|
||
./keyboard_binds/top.nix
|
||
./notifications/top.nix
|
||
./statusbar_tray/top.nix
|
||
./task_launcher/top.nix
|
||
./task_window_workspace_switcher/top.nix
|
||
./window_rules/top.nix
|
||
];
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgb9ce02c" class="outline-3">
|
||
<h3 id="orgb9ce02c"><code>generated/hyprland/hyprland.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgb9ce02c">
|
||
<p>
|
||
The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure.
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
config,
|
||
pkgs,
|
||
lib,
|
||
user,
|
||
flakeRoot,
|
||
...
|
||
}:
|
||
let
|
||
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
||
# Dynamically read all files in assets/hyprland/conf/
|
||
hyprlandConfs =
|
||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"))
|
||
(name: {
|
||
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||
});
|
||
in
|
||
{
|
||
# NixOS: Enable Hyprland (optional)
|
||
programs.hyprland = {
|
||
enable = true;
|
||
};
|
||
|
||
# Home Manager: Hyprland-specific configurations
|
||
home-manager.users.${user.username} = {
|
||
# Use config.home-manager.users.${user.username} instead of userConfig
|
||
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "23.11"; # Default fallback
|
||
home.username = user.username; # Use the 'user' argument
|
||
home.homeDirectory =
|
||
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
||
|
||
wayland.windowManager.hyprland = {
|
||
enable = true;
|
||
};
|
||
|
||
# Merge dynamic Hyprland configs with existing xdg.configFile
|
||
xdg.configFile = {
|
||
# Your existing manual configs (if any)
|
||
}
|
||
// hyprlandConfs;
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orga0af7ea" class="outline-3">
|
||
<h3 id="orga0af7ea"><code>generated/mangowc/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orga0af7ea">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./animations_effects/top.nix
|
||
./decorations/top.nix
|
||
./keyboard_binds/top.nix
|
||
./notifications/top.nix
|
||
./statusbar_tray/top.nix
|
||
./task_launcher/top.nix
|
||
./task_window_workspace_switcher/top.nix
|
||
./window_rules/top.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org10731d5" class="outline-3">
|
||
<h3 id="org10731d5"><code>generated/system/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org10731d5">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./applications/top.nix
|
||
./core/top.nix
|
||
./development/top.nix
|
||
./system_management/top.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org6b9a3de" class="outline-3">
|
||
<h3 id="org6b9a3de"><code>generated/system/applications/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org6b9a3de">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./packages.nix
|
||
./flatpaks.nix
|
||
./accessibility/top.nix
|
||
./file_management/top.nix
|
||
./gaming/top.nix
|
||
./media_playback_editing/top.nix
|
||
./office_productivity/top.nix
|
||
./terminal_shell/top.nix
|
||
];
|
||
nixpkgs.config.allowUnfree = true;
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org7a435d3" class="outline-3">
|
||
<h3 id="org7a435d3"><code>generated/system/applications/packages.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org7a435d3">
|
||
<p>
|
||
This will import all packages listed in ./assets/system/apps/packlages.conf
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, lib, pkgs, flakeRoot, inputs, ... }:
|
||
let
|
||
packagesConfPath = "${flakeRoot}/assets/system/apps/packages.conf";
|
||
raw = builtins.readFile packagesConfPath;
|
||
# IMPORTANT: explicit "\n" so we never accidentally split into characters
|
||
rawLines = lib.splitString "\n" raw;
|
||
# Guard: if we accidentally split into characters, rawLines length ~= stringLength raw
|
||
_guard = assert !(
|
||
builtins.stringLength raw > 1 &&
|
||
builtins.length rawLines == builtins.stringLength raw
|
||
); true;
|
||
cleanLine = l:
|
||
let
|
||
noCR = lib.replaceStrings [ "\r" ] [ "" ] l;
|
||
noInlineComment = lib.head (lib.splitString "#" noCR);
|
||
in
|
||
lib.strings.trim noInlineComment;
|
||
entries =
|
||
builtins.filter (l: l != "")
|
||
(map cleanLine rawLines);
|
||
resolvePkg = name:
|
||
let
|
||
parts = lib.splitString "." name;
|
||
found = lib.attrByPath parts null pkgs;
|
||
in
|
||
if found == null then
|
||
throw ''
|
||
packages.nix: package not found in pkgs
|
||
Token : ${builtins.toJSON name}
|
||
packages.conf : ${toString packagesConfPath}
|
||
Hint : check the attribute name on search.nixos.org/packages
|
||
''
|
||
else
|
||
found;
|
||
packages = builtins.seq _guard (map resolvePkg entries);
|
||
zenBrowser =
|
||
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||
in
|
||
{
|
||
environment.systemPackages =
|
||
packages
|
||
++ [ zenBrowser ];
|
||
}
|
||
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgc2c5559" class="outline-3">
|
||
<h3 id="orgc2c5559"><code>generated/system/applications/flatpaks.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgc2c5559">
|
||
<p>
|
||
This will import all packages listed in ./assets/system/apps/flatpaks.conf
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
config,
|
||
pkgs,
|
||
lib,
|
||
flakeRoot,
|
||
...
|
||
}:
|
||
let
|
||
moduleName = "install-flatpaks";
|
||
flatpakConfPath = "${flakeRoot}/assets/system/apps/flatpaks.conf";
|
||
raw = builtins.readFile flatpakConfPath;
|
||
# Explicit "\n" so we never accidentally split into characters
|
||
rawLines = lib.splitString "\n" raw;
|
||
|
||
# Guard: if we accidentally split into characters, rawLines length ~= stringLength raw
|
||
_guard =
|
||
assert !(builtins.stringLength raw > 1 && builtins.length rawLines == builtins.stringLength raw);
|
||
true;
|
||
|
||
cleanLine =
|
||
l:
|
||
let
|
||
noCR = lib.replaceStrings [ "\r" ] [ "" ] l;
|
||
noInlineComment = lib.head (lib.splitString "#" noCR);
|
||
in
|
||
lib.strings.trim noInlineComment;
|
||
|
||
entries = builtins.filter (l: l != "") (map cleanLine rawLines);
|
||
|
||
# Flatpak app IDs are reverse-DNS style like org.example.App (at least 2 dots).
|
||
# We'll validate and fail early with a clear message.
|
||
dotCount = s: builtins.length (lib.splitString "." s) - 1;
|
||
|
||
isValidId = s: (dotCount s) >= 2; # matches the error you're seeing: "at least 2 periods"
|
||
|
||
_validate = builtins.seq _guard (
|
||
builtins.map (
|
||
id:
|
||
if isValidId id then
|
||
true
|
||
else
|
||
throw ''
|
||
${moduleName}: invalid Flatpak ID in flatpaks.conf (needs reverse-DNS with at least 2 dots)
|
||
|
||
Token : ${builtins.toJSON id}
|
||
flatpaks.conf : ${toString flatpakConfPath}
|
||
|
||
Fix: remove stray tokens/headers, or comment them out with '#'.
|
||
''
|
||
) entries
|
||
);
|
||
|
||
# Use validated entries
|
||
flatpakApps = builtins.seq _validate entries;
|
||
|
||
syncFlatpaks = pkgs.writeShellScript "sync-flatpaks" ''
|
||
set -euo pipefail
|
||
|
||
# Use the deployed config path (matches environment.etc below)
|
||
CONF="/etc/flatpak/flatpaks.conf"
|
||
if [[ -f "$CONF" ]]; then
|
||
echo "flatpak-sync: using $CONF"
|
||
else
|
||
echo "flatpak-sync: WARNING: $CONF not found, using embedded list"
|
||
fi
|
||
|
||
if ! flatpak remotes --system --columns=name | grep -qx flathub; then
|
||
flatpak remote-add --system --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||
fi
|
||
|
||
desired_apps=(
|
||
${lib.concatStringsSep "\n" (map (a: ''"${a}"'') flatpakApps)}
|
||
)
|
||
|
||
for app in "''${desired_apps[@]}"; do
|
||
if ! flatpak info --system "$app" >/dev/null 2>&1; then
|
||
flatpak install --system -y --noninteractive flathub "$app"
|
||
fi
|
||
done
|
||
'';
|
||
in
|
||
{
|
||
services.flatpak.enable = true;
|
||
|
||
xdg.portal = {
|
||
enable = true;
|
||
};
|
||
|
||
# Deploy the config file for runtime visibility/debugging
|
||
environment.etc."flatpak/flatpaks.conf".source = lib.mkForce flatpakConfPath;
|
||
|
||
systemd.services.flatpak-sync = {
|
||
description = "Install Flatpak apps listed in flatpaks.conf";
|
||
wantedBy = [ "multi-user.target" ];
|
||
wants = [ "network-online.target" ];
|
||
after = [ "network-online.target" ];
|
||
|
||
serviceConfig = {
|
||
Type = "oneshot";
|
||
ExecStart = syncFlatpaks;
|
||
};
|
||
|
||
restartTriggers = [ flatpakConfPath ];
|
||
path = [
|
||
pkgs.flatpak
|
||
pkgs.coreutils
|
||
pkgs.gnugrep
|
||
pkgs.gnused
|
||
];
|
||
};
|
||
}
|
||
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgd60b96c" class="outline-3">
|
||
<h3 id="orgd60b96c"><code>generated/system/core/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgd60b96c">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./wayland.nix
|
||
./eww.nix
|
||
./waybar.nix
|
||
./login-tuigreeter.nix
|
||
# ./login-lightdm.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org73d2f61" class="outline-3">
|
||
<h3 id="org73d2f61"><code>generated/system/core/fonts.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org73d2f61">
|
||
<p>
|
||
This file installs and configures eww
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, ... }:
|
||
{
|
||
environment.systemPackages = with pkgs; [
|
||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||
];
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgce6a910" class="outline-3">
|
||
<h3 id="orgce6a910"><code>generated/system/core/eww.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgce6a910">
|
||
<p>
|
||
This file installs and configures eww
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ lib, config, pkgs, flakeRoot, user, ... }:
|
||
|
||
let
|
||
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
||
# Dynamically read all files in assets/system/conf/eww/
|
||
ewwConfs = lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/eww")) (name: {
|
||
text = builtins.readFile "${flakeRoot}/assets/system/conf/eww/${name}";
|
||
});
|
||
in
|
||
{
|
||
environment.systemPackages = with pkgs; [ eww ];
|
||
|
||
home-manager.users.${user.username} = {
|
||
home.file = {
|
||
"${ewwConfigDir}" = {
|
||
source = "${flakeRoot}/assets/system/conf/eww";
|
||
recursive = true;
|
||
};
|
||
};
|
||
|
||
home.sessionVariables = {
|
||
EWW_BIN = "${pkgs.eww}/bin/eww";
|
||
};
|
||
|
||
# Start eww with Hyprland/MangoWC
|
||
wayland.windowManager.hyprland.settings = lib.mkForce {
|
||
exec-once = [ "eww daemon" ];
|
||
exec = [ "eww open-many ${ewwConfigDir}/widgets" ]; # Adjust as needed
|
||
};
|
||
# For MangoWC, use:
|
||
# wayland.windowManager.mangowc.config = {
|
||
# exec = [ "eww daemon" ];
|
||
# exec-once = [ "eww open-many ${ewwConfigDir}/widgets" ];
|
||
# };
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org7962f58" class="outline-3">
|
||
<h3 id="org7962f58"><code>generated/system/core/waybar.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org7962f58">
|
||
<p>
|
||
This file installs and configures waybar
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ lib, pkgs, config, ... }:
|
||
|
||
let
|
||
# Copy the config and style files into the Nix store
|
||
waybar-config = pkgs.writeText "waybar-config" (builtins.readFile ./assets/system/conf/config);
|
||
waybar-style = pkgs.writeText "waybar-style" (builtins.readFile ./assets/system/conf/style.css);
|
||
in
|
||
{
|
||
programs.waybar = {
|
||
enable = true;
|
||
package = pkgs.waybar;
|
||
};
|
||
|
||
systemd.user.services.waybar = {
|
||
description = "Waybar (status bar for Wayland)";
|
||
wantedBy = [ "graphical-session.target" ];
|
||
after = [ "graphical-session.target" ];
|
||
serviceConfig = {
|
||
ExecStart = "${config.programs.waybar.package}/bin/waybar -c ${waybar-config} -s ${waybar-style}";
|
||
Restart = "on-failure";
|
||
RestartSec = "5s";
|
||
};
|
||
};
|
||
|
||
# Create symlinks for config and style
|
||
system.activationScripts.waybarSetup = lib.mkAfter ''
|
||
mkdir -p /home/${config.users.users.${config.nixpkgs.config.permittedUsers[0]}.name}/.config/waybar
|
||
ln -sf ${waybar-config} /home/${config.users.users.${config.nixpkgs.config.permittedUsers[0]}.name}/.config/waybar/config
|
||
ln -sf ${waybar-style} /home/${config.users.users.${config.nixpkgs.config.permittedUsers[0]}.name}/.config/waybar/style.css
|
||
'';
|
||
}
|
||
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org2e7cdf8" class="outline-3">
|
||
<h3 id="org2e7cdf8"><code>generated/system/core/login-tuigreeter.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org2e7cdf8">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ pkgs, user, ... } :
|
||
{
|
||
environment.systemPackages = with pkgs; [
|
||
tuigreet
|
||
];
|
||
services.greetd = {
|
||
enable = true;
|
||
settings = {
|
||
default_session = {
|
||
command = pkgs.lib.mkForce "${pkgs.tuigreet}/bin/tuigreet --remember --time --time-format '%I:%M %p | %a • %h | %F'";
|
||
};
|
||
};
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org444757e" class="outline-3">
|
||
<h3 id="org444757e"><code>generated/system/core/wayland.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org444757e">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, ... }:
|
||
{
|
||
# Enable essential services for a Wayland session
|
||
services.dbus.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
pulse.enable = true;
|
||
wireplumber.enable = true;
|
||
};
|
||
|
||
# XDG Desktop Portal settings for better application integration
|
||
xdg.portal = {
|
||
enable = true;
|
||
config.system.default = [ "hyprland" "gtk" ];
|
||
};
|
||
|
||
# Environment variables for a Wayland session
|
||
environment.sessionVariables = {
|
||
XDG_SESSION_TYPE = "wayland";
|
||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||
XCURSOR_SIZE = "24";
|
||
};
|
||
|
||
# Home Manager Wayland configurations
|
||
home-manager.users.${user.username} = {
|
||
xdg.portal = {
|
||
enable = true;
|
||
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
||
config.hyprland = {
|
||
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
|
||
};
|
||
};
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orge23331a" class="outline-3">
|
||
<h3 id="orge23331a"><code>generated/system/development/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orge23331a">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./databases/top.nix
|
||
./devops_ci_cd/top.nix
|
||
./programming_languages/top.nix
|
||
./virtualization/top.nix
|
||
./web_development/top.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgb9ae1bc" class="outline-3">
|
||
<h3 id="orgb9ae1bc"><code>generated/system/system_management/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgb9ae1bc">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./audio/top.nix
|
||
./backups/top.nix
|
||
./bluetooth/top.nix
|
||
./disk_management/top.nix
|
||
./hardware_sensors/top.nix
|
||
./logging_monitoring/top.nix
|
||
./login_manager/top.nix
|
||
./monitor_setup/top.nix
|
||
./networking/top.nix
|
||
./power_management/top.nix
|
||
./printers_scanners/top.nix
|
||
./security/top.nix
|
||
./system_updates/top.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgc700d83" class="outline-3">
|
||
<h3 id="orgc700d83"><code>generated/hyprland/animations_effects/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgc700d83">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org5b0e7fe" class="outline-3">
|
||
<h3 id="org5b0e7fe"><code>generated/hyprland/decorations/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org5b0e7fe">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org607c3df" class="outline-3">
|
||
<h3 id="org607c3df"><code>generated/hyprland/keyboard_binds/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org607c3df">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
config,
|
||
pkgs,
|
||
lib,
|
||
user,
|
||
inputs,
|
||
flakeRoot,
|
||
...
|
||
}:
|
||
let
|
||
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/hypr/bindings.conf");
|
||
in
|
||
{
|
||
home-manager.users.${user.username} = {
|
||
wayland.windowManager.hyprland = {
|
||
enable = true;
|
||
extraConfig = bindingsContent;
|
||
};
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgc6fe593" class="outline-3">
|
||
<h3 id="orgc6fe593"><code>generated/hyprland/notifications/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgc6fe593">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org2d4717c" class="outline-3">
|
||
<h3 id="org2d4717c"><code>generated/hyprland/statusbar_tray/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org2d4717c">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgb1fe061" class="outline-3">
|
||
<h3 id="orgb1fe061"><code>generated/hyprland/task_launcher/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgb1fe061">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./wofi.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgf6dc779" class="outline-3">
|
||
<h3 id="orgf6dc779"><code>generated/system/task_launcher/wofi.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgf6dc779">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
lib,
|
||
config,
|
||
pkgs,
|
||
flakeRoot,
|
||
user,
|
||
...
|
||
}:
|
||
|
||
let
|
||
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
|
||
# Dynamically read all files in assets/hyprland/conf/wofi/
|
||
wofiConfs =
|
||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
|
||
(name: {
|
||
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
|
||
});
|
||
in
|
||
{
|
||
environment.systemPackages = with pkgs; [
|
||
wofi
|
||
];
|
||
|
||
home-manager.users.${user.username} = {
|
||
home.file = {
|
||
# Map the files to their target paths in ~/.config/wofi/
|
||
"${wofiConfigDir}/config" = wofiConfs."wofi.conf"; # Use the actual filename
|
||
"${wofiConfigDir}/style.css" = wofiConfs."theming.css"; # Use the actual filename
|
||
};
|
||
|
||
home.sessionVariables = {
|
||
WOFI_CONFIG = "${wofiConfigDir}/config";
|
||
WOFI_STYLE = "${wofiConfigDir}/style.css";
|
||
};
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org3d1c0b8" class="outline-3">
|
||
<h3 id="org3d1c0b8"><code>generated/hyprland/task_window_workspace_switcher/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org3d1c0b8">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org3385510" class="outline-3">
|
||
<h3 id="org3385510"><code>generated/hyprland/window_rules/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org3385510">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org7ad83d7" class="outline-3">
|
||
<h3 id="org7ad83d7"><code>generated/mangowc/animations_effects/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org7ad83d7">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org5f35868" class="outline-3">
|
||
<h3 id="org5f35868"><code>generated/mangowc/decorations/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org5f35868">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgfdc0fc9" class="outline-3">
|
||
<h3 id="orgfdc0fc9"><code>generated/mangowc/keyboard_binds/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgfdc0fc9">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix"># Your code here...
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org7626771" class="outline-3">
|
||
<h3 id="org7626771"><code>generated/mangowc/notifications/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org7626771">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org34e7f89" class="outline-3">
|
||
<h3 id="org34e7f89"><code>generated/mangowc/statusbar_tray/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org34e7f89">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org0ab3add" class="outline-3">
|
||
<h3 id="org0ab3add"><code>generated/mangowc/task_launcher/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org0ab3add">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org5ef80ee" class="outline-3">
|
||
<h3 id="org5ef80ee"><code>generated/mangowc/task_window_workspace_switcher/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org5ef80ee">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org769ba9b" class="outline-3">
|
||
<h3 id="org769ba9b"><code>generated/mangowc/window_rules/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org769ba9b">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org01541e3" class="outline-3">
|
||
<h3 id="org01541e3"><code>generated/system/applications/accessibility/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org01541e3">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org35a56fd" class="outline-3">
|
||
<h3 id="org35a56fd"><code>generated/system/applications/file_management/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org35a56fd">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org84d26e6" class="outline-3">
|
||
<h3 id="org84d26e6"><code>generated/system/applications/gaming/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org84d26e6">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org606ad97" class="outline-3">
|
||
<h3 id="org606ad97"><code>generated/system/applications/media_playback_editing/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org606ad97">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org15e032d" class="outline-3">
|
||
<h3 id="org15e032d"><code>generated/system/applications/office_productivity/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org15e032d">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org61c696a" class="outline-3">
|
||
<h3 id="org61c696a"><code>generated/system/applications/terminal_shell/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org61c696a">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
./kitty.nix
|
||
./starship.nix
|
||
./zsh.nix
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgb5e5f0f" class="outline-3">
|
||
<h3 id="orgb5e5f0f"><code>generated/system/applications/terminal_shell/kitty.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgb5e5f0f">
|
||
<p>
|
||
This file sets up Kitty terminal
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, flakeRoot, ... }:
|
||
let
|
||
kittyConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/kitty";
|
||
in
|
||
{
|
||
home-manager.users.${user.username} = {
|
||
programs.kitty = {
|
||
enable = true;
|
||
};
|
||
|
||
# Copy the actual kitty.conf (not a symlink)
|
||
xdg.configFile."kitty/kitty.conf".text = lib.concatStringsSep "\n" [
|
||
(builtins.readFile "${flakeRoot}/assets/system/conf/kitty/kitty.conf")
|
||
];
|
||
|
||
# Copy the theme file
|
||
xdg.configFile."kitty/Catppuccin-Mocha.conf".source = "${flakeRoot}/assets/system/conf/kitty/Catppuccin-Mocha.conf";
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org957e5e5" class="outline-3">
|
||
<h3 id="org957e5e5"><code>generated/system/applications/terminal_shell/starship.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org957e5e5">
|
||
<p>
|
||
This file sets up starship prompt
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
lib,
|
||
config,
|
||
pkgs,
|
||
flakeRoot,
|
||
...
|
||
}:
|
||
let
|
||
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
|
||
in
|
||
{
|
||
programs.starship = {
|
||
enable = true;
|
||
settings = starshipConfig;
|
||
};
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org842ee1b" class="outline-3">
|
||
<h3 id="org842ee1b"><code>generated/system/applications/terminal_shell/zsh.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org842ee1b">
|
||
<p>
|
||
This sets up the zsh terminal
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{
|
||
lib,
|
||
config,
|
||
pkgs,
|
||
...
|
||
}:
|
||
|
||
{
|
||
# --- NixOS Configuration ---
|
||
environment.systemPackages = with pkgs; [
|
||
zsh
|
||
git
|
||
docker
|
||
];
|
||
|
||
# --- Home Manager Configuration ---
|
||
home-manager.users.henrov = {
|
||
programs.zsh = {
|
||
enable = true;
|
||
enableCompletion = true;
|
||
|
||
# Enable oh-my-zsh and use its plugins
|
||
oh-my-zsh = {
|
||
enable = true;
|
||
plugins = [
|
||
"git"
|
||
"docker"
|
||
"direnv"
|
||
"zsh-autosuggestions"
|
||
"zsh-syntax-highlighting"
|
||
"zsh-completions"
|
||
"zsh-history-substring-search"
|
||
];
|
||
theme = "agnoster"; # Fallback, overridden below
|
||
};
|
||
|
||
# Source Nixpkgs-provided plugins explicitly
|
||
initContent = ''
|
||
# Source plugins installed by Nix
|
||
source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||
source ${pkgs.zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||
|
||
# Catppuccin Mocha theme for oh-my-zsh
|
||
local mocha_base="#1E1E2E"
|
||
local mocha_surface0="#313244"
|
||
local mocha_text="#CDD6F4"
|
||
local mocha_lavender="#B4BEFE"
|
||
local mocha_blue="#89B4FA"
|
||
local mocha_sapphire="#74C7EC"
|
||
local mocha_teal="#94E2D5"
|
||
local mocha_green="#A6E3A1"
|
||
local mocha_yellow="#F9E2AF"
|
||
local mocha_peach="#FAB387"
|
||
local mocha_maroon="#EBA0AC"
|
||
local mocha_red="#F38BA8"
|
||
local mocha_mauve="#CBA6F7"
|
||
local mocha_pink="#F5C2E7"
|
||
local mocha_flamingo="#F2CDCD"
|
||
local mocha_rosewater="#F5E0DC"
|
||
|
||
# Prompt
|
||
PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} '
|
||
RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}'
|
||
|
||
# Git prompt
|
||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[$mocha_yellow]%}(%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[$mocha_yellow]%})%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[$mocha_red]%}✗%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[$mocha_green]%}✓%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[$mocha_blue]%}⇡%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg[$mocha_blue]%}⇣%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[$mocha_pink]%}?%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[$mocha_sapphire]%}+%{$reset_color%}"
|
||
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[$mocha_red]%}!%{$reset_color%}"
|
||
|
||
# Virtualenv/pyenv
|
||
ZSH_THEME_VIRTUAL_ENV_PREFIX="(%{$fg[$mocha_teal]%}"
|
||
ZSH_THEME_VIRTUAL_ENV_SUFFIX="%{$reset_color%})"
|
||
|
||
# Right prompt with Git status
|
||
RPROMPT='$(git_prompt_info) %{$fg[$mocha_green]%}%T%{$reset_color%}'
|
||
|
||
# Set the custom theme
|
||
ZSH_THEME="catppuccin-mocha"
|
||
'';
|
||
};
|
||
|
||
# Home Manager packages (optional)
|
||
home.packages = with pkgs; [
|
||
direnv
|
||
git-extras
|
||
];
|
||
};
|
||
}
|
||
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgda9213a" class="outline-3">
|
||
<h3 id="orgda9213a"><code>generated/system/development/databases/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgda9213a">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org048d6cb" class="outline-3">
|
||
<h3 id="org048d6cb"><code>generated/system/development/devops_ci_cd/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org048d6cb">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org70e717d" class="outline-3">
|
||
<h3 id="org70e717d"><code>generated/system/development/programming_languages/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org70e717d">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgf4edaa0" class="outline-3">
|
||
<h3 id="orgf4edaa0"><code>generated/system/development/virtualization/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgf4edaa0">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgb4e9fce" class="outline-3">
|
||
<h3 id="orgb4e9fce"><code>generated/system/development/web_development/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgb4e9fce">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org061f1b3" class="outline-3">
|
||
<h3 id="org061f1b3"><code>generated/system/system_management/audio/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org061f1b3">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org714f07f" class="outline-3">
|
||
<h3 id="org714f07f"><code>generated/system/system_management/backups/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org714f07f">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orga9daa15" class="outline-3">
|
||
<h3 id="orga9daa15"><code>generated/system/system_management/bluetooth/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orga9daa15">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org4a45be7" class="outline-3">
|
||
<h3 id="org4a45be7"><code>generated/system/system_management/disk_management/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org4a45be7">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orgd744fff" class="outline-3">
|
||
<h3 id="orgd744fff"><code>generated/system/system_management/hardware_sensors/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orgd744fff">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org119f110" class="outline-3">
|
||
<h3 id="org119f110"><code>generated/system/system_management/logging_monitoring/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org119f110">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org55fc95a" class="outline-3">
|
||
<h3 id="org55fc95a"><code>generated/system/system_management/login_manager/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org55fc95a">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org4e9971b" class="outline-3">
|
||
<h3 id="org4e9971b"><code>generated/system/system_management/monitor_setup/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org4e9971b">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org6db8ed5" class="outline-3">
|
||
<h3 id="org6db8ed5"><code>generated/system/system_management/networking/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org6db8ed5">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org6f5489f" class="outline-3">
|
||
<h3 id="org6f5489f"><code>generated/system/system_management/power_management/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org6f5489f">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org1c538b9" class="outline-3">
|
||
<h3 id="org1c538b9"><code>generated/system/system_management/printers_scanners/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org1c538b9">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-orga397813" class="outline-3">
|
||
<h3 id="orga397813"><code>generated/system/system_management/security/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-orga397813">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="outline-container-org0096d84" class="outline-3">
|
||
<h3 id="org0096d84"><code>generated/system/system_management/system_updates/top.nix</code></h3>
|
||
<div class="outline-text-3" id="text-org0096d84">
|
||
<p>
|
||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||
</p>
|
||
<div class="org-src-container">
|
||
<pre class="src src-nix">{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||
{
|
||
imports = [
|
||
# No subfolders to import
|
||
];
|
||
# .. put any code here
|
||
}
|
||
</pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="postamble" class="status">
|
||
<p class="author">Author: Henro Veijer</p>
|
||
<p class="date">Created: 2026-03-11 wo 19:57</p>
|
||
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
||
</div>
|
||
</body>
|
||
</html>
|