nix: setup syl
Anirudh Oppiliappan x@icyphox.sh
Sun, 11 Sep 2022 21:52:11 +0530
9 files changed,
1007 insertions(+),
82 deletions(-)
M
nix/darwin/com.googlecode.iterm2.plist
→
nix/darwin/com.googlecode.iterm2.plist
@@ -533,6 +533,8 @@ <real>0.95686274509803926</real>
</dict> </dict> </dict> + <key>Default Arrangement Name</key> + <string>Arrangement 1</string> <key>Default Bookmark Guid</key> <string>1FA48ED0-C56C-4189-9FCE-54B76BFD9373</string> <key>DisableTmuxWindowResizing</key>@@ -1285,7 +1287,7 @@ <string>Monaco 12</string>
<key>Non-ASCII Anti Aliased</key> <true/> <key>Normal Font</key> - <string>SFMono-Regular 14</string> + <string>SFMono-Regular 15</string> <key>Option Key Sends</key> <integer>2</integer> <key>Prompt Before Closing 2</key>@@ -2113,6 +2115,889 @@ <key>UseBorder</key>
<false/> <key>VisualIndicatorForEsc</key> <false/> + <key>Window Arrangements</key> + <dict> + <key>Arrangement 1</key> + <array> + <dict> + <key>Desired Columns</key> + <integer>80</integer> + <key>Desired Rows</key> + <integer>25</integer> + <key>Has Toolbelt</key> + <false/> + <key>Height</key> + <real>1080</real> + <key>Hide After Opening</key> + <false/> + <key>Hiding Toolbelt Should Resize Window</key> + <true/> + <key>Initial Profile</key> + <dict> + <key>Use Custom Window Title</key> + <false/> + </dict> + <key>Is Hotkey Window</key> + <false/> + <key>Saved Window Type</key> + <integer>13</integer> + <key>Screen</key> + <integer>0</integer> + <key>Scroller Width</key> + <real>0.0</real> + <key>Selected Tab Index</key> + <integer>0</integer> + <key>Tabs</key> + <array> + <dict> + <key>Root</key> + <dict> + <key>Splitter ID</key> + <string>1753A075-D731-4B36-94CD-CCC8191DC520</string> + <key>Subviews</key> + <array> + <dict> + <key>Is Active</key> + <integer>1</integer> + <key>Session</key> + <dict> + <key>Bookmark</key> + <dict> + <key>ASCII Anti Aliased</key> + <true/> + <key>ASCII Ligatures</key> + <false/> + <key>Allow Title Reporting</key> + <true/> + <key>Ambiguous Double Width</key> + <false/> + <key>Ansi 0 Color</key> + <dict> + <key>Blue Component</key> + <real>0.95686274509803926</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.95686274509803926</real> + <key>Red Component</key> + <real>0.95686274509803926</real> + </dict> + <key>Ansi 1 Color</key> + <dict> + <key>Blue Component</key> + <real>0.4392156862745098</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.4392156862745098</real> + <key>Red Component</key> + <real>0.85882352941176465</real> + </dict> + <key>Ansi 10 Color</key> + <dict> + <key>Blue Component</key> + <real>0.98039215686274506</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.98039215686274506</real> + <key>Red Component</key> + <real>0.98039215686274506</real> + </dict> + <key>Ansi 11 Color</key> + <dict> + <key>Blue Component</key> + <real>0.80000000000000004</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.80000000000000004</real> + <key>Red Component</key> + <real>0.80000000000000004</real> + </dict> + <key>Ansi 12 Color</key> + <dict> + <key>Blue Component</key> + <real>0.54117647058823526</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.54117647058823526</real> + <key>Red Component</key> + <real>0.54117647058823526</real> + </dict> + <key>Ansi 13 Color</key> + <dict> + <key>Blue Component</key> + <real>0.27058823529411763</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.27058823529411763</real> + <key>Red Component</key> + <real>0.27058823529411763</real> + </dict> + <key>Ansi 14 Color</key> + <dict> + <key>Blue Component</key> + <real>0.57647058823529407</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.61176470588235299</real> + <key>Red Component</key> + <real>0.31372549019607843</real> + </dict> + <key>Ansi 15 Color</key> + <dict> + <key>Blue Component</key> + <real>0.13725490196078433</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.13725490196078433</real> + <key>Red Component</key> + <real>0.13725490196078433</real> + </dict> + <key>Ansi 2 Color</key> + <dict> + <key>Blue Component</key> + <real>0.29411764705882354</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.62352941176470589</real> + <key>Red Component</key> + <real>0.48627450980392156</real> + </dict> + <key>Ansi 3 Color</key> + <dict> + <key>Blue Component</key> + <real>0.13333333333333333</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.59607843137254901</real> + <key>Red Component</key> + <real>0.83921568627450982</real> + </dict> + <key>Ansi 4 Color</key> + <dict> + <key>Blue Component</key> + <real>0.74901960784313726</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.52941176470588236</real> + <key>Red Component</key> + <real>0.396078431372549</real> + </dict> + <key>Ansi 5 Color</key> + <dict> + <key>Blue Component</key> + <real>0.80784313725490198</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.4392156862745098</real> + <key>Red Component</key> + <real>0.72156862745098038</real> + </dict> + <key>Ansi 6 Color</key> + <dict> + <key>Blue Component</key> + <real>0.57647058823529407</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.61176470588235299</real> + <key>Red Component</key> + <real>0.31372549019607843</real> + </dict> + <key>Ansi 7 Color</key> + <dict> + <key>Blue Component</key> + <real>0.40392156862745099</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.40392156862745099</real> + <key>Red Component</key> + <real>0.40392156862745099</real> + </dict> + <key>Ansi 8 Color</key> + <dict> + <key>Blue Component</key> + <real>0.66666666666666663</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.66666666666666663</real> + <key>Red Component</key> + <real>0.66666666666666663</real> + </dict> + <key>Ansi 9 Color</key> + <dict> + <key>Blue Component</key> + <real>0.4392156862745098</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.4392156862745098</real> + <key>Red Component</key> + <real>0.85882352941176465</real> + </dict> + <key>BM Growl</key> + <true/> + <key>Background Color</key> + <dict> + <key>Blue Component</key> + <real>0.95686274509803926</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.95686274509803926</real> + <key>Red Component</key> + <real>0.95686274509803926</real> + </dict> + <key>Background Image Location</key> + <string></string> + <key>Badge Color</key> + <dict> + <key>Alpha Component</key> + <real>0.5</real> + <key>Blue Component</key> + <real>0.0</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.1491314172744751</real> + <key>Red Component</key> + <real>1</real> + </dict> + <key>Blend</key> + <real>0.55625704735824744</real> + <key>Blink Allowed</key> + <true/> + <key>Blinking Cursor</key> + <false/> + <key>Blur</key> + <false/> + <key>Bold Color</key> + <dict> + <key>Blue Component</key> + <real>0.40392156862745099</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.40392156862745099</real> + <key>Red Component</key> + <real>0.40392156862745099</real> + </dict> + <key>Brighten Bold Text</key> + <false/> + <key>Character Encoding</key> + <integer>4</integer> + <key>Close Sessions On End</key> + <true/> + <key>Columns</key> + <integer>80</integer> + <key>Command</key> + <string>/usr/local/bin/tmux -CC new -A -s main</string> + <key>Cursor Boost</key> + <real>0.0</real> + <key>Cursor Color</key> + <dict> + <key>Blue Component</key> + <real>0.40392156862745099</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.40392156862745099</real> + <key>Red Component</key> + <real>0.40392156862745099</real> + </dict> + <key>Cursor Guide Color</key> + <dict> + <key>Alpha Component</key> + <real>0.25</real> + <key>Blue Component</key> + <real>1</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.9268307089805603</real> + <key>Red Component</key> + <real>0.70213186740875244</real> + </dict> + <key>Cursor Text Color</key> + <dict> + <key>Blue Component</key> + <real>0.95686274509803926</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.95686274509803926</real> + <key>Red Component</key> + <real>0.95686274509803926</real> + </dict> + <key>Cursor Type</key> + <integer>2</integer> + <key>Custom Command</key> + <string>No</string> + <key>Custom Directory</key> + <string>No</string> + <key>Custom Tab Title</key> + <string></string> + <key>Default Bookmark</key> + <string>No</string> + <key>Description</key> + <string>Default</string> + <key>Disable Window Resizing</key> + <true/> + <key>Draw Powerline Glyphs</key> + <false/> + <key>Flashing Bell</key> + <false/> + <key>Foreground Color</key> + <dict> + <key>Blue Component</key> + <real>0.40392156862745099</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.40392156862745099</real> + <key>Red Component</key> + <real>0.40392156862745099</real> + </dict> + <key>Guid</key> + <string>1FA48ED0-C56C-4189-9FCE-54B76BFD9373</string> + <key>Horizontal Spacing</key> + <real>0.93999999999999995</real> + <key>Idle Code</key> + <integer>0</integer> + <key>Initial Text</key> + <string></string> + <key>Jobs to Ignore</key> + <array> + <string>rlogin</string> + <string>ssh</string> + <string>slogin</string> + <string>telnet</string> + </array> + <key>Keyboard Map</key> + <dict> + <key>0x2d-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1f</string> + </dict> + <key>0x32-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x00</string> + </dict> + <key>0x33-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1b</string> + </dict> + <key>0x34-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1c</string> + </dict> + <key>0x35-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1d</string> + </dict> + <key>0x36-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1e</string> + </dict> + <key>0x37-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1f</string> + </dict> + <key>0x38-0x40000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x7f</string> + </dict> + <key>0xf700-0x220000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2A</string> + </dict> + <key>0xf700-0x240000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;5A</string> + </dict> + <key>0xf700-0x260000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;6A</string> + </dict> + <key>0xf700-0x280000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1b 0x1b 0x5b 0x41</string> + </dict> + <key>0xf701-0x220000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2B</string> + </dict> + <key>0xf701-0x240000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;5B</string> + </dict> + <key>0xf701-0x260000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;6B</string> + </dict> + <key>0xf701-0x280000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1b 0x1b 0x5b 0x42</string> + </dict> + <key>0xf702-0x220000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2D</string> + </dict> + <key>0xf702-0x240000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;5D</string> + </dict> + <key>0xf702-0x260000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;6D</string> + </dict> + <key>0xf702-0x280000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1b 0x1b 0x5b 0x44</string> + </dict> + <key>0xf703-0x220000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2C</string> + </dict> + <key>0xf703-0x240000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;5C</string> + </dict> + <key>0xf703-0x260000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;6C</string> + </dict> + <key>0xf703-0x280000</key> + <dict> + <key>Action</key> + <integer>11</integer> + <key>Text</key> + <string>0x1b 0x1b 0x5b 0x43</string> + </dict> + <key>0xf704-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2P</string> + </dict> + <key>0xf705-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2Q</string> + </dict> + <key>0xf706-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2R</string> + </dict> + <key>0xf707-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2S</string> + </dict> + <key>0xf708-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[15;2~</string> + </dict> + <key>0xf709-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[17;2~</string> + </dict> + <key>0xf70a-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[18;2~</string> + </dict> + <key>0xf70b-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[19;2~</string> + </dict> + <key>0xf70c-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[20;2~</string> + </dict> + <key>0xf70d-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[21;2~</string> + </dict> + <key>0xf70e-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[23;2~</string> + </dict> + <key>0xf70f-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[24;2~</string> + </dict> + <key>0xf729-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2H</string> + </dict> + <key>0xf729-0x40000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;5H</string> + </dict> + <key>0xf72b-0x20000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;2F</string> + </dict> + <key>0xf72b-0x40000</key> + <dict> + <key>Action</key> + <integer>10</integer> + <key>Text</key> + <string>[1;5F</string> + </dict> + </dict> + <key>Link Color</key> + <dict> + <key>Alpha Component</key> + <real>1</real> + <key>Blue Component</key> + <real>0.73423302173614502</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.35916060209274292</real> + <key>Red Component</key> + <real>0.0</real> + </dict> + <key>Minimum Contrast</key> + <real>0.37911934384031792</real> + <key>Mouse Reporting</key> + <true/> + <key>Name</key> + <string>Default</string> + <key>Non Ascii Font</key> + <string>Monaco 12</string> + <key>Non-ASCII Anti Aliased</key> + <true/> + <key>Normal Font</key> + <string>SFMono-Regular 15</string> + <key>Option Key Sends</key> + <integer>2</integer> + <key>Prompt Before Closing 2</key> + <false/> + <key>Right Option Key Sends</key> + <integer>0</integer> + <key>Rows</key> + <integer>25</integer> + <key>Screen</key> + <integer>-1</integer> + <key>Scrollback Lines</key> + <integer>1000</integer> + <key>Selected Text Color</key> + <dict> + <key>Blue Component</key> + <real>0.40392156862745099</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.40392156862745099</real> + <key>Red Component</key> + <real>0.40392156862745099</real> + </dict> + <key>Selection Color</key> + <dict> + <key>Blue Component</key> + <real>0.95686274509803926</real> + <key>Color Space</key> + <string>sRGB</string> + <key>Green Component</key> + <real>0.95686274509803926</real> + <key>Red Component</key> + <real>0.95686274509803926</real> + </dict> + <key>Send Code When Idle</key> + <false/> + <key>Shortcut</key> + <string></string> + <key>Show Status Bar</key> + <false/> + <key>Silence Bell</key> + <false/> + <key>Sync Title</key> + <false/> + <key>Tags</key> + <array/> + <key>Terminal Type</key> + <string>xterm-256color</string> + <key>Thin Strokes</key> + <integer>0</integer> + <key>Transparency</key> + <real>0.0</real> + <key>Unicode Version</key> + <integer>9</integer> + <key>Unlimited Scrollback</key> + <false/> + <key>Use Bold Font</key> + <true/> + <key>Use Bright Bold</key> + <true/> + <key>Use Cursor Guide</key> + <false/> + <key>Use Custom Tab Title</key> + <true/> + <key>Use Custom Window Title</key> + <false/> + <key>Use Italic Font</key> + <true/> + <key>Use Non-ASCII Font</key> + <false/> + <key>Vertical Spacing</key> + <real>1.1399999999999999</real> + <key>Visual Bell</key> + <true/> + <key>Window Type</key> + <integer>12</integer> + <key>Working Directory</key> + <string>/Users/icy</string> + </dict> + <key>Columns</key> + <integer>208</integer> + <key>Commands</key> + <array/> + <key>Directories</key> + <array/> + <key>Environment</key> + <dict> + <key>PWD</key> + <string>/Users/icy</string> + </dict> + <key>Hostname to Shell</key> + <dict/> + <key>Hosts</key> + <array/> + <key>Is UTF-8</key> + <true/> + <key>Key Labels</key> + <dict/> + <key>Name Controller State</key> + <dict> + <key>icon title stack</key> + <array/> + <key>window title stack</key> + <array/> + </dict> + <key>Program</key> + <dict> + <key>Type</key> + <string>Shell Launcher</string> + </dict> + <key>Rows</key> + <integer>48</integer> + <key>Session GUID</key> + <string>6FEF2272-31D3-4C1F-B69C-782DE2E7196C</string> + <key>Short Lived Single Use</key> + <false/> + <key>Should Expect Current Dir Updates</key> + <false/> + <key>Should Expect Prompt Marks</key> + <false/> + <key>Substitutions</key> + <dict> + <key>$$$$</key> + <string>$$</string> + </dict> + <key>Working Directory</key> + <string>/Users/icy</string> + <key>Working Directory Poller Disabled</key> + <false/> + </dict> + <key>View Type</key> + <string>SessionView</string> + <key>frame</key> + <dict> + <key>height</key> + <real>1056</real> + <key>width</key> + <real>1920</real> + <key>x</key> + <real>0.0</real> + <key>y</key> + <real>0.0</real> + </dict> + </dict> + </array> + <key>View Type</key> + <string>Splitter</string> + <key>frame</key> + <dict> + <key>height</key> + <real>1056</real> + <key>width</key> + <real>1920</real> + <key>x</key> + <real>0.0</real> + <key>y</key> + <real>0.0</real> + </dict> + <key>isVertical</key> + <false/> + </dict> + <key>Tab GUID</key> + <string>DB52F4EA-7B68-4E27-8E63-7FF4927B4797</string> + </dict> + </array> + <key>TerminalGuid</key> + <string>pty-3B9263A4-444A-4758-9B97-D0542A5EB0CD</string> + <key>Toolbelt</key> + <dict> + <key>Profiles</key> + <dict> + <key>iTermToolProfilesProfileListViewState</key> + <dict> + <key>iTermProfileListViewRestorableStateTagsFraction</key> + <real>0.0</real> + <key>iTermProfileListViewRestorableStateTagsVisible</key> + <false/> + </dict> + </dict> + </dict> + <key>Toolbelt Proportions</key> + <dict> + <key>proportions</key> + <array> + <dict> + <key>heightAsFraction</key> + <real>1</real> + <key>name</key> + <string>Profiles</string> + </dict> + </array> + </dict> + <key>Use Transparency</key> + <true/> + <key>Width</key> + <real>1920</real> + <key>Window Type</key> + <integer>13</integer> + <key>X Origin</key> + <real>0.0</real> + <key>Y Origin</key> + <real>0.0</real> + </dict> + </array> + </dict> <key>WindowNumber</key> <false/> <key>findMode_iTerm</key>
A
nix/darwin/home.nix
@@ -0,0 +1,26 @@
+{ config +, pkgs +, lib +, self +, host +, ... +}: + +{ + home.stateVersion = "22.05"; + home.username = "icy"; + + imports = [ + ../programs/common.nix + ]; + + home.packages = with pkgs; [ + tmux + git + fzy + ripgrep + pass + pinentry_mac + fd + ]; +}
M
nix/flake.lock
→
nix/flake.lock
@@ -74,27 +74,6 @@ "repo": "flake-utils",
"type": "github" } }, - "gitignore": { - "inputs": { - "nixpkgs": [ - "prompt", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1635165013, - "narHash": "sha256-o/BdVjNwcB6jOmzZjOH703BesSkkS5O7ej3xhyO8hAY=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "5b9e0ff9d3b551234b4f3eb3983744fa354b17f1", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [@@ -123,11 +102,11 @@ "neovim-flake": "neovim-flake",
"nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1661069307, - "narHash": "sha256-RHkMuUVBsj8c25hX5CFAEcBslkTk/juvX18JlCDR1T0=", + "lastModified": 1662883732, + "narHash": "sha256-Ks5dwSJpv3SY+6PgOsTmrv9SHaKO7IkMEwsM/0g0BFc=", "owner": "icyphox", "repo": "neovim-nightly-overlay", - "rev": "d883a3ea9a354e797ebbe12a0be45edc15884839", + "rev": "ca0121aeaf350454f0c978b2214cf0243dde2eb4", "type": "github" }, "original": {@@ -146,11 +125,11 @@ ]
}, "locked": { "dir": "contrib", - "lastModified": 1661053033, - "narHash": "sha256-tUoH/Sy52Ri4qI05WHvH+9/rQN9jihneXUFeZUmLPZs=", + "lastModified": 1662857789, + "narHash": "sha256-nPdjRQxH31YvGIQu7jJZoWRj8KFLZ5ryVyA5VSjTLW4=", "owner": "neovim", "repo": "neovim", - "rev": "6b9852cc4188d9ca7bce8e7592dcfca38539c743", + "rev": "9b4cab012662514af6fda3648d544633e1d73d4b", "type": "github" }, "original": {@@ -162,11 +141,11 @@ }
}, "nixos-hardware": { "locked": { - "lastModified": 1660407119, - "narHash": "sha256-04lWO0pDbhAXFdL4v2VzzwgxrZ5IefKn+TmZPiPeKxg=", + "lastModified": 1662714967, + "narHash": "sha256-IOTq5tAGGmBFj7tQbkcyLE261JUeTUucEE3p0WLZ4qM=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "12620020f76b1b5d2b0e6fbbda831ed4f5fe56e1", + "rev": "1fec8fda86dac5701146c77d5f8a414b14ed1ff6", "type": "github" }, "original": {@@ -177,11 +156,11 @@ }
}, "nixpkgs": { "locked": { - "lastModified": 1660908602, - "narHash": "sha256-SwZ85IPWvC4NxxFhWhRMTJpApSHbY1u4YK2UFWEBWvY=", + "lastModified": 1662732537, + "narHash": "sha256-iqxa+38SRU+SwNsKDyP8rZt79yPFGSgTe+K4Ujbb/uw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "495b19d5b3e62b4ec7e846bdfb6ef3d9c3b83492", + "rev": "74a1793c659d09d7cf738005308b1f86c90cb59b", "type": "github" }, "original": {@@ -193,11 +172,11 @@ }
}, "nixpkgs_2": { "locked": { - "lastModified": 1660998696, - "narHash": "sha256-N5eDv9THZz5pFn7NR1swaFrAJYByfrA5gU5L7JONItA=", + "lastModified": 1662732537, + "narHash": "sha256-iqxa+38SRU+SwNsKDyP8rZt79yPFGSgTe+K4Ujbb/uw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "13711c9ab9f5a160a44affb7a6221be53318a873", + "rev": "74a1793c659d09d7cf738005308b1f86c90cb59b", "type": "github" }, "original": {@@ -210,17 +189,16 @@ },
"prompt": { "inputs": { "fenix": "fenix", - "gitignore": "gitignore", "nixpkgs": [ "nixpkgs" ] }, "locked": { - "lastModified": 1643513342, - "narHash": "sha256-t819RkW5NiURx4lJlGMfHW3IuAMJtK29jUpAqUixKeg=", + "lastModified": 1662898783, + "narHash": "sha256-wh/sty5Gs7vwDcuNpxekI/7lzg7LEyQIQVAX0dMJTE8=", "ref": "refs/heads/master", - "rev": "8b1dd1f5609447f5d862e330a75a4b2a0dfc3929", - "revCount": 3, + "rev": "306640f502ef24e31590eef910b78ccd85ce8f6e", + "revCount": 5, "type": "git", "url": "https://git.peppe.rs/cli/prompt" },
M
nix/flake.nix
→
nix/flake.nix
@@ -44,11 +44,15 @@ darwinConfigurations = {
syl = darwin.lib.darwinSystem { system = "x86_64-darwin"; modules = [ + { + imports = [ ./hosts/syl/configuration.nix ]; + _module.args.self = self; + } home-manager.darwinModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.user.icy = { + home-manager.users.icy = { imports = [ ./darwin/home.nix ]; _module.args.self = self; _module.args.host = "syl";
A
nix/hosts/syl/configuration.nix
@@ -0,0 +1,32 @@
+{ self, config, pkgs, lib, ... }: + +{ + programs.bash.enable = true; + environment.shells = [ pkgs.bash ]; + + services.nix-daemon.enable = true; + nixpkgs.overlays = with self.overlays; [ + nvim-nightly + prompt + ]; + + homebrew = { + enable = true; + casks = [ "adur1990/tap/passformacos" ]; + masApps = { + Tailscale = 1475387142; + }; + }; + + system.activationScripts.applications.text = pkgs.lib.mkForce ( + '' + echo "setting up ~/Applications..." >&2 + rm -rf ~/Applications/Nix\ Apps + mkdir -p ~/Applications/Nix\ Apps + for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do + src="$(/usr/bin/stat -f%Y "$app")" + cp -r "$src" ~/Applications/Nix\ Apps + done + '' + ); +}
M
nix/programs/bash.nix
→
nix/programs/bash.nix
@@ -42,7 +42,8 @@
TERM = "xterm-256color-italic"; EDITOR = "nvim"; MANPAGER = "nvim +Man!"; - PATH = "$PATH:$HOME/go/bin:$HOME/bin"; + PATH = "/etc/profiles/per-user/icy/bin:$PATH:$HOME/go/bin:$HOME/bin"; + CLICOLOR = "1"; };
A
nix/programs/common.nix
@@ -0,0 +1,35 @@
+{ config +, pkgs +, self +, ... +}: + +{ + + imports = [ + ./git.nix + ./tmux.nix + ./readline.nix + ./neovim.nix + ./bash.nix + ]; + + programs = { + home-manager.enable = true; + direnv = { + enable = true; + enableBashIntegration = true; + nix-direnv = { + enable = true; + }; + }; + zoxide = { + enable = true; + enableBashIntegration = true; + }; + htop = { + enable = true; + settings.color_scheme = 1; + }; + }; +}
M
nix/programs/default.nix
→
nix/programs/default.nix
@@ -7,37 +7,13 @@
{ imports = [ - ./bash.nix ./chromium.nix - ./git.nix - ./neovim.nix - ./readline.nix - ./tmux.nix ./firefox.nix + ./common.nix ]; programs = { - home-manager.enable = true; mbsync.enable = true; - direnv = { - enable = true; - enableBashIntegration = true; - nix-direnv = { - enable = true; - }; - }; - zoxide = { - enable = true; - enableBashIntegration = true; - }; - nix-index = { - enable = true; - enableBashIntegration = true; - }; gpg.enable = true; - htop = { - enable = true; - settings.color_scheme = 1; - }; }; }
M
nix/programs/neovim.nix
→
nix/programs/neovim.nix
@@ -5,21 +5,10 @@ , lib
, ... }: -let - tabout = pkgs.vimUtils.buildVimPlugin { - name = "tabout.nvim"; - src = pkgs.fetchFromGitHub { - owner = "abecodes"; - repo = "tabout.nvim"; - rev = "be655cc7ce0f5d6d24eeaf8b36e82693fd2facca"; - sha256 = "sha256-wB9HIS0HW1DExgQ/is8/ejpH9FVYfH4UpS9HA6pgYK4="; - }; - }; -in { programs.neovim = { enable = true; - withNodeJs = true; + withNodeJs = false; vimAlias = true; withPython3 = true; extraPackages = with pkgs; [@@ -56,7 +45,6 @@ vim-gitgutter
vim-rsi nvim-treesitter-textobjects conflict-marker-vim - tabout vim-jsonnet vim-pencil ];