From 74bcda2c805a711fb35203b9f3889de8a67b8816 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 22 Nov 2023 16:53:34 +0100 Subject: [PATCH] add saner pre-installed programs --- configuration.nix | 58 +++++++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3b3870f..b38911e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -50,34 +50,52 @@ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop" ]; - programs.ssh = { - knownHosts = { - dmz = { - hostNames = [ "*.dmz" ]; - publicKey = - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x"; - certAuthority = true; + programs = { + ssh = { + knownHosts = { + dmz = { + hostNames = [ "*.dmz" ]; + publicKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x"; + certAuthority = true; + }; + + hypervisors = { + hostNames = [ "*.hyp" ]; + publicKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFzRkH3d/KVJQouswY/DMpenWbDFVOnI3Vut0xR0e1tb"; + certAuthority = true; + }; }; - hypervisors = { - hostNames = [ "*.hyp" ]; - publicKey = - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFzRkH3d/KVJQouswY/DMpenWbDFVOnI3Vut0xR0e1tb"; - certAuthority = true; - }; + extraConfig = '' + CertificateFile ${ + builtins.toFile "user_ed25519-cert.pub" machine.user-cert + } + HostKey ${config.age.secrets.user_ed25519.path} + ''; }; - extraConfig = '' - CertificateFile ${ - builtins.toFile "user_ed25519-cert.pub" machine.user-cert - } - HostKey ${config.age.secrets.user_ed25519.path} - ''; + neovim = { + enable = true; + vimAlias = true; + viAlias = true; + }; }; nixpkgs.config.allowUnfree = true; - environment.systemPackages = with pkgs; [ vim neofetch python3 ]; + environment.systemPackages = with pkgs; [ + neofetch + wget + git + btop + htop + ripgrep + dig + tree + file + ]; networking.firewall.enable = false;