NixOS config for jollywhoppers servers
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Enabled OpenSSH, added fastfetch, and included comments with some TODOs and FIXes

+20 -3
+14 -2
configuration.nix
··· 12 12 }; 13 13 in 14 14 { 15 - imports = [ ]; 15 + imports = [ 16 + ]; 16 17 17 18 nix.settings.experimental-features = [ 18 19 "nix-command" ··· 98 99 # Or disable the firewall altogether. 99 100 # networking.firewall.enable = false; 100 101 101 - environment.systemPackages = with pkgs; [ ]; 102 + # Enable the OpenSSH daemon. 103 + services.openssh = { 104 + enable = true; 105 + settings = { 106 + PermitRootLogin = "no"; 107 + PasswordAuthentication = false; 108 + }; 109 + }; 110 + 111 + environment.systemPackages = with pkgs; [ 112 + fastfetch 113 + ]; 102 114 103 115 # This value determines the NixOS release from which the default 104 116 # settings for stateful data, like file locations and database versions
+6 -1
flake.nix
··· 13 13 let 14 14 system = "x86_64-linux"; 15 15 pkgs = import nixpkgs { inherit system; }; 16 + # FIX: Choose proper hostname for machine 16 17 hostname = "placeholder_hostname"; 17 18 in 18 19 { 20 + # TODO: Examine the necessity of a dev shell for a simple Nix config? 19 21 devShells.${system}.default = pkgs.mkShell { 20 - packages = [ ]; 22 + # Add whichever packages you'd need for editing the config 23 + packages = with pkgs; [ 24 + ]; 21 25 22 26 # Run whatever commands you'd like when entering the shell 23 27 shellHook = ''''; ··· 35 39 }; 36 40 modules = [ 37 41 ./configuration.nix 42 + ./hosts/${hostname}/hardware-configuration.nix 38 43 ]; 39 44 }; 40 45