From a7b19df45d9b4c3a00fafda930f47a6c530c8710 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 19 Jun 2021 12:51:06 -0400 Subject: [PATCH] Create SSH module --- README.org | 238 +++++++++++++++++++++++++++--------------------- modules/ssh.nix | 10 ++ modules/x11.nix | 1 - 3 files changed, 143 insertions(+), 106 deletions(-) create mode 100644 modules/ssh.nix diff --git a/README.org b/README.org index 609a3d2..626a5ba 100644 --- a/README.org +++ b/README.org @@ -863,7 +863,6 @@ X11, or X[fn:25] is the generic name for the X Window System Display Server. All }; services.picom.enable = true; - services.openssh.enable = true; services.printing.enable = true; fonts.fonts = with pkgs; [ @@ -873,6 +872,33 @@ X11, or X[fn:25] is the generic name for the X Window System Display Server. All } #+END_SRC +** SSH + +#+NAME: module-ssh +#+BEGIN_SRC nix +./modules/ssh.nix +#+END_SRC + +OpenSSH[fn:27] is a suite of secure networking utilities based on the Secure Shell Protocol, which provides a secure channel over an unsecured network in a client-server architecture. OpenSSH[fn:27] started as a fork of the free SSH program; later versions were proprietary software. + +Apply some configuration to the default settings: + ++ Disable logging in as =root= ++ Disable password authentication + +#+BEGIN_SRC nix :noweb yes :tangle modules/ssh.nix +# <> +{ config, pkgs, ... }: + +{ + services.openssh = { + enable = true; + permitRootLogin = false; + passwordAuthentication = false; + }; +} +#+END_SRC + ** Flakes #+NAME: module-flakes @@ -880,7 +906,7 @@ X11, or X[fn:25] is the generic name for the X Window System Display Server. All ./modules/flakes.nix #+END_SRC -Nix Flakes[fn:27] are an upcoming feature of the Nix package manager[fn:5]. They allow you to specify your codes dependencies in a declarative way, simply by listing them inside of a ~flake.nix~ file. Each dependency is then pinned to a specific git-hash. Flakes[fn:27] replace the =nix-channels= command and things like ~builtins.fetchGit~, keeping dependencies at the top of the tree, and channels always in sync. Currently, Flakes[fn:27] are not available unless explicitly enabled. +Nix Flakes[fn:28] are an upcoming feature of the Nix package manager[fn:5]. They allow you to specify your codes dependencies in a declarative way, simply by listing them inside of a ~flake.nix~ file. Each dependency is then pinned to a specific git-hash. Flakes[fn:28] replace the =nix-channels= command and things like ~builtins.fetchGit~, keeping dependencies at the top of the tree, and channels always in sync. Currently, Flakes[fn:28] are not available unless explicitly enabled. #+BEGIN_SRC nix :noweb yes :tangle modules/flakes.nix # <> @@ -908,7 +934,7 @@ Nix Flakes[fn:27] are an upcoming feature of the Nix package manager[fn:5]. They ./modules/cachix.nix #+END_SRC -Cachix[fn:28] is a Command line client for Nix[fn:5] binary cache hosting. This allows downloading and usage of pre-compiled binaries for applications on /nearly/ every available system architecture. This speeds up the time it takes to rebuild configurations. +Cachix[fn:29] is a Command line client for Nix[fn:5] binary cache hosting. This allows downloading and usage of pre-compiled binaries for applications on /nearly/ every available system architecture. This speeds up the time it takes to rebuild configurations. #+BEGIN_SRC nix :noweb yes :tangle modules/cachix.nix # <> @@ -933,7 +959,7 @@ Cachix[fn:28] is a Command line client for Nix[fn:5] binary cache hosting. This ./modules/docker.nix #+END_SRC -Docker [fn:29] is a set of platform as a service that uses OS level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. +Docker [fn:30] is a set of platform as a service that uses OS level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. #+BEGIN_SRC nix :noweb yes :tangle modules/docker.nix { config, pkgs, ... }: @@ -993,7 +1019,7 @@ in { ./modules/firefox.nix #+END_SRC -Firefox Browser[fn:30], also known as Mozilla Firefox or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. Firefox uses the Gecko layout engine to render web pages, which implements current and anticipated web standards. In 2017, Firefox began incorporating new technology under the code name Quantum to promote parallelism and a more intuitive user interface. +Firefox Browser[fn:31], also known as Mozilla Firefox or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. Firefox uses the Gecko layout engine to render web pages, which implements current and anticipated web standards. In 2017, Firefox began incorporating new technology under the code name Quantum to promote parallelism and a more intuitive user interface. #+BEGIN_SRC nix :noweb yes :tangle modules/firefox.nix # <> @@ -1014,7 +1040,7 @@ Firefox Browser[fn:30], also known as Mozilla Firefox or simply Firefox, is a fr ./modules/jellyfin.nix #+END_SRC -Jellyfin[fn:31] is a suite of multimedia applications designed to organize, manage, and share digital media files to networked devices. It consists of a server application installed on a machine, and another application running as a client on devices such as Smartphones, Tablets, SmartTVs, Streaming Media Players, Game Consoles, or in a Web Browser. It can also serve media to DLNA and Chromecast enabled devices. It's free and open-source software fork of Emby. +Jellyfin[fn:32] is a suite of multimedia applications designed to organize, manage, and share digital media files to networked devices. It consists of a server application installed on a machine, and another application running as a client on devices such as Smartphones, Tablets, SmartTVs, Streaming Media Players, Game Consoles, or in a Web Browser. It can also serve media to DLNA and Chromecast enabled devices. It's free and open-source software fork of Emby. #+BEGIN_SRC nix :noweb yes :tangle modules/jellyfin.nix # <> @@ -1034,7 +1060,7 @@ Jellyfin[fn:31] is a suite of multimedia applications designed to organize, mana ./modules/moonlight.nix #+END_SRC -Moonlight[fn:32] is an open-source implementation of NVIDIA's GameStream Protocol. You can stream your collection of PC games from your GameStream-compatible PC to any supported device and play them remotely. Moonlight[fn:32] is perfect for gaming on the go (or on GNU/Linux[fn:1]) without sacrificing the graphics and game selection available for the PC. +Moonlight[fn:33] is an open-source implementation of NVIDIA's GameStream Protocol. You can stream your collection of PC games from your GameStream-compatible PC to any supported device and play them remotely. Moonlight[fn:33] is perfect for gaming on the go (or on GNU/Linux[fn:1]) without sacrificing the graphics and game selection available for the PC. #+BEGIN_SRC nix :noweb yes :tangle modules/moonlight.nix # <> @@ -1054,7 +1080,7 @@ Moonlight[fn:32] is an open-source implementation of NVIDIA's GameStream Protoco ./modules/teamviewer.nix #+END_SRC -The Teamviewer[fn:33] remote connectivity cloud platform enables secure remote access to any device, across platforms, from anywhere, anytime. Teamviewer[fn:33] connects computers, smartphones, servers, IoT devices, robots -- anything -- with fast, high performance connections through their global access network. It has been used in outer-space low-bandwidth environments. +The Teamviewer[fn:34] remote connectivity cloud platform enables secure remote access to any device, across platforms, from anywhere, anytime. Teamviewer[fn:34] connects computers, smartphones, servers, IoT devices, robots -- anything -- with fast, high performance connections through their global access network. It has been used in outer-space low-bandwidth environments. #+BEGIN_SRC nix :noweb yes :tangle modules/teamviewer.nix # <> @@ -1098,7 +1124,7 @@ inputs.home-manager.nixosModules.home-manager { ./modules/git.nix #+END_SRC -Git[fn:34] is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn, has a tiny footprint, and lighting fast performance. It outclasses every other version control tool such as: SCM, Subversion, CVS, ClearCase, with features like cheap local branching, convinient staging areas, and multiple workflows. +Git[fn:35] is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn, has a tiny footprint, and lighting fast performance. It outclasses every other version control tool such as: SCM, Subversion, CVS, ClearCase, with features like cheap local branching, convinient staging areas, and multiple workflows. #+BEGIN_SRC nix :noweb yes :tangle modules/git.nix # <> @@ -1125,7 +1151,7 @@ Git[fn:34] is a free and open source distributed version control system designed ./modules/gpg.nix #+END_SRC -GNU Privacy Guard[fn:35] is a free-software replacement for Symantec's PGP cryptographic software suite. It is compliant with RFC 4880, the IETF standards-track specification of OpenPGP. Modern versions of PGP are interoperable with GnuPG and other OpenPGP-compliant systems. +GNU Privacy Guard[fn:36] is a free-software replacement for Symantec's PGP cryptographic software suite. It is compliant with RFC 4880, the IETF standards-track specification of OpenPGP. Modern versions of PGP are interoperable with GnuPG and other OpenPGP-compliant systems. #+BEGIN_SRC nix :noweb yes :tangle modules/gpg.nix # <> @@ -1148,7 +1174,7 @@ GNU Privacy Guard[fn:35] is a free-software replacement for Symantec's PGP crypt ./modules/vim.nix #+END_SRC -Neovim[fn:36] is a project that seeks to aggressively refactor Vim in order to: +Neovim[fn:37] is a project that seeks to aggressively refactor Vim in order to: + Simplify maintenance and encourage contributions + Split the work between multiple developers @@ -1188,7 +1214,7 @@ Neovim[fn:36] is a project that seeks to aggressively refactor Vim in order to: ./modules/gtk.nix #+END_SRC -GTK[fn:37] is a free and open-source, cross-platform widget toolkit for graphical user interfaces. It's one of the most popular toolkits for the Wayland[fn:26] and X11[fn:25] windowing systems. +GTK[fn:38] is a free and open-source, cross-platform widget toolkit for graphical user interfaces. It's one of the most popular toolkits for the Wayland[fn:26] and X11[fn:25] windowing systems. #+BEGIN_SRC nix :noweb yes :tangle modules/gtk.nix # <> @@ -1228,7 +1254,7 @@ GTK[fn:37] is a free and open-source, cross-platform widget toolkit for graphica ./modules/emacs.nix #+END_SRC -GNU/Emacs[fn:2] is an extensible, customizable, free/libre text editor -- and more. At its core is an interpreter for Emacs Lisp[fn:35], a dialect of the Lisp programming language with extensions to support text editing. Other features include: +GNU/Emacs[fn:2] is an extensible, customizable, free/libre text editor -- and more. At its core is an interpreter for Emacs Lisp[fn:36], a dialect of the Lisp programming language with extensions to support text editing. Other features include: + Highly customizable + Full Unicopde support @@ -1444,7 +1470,7 @@ Define some methods for interaction between GNU/Emacs[fn:2], and the systems und pkgs.nixfmt #+END_SRC -Nix-mode[fn:38] is an Emacs[fn:2] major mode for editing Nix[fn:5] expressions. This provides basic handling of =.nix= files. Syntax highlighting and indentation support using =SMIE= are provided. +Nix-mode[fn:39] is an Emacs[fn:2] major mode for editing Nix[fn:5] expressions. This provides basic handling of =.nix= files. Syntax highlighting and indentation support using =SMIE= are provided. #+NAME: emacs-nix-mode-package #+BEGIN_SRC nix @@ -1453,7 +1479,7 @@ epkgs.nix-mode ** Evil Mode -Evil[fn:21] is an extensible VI layer for GNU/Emacs[fn:2]. It emulates the main features of Vim[fn:36], turning GNU/Emacs[fn:2] into a modal editor. +Evil[fn:21] is an extensible VI layer for GNU/Emacs[fn:2]. It emulates the main features of Vim[fn:37], turning GNU/Emacs[fn:2] into a modal editor. #+NAME: emacs-evil-package #+BEGIN_SRC nix @@ -1463,7 +1489,7 @@ epkgs.evil-surround epkgs.evil-nerd-commenter #+END_SRC -The next time Emacs[fn:2] is started, it will come up in /normal state/, denoted by == in the modeline. This is where the main ~vi~ bindings are defined. Like Emacs[fn:2] in general, Evil[fn:21] is extensible in Emacs Lisp[fn:35]. +The next time Emacs[fn:2] is started, it will come up in /normal state/, denoted by == in the modeline. This is where the main ~vi~ bindings are defined. Like Emacs[fn:2] in general, Evil[fn:21] is extensible in Emacs Lisp[fn:36]. #+NAME: emacs-evil-elisp #+BEGIN_SRC emacs-lisp @@ -1573,7 +1599,7 @@ home.file.".xinitrc" = { epkgs.general #+END_SRC -General[fn:39] provides a more convenient method for binding keys in Emacs[fn:2], providing a unified interface for key definitions. Its primary purpose is to build on /existing/ functionality to make key definitions more clear and concise. +General[fn:40] provides a more convenient method for binding keys in Emacs[fn:2], providing a unified interface for key definitions. Its primary purpose is to build on /existing/ functionality to make key definitions more clear and concise. #+NAME: emacs-general-elisp #+BEGIN_SRC emacs-lisp @@ -1626,7 +1652,7 @@ General[fn:39] provides a more convenient method for binding keys in Emacs[fn:2] ** Which Key -Which-key[fn:40] is a minor mode for Emacs[fn:2] that displays the key bindings following your currently entered incomplete command (prefix) in a popup or mini-buffer. +Which-key[fn:41] is a minor mode for Emacs[fn:2] that displays the key bindings following your currently entered incomplete command (prefix) in a popup or mini-buffer. #+NAME: emacs-which-key-package #+BEGIN_SRC nix @@ -1643,7 +1669,7 @@ epkgs.which-key ** EWW -The Emacs Web Wowser[fn:41] is a Web browser written in Emacs Lisp[fn:35] based on the ~shr.el~ library. It's my primary browser when it comes to text-based browsing. +The Emacs Web Wowser[fn:42] is a Web browser written in Emacs Lisp[fn:36] based on the ~shr.el~ library. It's my primary browser when it comes to text-based browsing. + Use ~eww~ as the default browser + Don't use any special fonts or colours @@ -1660,7 +1686,7 @@ The Emacs Web Wowser[fn:41] is a Web browser written in Emacs Lisp[fn:35] based ** ERC -ERC[fn:42] is a powerful, modular, and extensible IRC client for GNU/Emacs[fn:2]. It's part of the GNU project, and included in Emacs. +ERC[fn:43] is a powerful, modular, and extensible IRC client for GNU/Emacs[fn:2]. It's part of the GNU project, and included in Emacs. #+NAME: emacs-erc-elisp #+BEGIN_SRC emacs-lisp @@ -1691,7 +1717,7 @@ ERC[fn:42] is a powerful, modular, and extensible IRC client for GNU/Emacs[fn:2] epkgs.dired-single #+END_SRC -Dired[fn:43] shows a directory listing inside of an Emacs[fn:2] buffer that can be used to perform various file operations on files and subdirectories. THe operations you can perform are numerous, from creating subdirectories, byte-compiling files, searching, and editing files. Dired-Extra[fn:44] provides extra functionality for Dired[fn:43]. +Dired[fn:44] shows a directory listing inside of an Emacs[fn:2] buffer that can be used to perform various file operations on files and subdirectories. THe operations you can perform are numerous, from creating subdirectories, byte-compiling files, searching, and editing files. Dired-Extra[fn:45] provides extra functionality for Dired[fn:44]. #+NAME: emacs-dired-elisp #+BEGIN_SRC emacs-lisp @@ -1718,7 +1744,7 @@ epkgs.all-the-icons epkgs.all-the-icons-dired #+END_SRC -All The Icons[fn:45] is a utility package to collect various Icon Fonts and prioritize them within GNU/Emacs[fn:2]. +All The Icons[fn:46] is a utility package to collect various Icon Fonts and prioritize them within GNU/Emacs[fn:2]. #+NAME: emacs-icons-elisp #+BEGIN_SRC emacs-lisp @@ -1736,7 +1762,7 @@ All The Icons[fn:45] is a utility package to collect various Icon Fonts and prio epkgs.emojify #+END_SRC -Emojify[fn:46] is an Emacs[fn:2] extension to display Emojis. It can display GitHub style Emojis like :smile: or plain ascii ones such as :). It tries to be as efficient as possible, while also providing flexibility. +Emojify[fn:47] is an Emacs[fn:2] extension to display Emojis. It can display GitHub style Emojis like :smile: or plain ascii ones such as :). It tries to be as efficient as possible, while also providing flexibility. #+NAME: emacs-emoji-elisp #+BEGIN_SRC emacs-lisp @@ -1751,7 +1777,7 @@ Emojify[fn:46] is an Emacs[fn:2] extension to display Emojis. It can display Git epkgs.eshell-prompt-extras #+END_SRC -EShell [fn:47] is a shell-like command interpreter for GNU/Emacs[fn:2] implemented in Emacs Lisp[fn:35]. It invokes no external processes except for those requested by the user. It's intended to be an alternative for IELM, and a full REPL envionment for Emacs[fn:2]. +EShell [fn:48] is a shell-like command interpreter for GNU/Emacs[fn:2] implemented in Emacs Lisp[fn:36]. It invokes no external processes except for those requested by the user. It's intended to be an alternative for IELM, and a full REPL envionment for Emacs[fn:2]. #+NAME: emacs-eshell-elisp #+BEGIN_SRC emacs-lisp @@ -1770,7 +1796,7 @@ EShell [fn:47] is a shell-like command interpreter for GNU/Emacs[fn:2] implement ** VTerm -Emacs Libvterm (VTerm)[fn:48] is a fully-fledged terminal emulator inside GNU/Emacs[fn:2] based on Libvterm[fn:49], a blazing fast C library used in Neovim[fn:36]. As a result of using compiled code (instead of Emacs Lisp[fn:35]), VTerm[fn:48] is capable, fast, and it can seamlessly handle large outputs. +Emacs Libvterm (VTerm)[fn:49] is a fully-fledged terminal emulator inside GNU/Emacs[fn:2] based on Libvterm[fn:50], a blazing fast C library used in Neovim[fn:37]. As a result of using compiled code (instead of Emacs Lisp[fn:36]), VTerm[fn:49] is capable, fast, and it can seamlessly handle large outputs. #+NAME: emacs-vterm-package #+BEGIN_SRC nix @@ -1786,7 +1812,7 @@ epkgs.vterm ** Magit -Magit[fn:50] is an interface to the Git[fn:34] version control system, implemented as a GNU/Emacs[fn:2] package written in Elisp[fn:35]. It fills the glaring gap between the Git[fn:34] command line interface and various GUIs, letting you perform trivial as well as elaborate version control tasks within a few mnemonic key presses. +Magit[fn:51] is an interface to the Git[fn:35] version control system, implemented as a GNU/Emacs[fn:2] package written in Elisp[fn:36]. It fills the glaring gap between the Git[fn:35] command line interface and various GUIs, letting you perform trivial as well as elaborate version control tasks within a few mnemonic key presses. #+NAME: emacs-magit-package #+BEGIN_SRC nix @@ -1849,7 +1875,7 @@ epkgs.hydra epkgs.elfeed #+END_SRC -Elfeed[fn:51] is an extensible web feed reader for GNU/Emacs[fn:2], support both =Atom= and =RSS=. It requires =Emacs 24.3+= and is available for download from the standard repositories. +Elfeed[fn:52] is an extensible web feed reader for GNU/Emacs[fn:2], support both =Atom= and =RSS=. It requires =Emacs 24.3+= and is available for download from the standard repositories. | Key | Command | |-----+---------| @@ -1883,7 +1909,7 @@ Elfeed[fn:51] is an extensible web feed reader for GNU/Emacs[fn:2], support both epkgs.org #+END_SRC -Org-mode[fn:52] is a document editing and organizing mode, designed for notes, planning, and authoring within the free software text editor GNU/Emacs[fn:2]. The name is used to encompass plain text files (such as this one) that include simple marks to indicate levels of a hierarchy, and an editor with functions that can read the markup and manipulate the hierarchy elements. +Org-mode[fn:53] is a document editing and organizing mode, designed for notes, planning, and authoring within the free software text editor GNU/Emacs[fn:2]. The name is used to encompass plain text files (such as this one) that include simple marks to indicate levels of a hierarchy, and an editor with functions that can read the markup and manipulate the hierarchy elements. #+NAME: emacs-org-elisp #+BEGIN_SRC emacs-lisp @@ -1923,7 +1949,7 @@ epkgs.org-roam epkgs.org-roam-server #+END_SRC -Org Roam[fn:53] is a plain-text knowledge management system. It borrows principles from the Zettelkasten method[fn:54], providing a solution for non-hierarchical note-taking. It should also work as a plug-and-play solution for anyone already using Org Mode[fn:52] for their personal wiki (me). Org Roam Server[fn:55] is a Web application to visualize the Org Roam[fn:53] database. Although it should automatically reload if there's a change in the database, it can be done so manually by clicking the =reload= button on the Web interface. +Org Roam[fn:54] is a plain-text knowledge management system. It borrows principles from the Zettelkasten method[fn:55], providing a solution for non-hierarchical note-taking. It should also work as a plug-and-play solution for anyone already using Org Mode[fn:53] for their personal wiki (me). Org Roam Server[fn:56] is a Web application to visualize the Org Roam[fn:54] database. Although it should automatically reload if there's a change in the database, it can be done so manually by clicking the =reload= button on the Web interface. #+NAME: emacs-org-roam-elisp #+BEGIN_SRC emacs-lisp @@ -2033,7 +2059,7 @@ Org Roam[fn:53] is a plain-text knowledge management system. It borrows principl epkgs.org-drill #+END_SRC -Org Drill[fn:56] is an extension for Org Mode[fn:52] that uses a spaced repition algorithm to conduct interactive /Drill Sessions/ using Org files as sources of facts to be memorized. +Org Drill[fn:57] is an extension for Org Mode[fn:53] that uses a spaced repition algorithm to conduct interactive /Drill Sessions/ using Org files as sources of facts to be memorized. #+NAME: emacs-org-drill-elisp #+BEGIN_SRC emacs-lisp @@ -2047,7 +2073,7 @@ Org Drill[fn:56] is an extension for Org Mode[fn:52] that uses a spaced repition ** Org Agenda -The way Org Mode[fn:52] works, TODO items, time-stamped items, and tagged headlines can be scattered throughout a file, or even a number of files. To get an overview of open action items, or of events that are important for a particular date, this information must be collected, sorted, and displayed in an organized way. +The way Org Mode[fn:53] works, TODO items, time-stamped items, and tagged headlines can be scattered throughout a file, or even a number of files. To get an overview of open action items, or of events that are important for a particular date, this information must be collected, sorted, and displayed in an organized way. #+NAME: emacs-org-agenda-elisp #+BEGIN_SRC emacs-lisp @@ -2079,7 +2105,7 @@ The way Org Mode[fn:52] works, TODO items, time-stamped items, and tagged headli epkgs.org-pomodoro #+END_SRC -Org Pomodoro[fn:57] adds basic support for the Pomodoro Technique[fn:58] in GNU/Emacs[fn:2]. It can be started for the task at point, or the last task time was clocked for. Each session starts a timer of 25 minutes, finishing with a break of 5 minutes. After 4 sessions, ther will be a break of 20 minutes. All values are customizable. +Org Pomodoro[fn:58] adds basic support for the Pomodoro Technique[fn:59] in GNU/Emacs[fn:2]. It can be started for the task at point, or the last task time was clocked for. Each session starts a timer of 25 minutes, finishing with a break of 5 minutes. After 4 sessions, ther will be a break of 20 minutes. All values are customizable. #+NAME: emacs-pomodoro-elisp #+BEGIN_SRC emacs-lisp @@ -2099,7 +2125,7 @@ Org Pomodoro[fn:57] adds basic support for the Pomodoro Technique[fn:58] in GNU/ epkgs.writegood-mode #+END_SRC -Writegood Mode[fn:59] is an Emacs[fn:2] minor mode to aid in finding common writing problems. It highlights the text based on the following criteria: +Writegood Mode[fn:60] is an Emacs[fn:2] minor mode to aid in finding common writing problems. It highlights the text based on the following criteria: + Weasel Words + Passive Voice @@ -2122,7 +2148,7 @@ pkgs.aspellDicts.en-science pkgs.aspellDicts.en-computers #+END_SRC -GNU Aspell[fn:60] is a Free and Open Source spell checker designed to replace ISpell. It can be used as a library, or an independent spell checker. Its main feature is that it does a superior job of suggesting possible replacements for mis-spelled words than any other spell checker for the English language. +GNU Aspell[fn:61] is a Free and Open Source spell checker designed to replace ISpell. It can be used as a library, or an independent spell checker. Its main feature is that it does a superior job of suggesting possible replacements for mis-spelled words than any other spell checker for the English language. #+NAME: emacs-aspell-elisp #+BEGIN_SRC emacs-lisp @@ -2142,14 +2168,14 @@ GNU Aspell[fn:60] is a Free and Open Source spell checker designed to replace IS pkgs.hugo #+END_SRC -Hugo[fn:61] is one of the most popular open-source static site generators. +Hugo[fn:62] is one of the most popular open-source static site generators. #+NAME: emacs-hugo-package #+BEGIN_SRC nix epkgs.ox-hugo #+END_SRC -Ox-Hugo[fn:62] is an Org-Mode[fn:52] exporter for Hugo[fn:61] compabile markdown. I post nonsense on my Personal Blog[fn:63], and share my notes on various textbooks, articles, and software Here[fn:64]. +Ox-Hugo[fn:63] is an Org-Mode[fn:53] exporter for Hugo[fn:62] compabile markdown. I post nonsense on my Personal Blog[fn:64], and share my notes on various textbooks, articles, and software Here[fn:65]. #+NAME: emacs-hugo-elisp #+BEGIN_SRC emacs-lisp @@ -2209,7 +2235,7 @@ Ox-Hugo[fn:62] is an Org-Mode[fn:52] exporter for Hugo[fn:61] compabile markdown epkgs.ox-reveal #+END_SRC -Reveal.js[fn:65] is an open source HTML presentation framework. It enables anyone with a web browser to create fully-featured and beautiful presentations for free. Presentations with Reveal.js[fn:65] are built on open web technologies. That means anything you can do on the web, you can do in your presentation. Ox Reveal[fn:66] is an Org Mode[fn:52] export backend. +Reveal.js[fn:66] is an open source HTML presentation framework. It enables anyone with a web browser to create fully-featured and beautiful presentations for free. Presentations with Reveal.js[fn:66] are built on open web technologies. That means anything you can do on the web, you can do in your presentation. Ox Reveal[fn:67] is an Org Mode[fn:53] export backend. #+NAME: emacs-reveal-elisp #+BEGIN_SRC emacs-lisp @@ -2249,7 +2275,7 @@ Reveal.js[fn:65] is an open source HTML presentation framework. It enables anyon pkgs.pass #+END_SRC -With Pass[fn:67], each password lives inside of an encrypted =gpg= file, whose name is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, compies from computer to computer, and in general, manipulated using standard command line tools. +With Pass[fn:68], each password lives inside of an encrypted =gpg= file, whose name is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, compies from computer to computer, and in general, manipulated using standard command line tools. #+NAME: emacs-pass-package #+BEGIN_SRC nix @@ -2377,7 +2403,7 @@ mu index epkgs.projectile #+END_SRC -Projectile[fn:68] is a project interaction library for GNU/Emacs[fn:2]. Its goal is to provide a nice set of features operating on a project level, without introducing external dependencies. +Projectile[fn:69] is a project interaction library for GNU/Emacs[fn:2]. Its goal is to provide a nice set of features operating on a project level, without introducing external dependencies. #+NAME: emacs-projectile-elisp #+BEGIN_SRC emacs-lisp @@ -2394,7 +2420,7 @@ epkgs.lsp-mode epkgs.lsp-ui #+END_SRC -The Language Server Protocol (LSP)[fn:69] defines the protocol used between an Editor or IDE, and a language server that provides features like: +The Language Server Protocol (LSP)[fn:70] defines the protocol used between an Editor or IDE, and a language server that provides features like: + Auto Complete + Go To Defintion @@ -2418,7 +2444,7 @@ The Language Server Protocol (LSP)[fn:69] defines the protocol used between an E epkgs.ccls #+END_SRC -Emacs CCLS[fn:70] is a client for CCLS, a C/C++/Objective-C language server supporting multi-million line C++ code bases, powered by libclang. +Emacs CCLS[fn:71] is a client for CCLS, a C/C++/Objective-C language server supporting multi-million line C++ code bases, powered by libclang. #+NAME: emacs-ccls-elisp #+BEGIN_SRC emacs-lisp @@ -2441,7 +2467,7 @@ Emacs CCLS[fn:70] is a client for CCLS, a C/C++/Objective-C language server supp epkgs.company #+END_SRC -Company[fn:71] is a text completion framework for GNU/Emacs[fn:2]. The name stands for =Complete Anything=. It uses pluggable back-ends and front-ends to retieve and display completion candidates. +Company[fn:72] is a text completion framework for GNU/Emacs[fn:2]. The name stands for =Complete Anything=. It uses pluggable back-ends and front-ends to retieve and display completion candidates. #+NAME: emacs-company-elisp #+BEGIN_SRC emacs-lisp @@ -2460,7 +2486,7 @@ Company[fn:71] is a text completion framework for GNU/Emacs[fn:2]. The name stan epkgs.go-mode #+END_SRC -Go Mode[fn:72] is a major mode for editing Golang[fn:12] source code in GNU/Emacs[fn:2]. +Go Mode[fn:73] is a major mode for editing Golang[fn:12] source code in GNU/Emacs[fn:2]. #+NAME: emacs-golang-elisp #+BEGIN_SRC emacs-lisp @@ -2480,7 +2506,7 @@ Go Mode[fn:72] is a major mode for editing Golang[fn:12] source code in GNU/Emac epkgs.rustic #+END_SRC -Rustic[fn:71] is a fork of rust-mode that integrates well with the Language Server Protocol[fn:67]. Include the rust shell before launching GNU/Emacs[fn:2] to use this! +Rustic[fn:72] is a fork of rust-mode that integrates well with the Language Server Protocol[fn:68]. Include the rust shell before launching GNU/Emacs[fn:2] to use this! #+NAME: emacs-rustic-elisp #+BEGIN_SRC emacs-lisp @@ -2496,7 +2522,7 @@ Rustic[fn:71] is a fork of rust-mode that integrates well with the Language Serv epkgs.pretty-mode #+END_SRC -The built in Python Mode[fn:73] has a nice feature set for working with Python[fn:18] code in GNU/Emacs[fn:2]. It is complimented with the addition of an LSP[fn:69] server. These tools are included in the Development Shell[fn:11] for Python[fn:18]. +The built in Python Mode[fn:74] has a nice feature set for working with Python[fn:18] code in GNU/Emacs[fn:2]. It is complimented with the addition of an LSP[fn:70] server. These tools are included in the Development Shell[fn:11] for Python[fn:18]. #+NAME: emacs-python-elisp #+BEGIN_SRC emacs-lisp @@ -2513,14 +2539,14 @@ The built in Python Mode[fn:73] has a nice feature set for working with Python[f pkgs.plantuml #+END_SRC -PlantUML[fn:74] is an open-source tool allowing users to create diagrams from a plain-text language. Besides various UML diagrams, PlantUML[fn:74] has support for various other software developmented related formats, as well as visualizations of =JSON= and =YAML= files. +PlantUML[fn:75] is an open-source tool allowing users to create diagrams from a plain-text language. Besides various UML diagrams, PlantUML[fn:75] has support for various other software developmented related formats, as well as visualizations of =JSON= and =YAML= files. #+NAME: emacs-plantuml-package #+BEGIN_SRC nix epkgs.plantuml-mode #+END_SRC -PlantUML Mode[fn:75] is a major mode for editing PlantUML[fn:74] sources in GNU/Emacs[fn:2]. +PlantUML Mode[fn:76] is a major mode for editing PlantUML[fn:75] sources in GNU/Emacs[fn:2]. #+NAME: emacs-plantuml-elisp #+BEGIN_SRC emacs-lisp @@ -2542,7 +2568,7 @@ epkgs.ivy-posframe epkgs.ivy-prescient #+END_SRC -Ivy (Swiper)[fn:76] is a generic completion mechanism for GNU/Emacs[fn:2]. While operating similarily to other completion schemes like =icomplete-mode=, it aims to be more efficient, smaller, simpler, and smoother to use, while remaining highly customizable. +Ivy (Swiper)[fn:77] is a generic completion mechanism for GNU/Emacs[fn:2]. While operating similarily to other completion schemes like =icomplete-mode=, it aims to be more efficient, smaller, simpler, and smoother to use, while remaining highly customizable. #+NAME: emacs-swiper-elisp #+BEGIN_SRC emacs-lisp @@ -2583,7 +2609,7 @@ It's possible to control the frame opacity in GNU/Emacs[fn:2]. Unlike other tran pkgs.brightnessctl #+END_SRC -The Desktop Environment[fn:77] package provides commands and a global minor mode for controlling your GNU/Linux[fn:1] desktop from within GNU/Emacs[fn:2]. +The Desktop Environment[fn:78] package provides commands and a global minor mode for controlling your GNU/Linux[fn:1] desktop from within GNU/Emacs[fn:2]. #+NAME: emacs-desktop-package #+BEGIN_SRC nix @@ -2606,7 +2632,7 @@ You can control the brightness, volume, take screenshots, and lock / unlock the epkgs.doom-themes #+END_SRC -Doom Themes[fn:78] is a theme megapack for GNU/Emacs[fn:2], inspired by community favourites. +Doom Themes[fn:79] is a theme megapack for GNU/Emacs[fn:2], inspired by community favourites. #+NAME: emacs-doom-themes-elisp #+BEGIN_SRC emacs-lisp @@ -2630,7 +2656,7 @@ Doom Themes[fn:78] is a theme megapack for GNU/Emacs[fn:2], inspired by communit epkgs.doom-modeline #+END_SRC -Doom Modeline[fn:79] is a fancy and fast modeline inspired by minimalism design. It's integrated into Centaur Emacs, Doom Emacs, and Spacemacs. +Doom Modeline[fn:80] is a fancy and fast modeline inspired by minimalism design. It's integrated into Centaur Emacs, Doom Emacs, and Spacemacs. #+NAME: emacs-doom-modeline-elisp #+BEGIN_SRC emacs-lisp @@ -2694,110 +2720,112 @@ Doom Modeline[fn:79] is a fancy and fast modeline inspired by minimalism design. [fn:26] https://wayland.freedesktop.org -[fn:27] https://nixos.wiki/wiki/Flakes +[fn:27] https://openssh.com + +[fn:28] https://nixos.wiki/wiki/Flakes -[fn:28] https://nix-community.cachix.org +[fn:29] https://nix-community.cachix.org -[fn:29] https://docker.org +[fn:30] https://docker.org -[fn:30] https://en.wikipedia.org/wiki/Firefox +[fn:31] https://en.wikipedia.org/wiki/Firefox -[fn:31] https://jellyfin.org +[fn:32] https://jellyfin.org -[fn:32] https://moonlight-stream.org +[fn:33] https://moonlight-stream.org -[fn:33] https://teamviewer.com +[fn:34] https://teamviewer.com -[fn:34] https://git-scm.com +[fn:35] https://git-scm.com -[fn:35] https://emacswiki.org/emacs/LearnEmacsLisp +[fn:36] https://emacswiki.org/emacs/LearnEmacsLisp -[fn:36] https://neovim.io +[fn:37] https://neovim.io -[fn:37] https://gtk.org +[fn:38] https://gtk.org -[fn:38] https://github.com/nixos/nix-mode +[fn:39] https://github.com/nixos/nix-mode -[fn:39] https://github.com/noctuid/general.el +[fn:40] https://github.com/noctuid/general.el -[fn:40] https://github.com/justbur/emacs-which-key +[fn:41] https://github.com/justbur/emacs-which-key -[fn:41] https://emacswiki.org/emacs/eww +[fn:42] https://emacswiki.org/emacs/eww -[fn:42] https://gnu.org/software/emacs/erc.html +[fn:43] https://gnu.org/software/emacs/erc.html -[fn:43] https://emacswiki.org/emacs/DiredMode +[fn:44] https://emacswiki.org/emacs/DiredMode -[fn:44] https://emacswiki.org/emacs/DiredExtra#Dired_X +[fn:45] https://emacswiki.org/emacs/DiredExtra#Dired_X -[fn:45] https://github.com/domtronn/all-the-icons.el +[fn:46] https://github.com/domtronn/all-the-icons.el -[fn:46] https://github.com/iqbalansari/emacs-emojify +[fn:47] https://github.com/iqbalansari/emacs-emojify -[fn:47] https://gnu.org/software/emacs/manual/html_mono/eshell.html +[fn:48] https://gnu.org/software/emacs/manual/html_mono/eshell.html -[fn:48] https://github.com/akermu/emacs-libvterm +[fn:49] https://github.com/akermu/emacs-libvterm -[fn:49] https://github.com/neovim/libvterm +[fn:50] https://github.com/neovim/libvterm -[fn:50] https://magit.vc +[fn:51] https://magit.vc -[fn:51] https://github.com/skeeto/elfeed +[fn:52] https://github.com/skeeto/elfeed -[fn:52] https://orgmode.org +[fn:53] https://orgmode.org -[fn:53] https://github.com/org-roam/org-roam +[fn:54] https://github.com/org-roam/org-roam -[fn:54] https://zettelkasten.de +[fn:55] https://zettelkasten.de -[fn:55] https://github.com/org-roam/org-roam-server +[fn:56] https://github.com/org-roam/org-roam-server -[fn:56] https://orgmode.org/worg/org-contrib/org-drill.html +[fn:57] https://orgmode.org/worg/org-contrib/org-drill.html -[fn:57] https://github.com/marcinkoziej/org-pomodoro +[fn:58] https://github.com/marcinkoziej/org-pomodoro -[fn:58] https://en.wikipedia.org/wiki/Pomodoro_Technique +[fn:59] https://en.wikipedia.org/wiki/Pomodoro_Technique -[fn:59] https://github.com/bnbeckwith/writegood-mode +[fn:60] https://github.com/bnbeckwith/writegood-mode -[fn:60] https://aspell.net +[fn:61] https://aspell.net -[fn:61] https://gohugo.io +[fn:62] https://gohugo.io -[fn:62] https://oxhugo.scripter.co +[fn:63] https://oxhugo.scripter.co -[fn:63] https://chrishayward.xyz/posts/ +[fn:64] https://chrishayward.xyz/posts/ -[fn:64] https://chrishayward.xyz/notes/ +[fn:65] https://chrishayward.xyz/notes/ -[fn:65] https://revealjs.com +[fn:66] https://revealjs.com -[fn:66] https://github.com/hexmode/ox-reveal +[fn:67] https://github.com/hexmode/ox-reveal -[fn:67] https://password-store.org +[fn:68] https://password-store.org -[fn:68] https://projectile.mx +[fn:69] https://projectile.mx -[fn:69] https://microsoft.github.io/language-server-protocol +[fn:70] https://microsoft.github.io/language-server-protocol -[fn:70] https://github.com/MaskRay/emacs-ccls +[fn:71] https://github.com/MaskRay/emacs-ccls -[fn:71] https://company-mode.github.io +[fn:72] https://company-mode.github.io -[fn:72] https://emacswiki.org/emacs/GoMode +[fn:73] https://emacswiki.org/emacs/GoMode -[fn:73] https://plantuml.com +[fn:74] https://plantuml.com -[fn:74] https://github.com/skuro/plantuml-mode +[fn:75] https://github.com/skuro/plantuml-mode -[fn:75] https://github.com/abo-abo/swiper +[fn:76] https://github.com/abo-abo/swiper -[fn:76] https://github.com/DamienCassou/desktop-environment +[fn:77] https://github.com/DamienCassou/desktop-environment -[fn:77] https://github.com/hlissner/emacs-doom-themes +[fn:78] https://github.com/hlissner/emacs-doom-themes -[fn:78] https://github.com/seagle0128/doom-modeline +[fn:79] https://github.com/seagle0128/doom-modeline -[fn:79] https://laptopmedia.com/laptop-specs/acer-nitro-5-an515-53-2 +[fn:80] https://laptopmedia.com/laptop-specs/acer-nitro-5-an515-53-2 -[fn:80] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html +[fn:81] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html diff --git a/modules/ssh.nix b/modules/ssh.nix new file mode 100644 index 0000000..c232828 --- /dev/null +++ b/modules/ssh.nix @@ -0,0 +1,10 @@ +# This file is controlled by /etc/dotfiles/README.org +{ config, pkgs, ... }: + +{ + services.openssh = { + enable = true; + permitRootLogin = false; + passwordAuthentication = false; + }; +} diff --git a/modules/x11.nix b/modules/x11.nix index 7dd955c..ac74a47 100644 --- a/modules/x11.nix +++ b/modules/x11.nix @@ -23,7 +23,6 @@ }; services.picom.enable = true; - services.openssh.enable = true; services.printing.enable = true; fonts.fonts = with pkgs; [