From 36eaff9e00634c743a94661b965dceca60d4c05a Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Sat, 7 Sep 2024 15:53:31 +0100 Subject: [PATCH] clean up biggerpi configuration.nix --- hosts/biggerpi/configuration.nix | 90 +++++--------------------------- 1 file changed, 14 insertions(+), 76 deletions(-) diff --git a/hosts/biggerpi/configuration.nix b/hosts/biggerpi/configuration.nix index f256a9f..18591eb 100644 --- a/hosts/biggerpi/configuration.nix +++ b/hosts/biggerpi/configuration.nix @@ -19,56 +19,14 @@ boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "biggerpi"; # Define your hostname. - # Pick only one of the below networking options. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. + # Enable networkmanager + networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Europe/London"; - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - - # Select internationalisation properties. - # i18n.defaultLocale = "en_US.UTF-8"; - # console = { - # font = "Lat2-Terminus16"; - # keyMap = "us"; - # useXkbConfig = true; # use xkb.options in tty. - # }; - - # Configure keymap in X11 - # services.xserver.xkb.layout = "us"; - # services.xserver.xkb.options = "eurosign:e,caps:escape"; - - # Enable CUPS to print documents. - # services.printing.enable = true; - - # Enable sound. - # hardware.pulseaudio.enable = true; - # OR - # services.pipewire = { - # enable = true; - # pulse.enable = true; - # }; - - # Enable touchpad support (enabled default in most desktopManager). - # services.libinput.enable = true; - users.groups.media = { name = "media"; -# gid = "1001"; -# members = [ -# sonarr -# radarr -# prowlarr -# jellyseerr -# qbittorrent -# jellyfin -# lidarr -# navidrome -# ]; }; users.users.jellyfin.uid = null; @@ -84,51 +42,31 @@ group = "media"; }; - # Define a user account. Don't forget to set a password with ‘passwd’. + # Define a user account. Don't forget to set a password with ‘passwd’. Please change the initialHashedPassword for each deployment to avoid a brute force attack on this password allowing login to the system before an actual password is set. users.users.blue = { isNormalUser = true; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. initialHashedPassword = "$y$j9T$TbW09JXLRpNJ924xc5JEf1$YNroqf2T7AUnVzKi933eLRUp/0Bez8itOeMYsLw9g3A"; - packages = with pkgs; [ - neovim - tree - ]; +# packages = with pkgs; [ +# neovim +# tree +# ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBqczzd/CZJMg+jmxqhl0NS7GTNymsddrxDXyTtoG9zo blue@gabbielaptop" ]; }; - # List packages installed in system profile. To search, run: - # $ nix search wget - # environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget - # ]; - - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # List services that you want to enable: +# List packages installed in system profile. To search, run: +# $ nix search wget + environment.systemPackages = with pkgs; [ + wget + neovim + tree + ]; # Enable the OpenSSH daemon. services.openssh.enable = true; - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; - - # Copy the NixOS configuration file and link it from the resulting system - # (/run/current-system/configuration.nix). This is useful in case you - # accidentally delete configuration.nix. - # system.copySystemConfiguration = true; - # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. #