From 0a3a6501c52ef3f930b83c264cccfd8d8303c26d Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 23 Jul 2024 21:41:13 +0100 Subject: mantis --- hosts/mantis/configuration.nix | 89 +++++++----------------------------------- 1 file changed, 15 insertions(+), 74 deletions(-) (limited to 'hosts') diff --git a/hosts/mantis/configuration.nix b/hosts/mantis/configuration.nix index acc2a49..c774eef 100644 --- a/hosts/mantis/configuration.nix +++ b/hosts/mantis/configuration.nix @@ -1,6 +1,6 @@ # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, self, ... }: { imports = @@ -12,58 +12,19 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "mantis"; # 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. - - # Set your time zone. + networking.hostName = "mantis"; 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. - # }; - - # Enable the X11 windowing system. - services.xserver.enable = true; - - - # Enable the GNOME Desktop Environment. - services.xserver.displayManager.gdm.enable = true; - services.xserver.desktopManager.gnome.enable = true; - - - # 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; - # }; + nixpkgs.overlays = with self.overlays; [ + prompt + better-text-objs + vim-colors-plain + ]; - # Enable touchpad support (enabled default in most desktopManager). - services.xserver.libinput.enable = true; - services.tailscale.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. users.users.op = { isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" ]; packages = with pkgs; [ qutebrowser tree @@ -72,39 +33,19 @@ home = "/home/op"; }; - # 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 - git + man-pages + man-pages-posix + (lib.hiPrio pkgs.bashInteractive_5) ]; - # 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: + services = { + openssh.enable = true; + tailscale.enable = true; + }; - # Enable the OpenSSH daemon. - services.openssh.enable = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; - # 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. # -- cgit v1.2.3