chore: set hostname by var, remove trash, add missing ssh files

This commit is contained in:
Menno van Leeuwen 2024-11-02 01:44:24 +01:00
parent 551800c69b
commit 395fe1d235
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
8 changed files with 8 additions and 88 deletions

1
.gitignore vendored
View File

@ -9,7 +9,6 @@ secrets/ssh_config/*.*
!secrets/ssh_config/*.gpg
secrets/*.*
!secrets/*.gpg
secrets/id_ed25519
# SHA256 hashes of the encrypted secrets
*.sha256

View File

@ -36,6 +36,7 @@ config:
sources:
mennos-laptop: ~/dotfiles/config/ssh/authorized_keys/mennos-laptop
mennos-desktop: ~/dotfiles/config/ssh/authorized_keys/mennos-desktop
mennos-gamingpc: ~/dotfiles/config/ssh/authorized_keys/mennos-gamingpc
homeserver-pc: ~/dotfiles/config/ssh/authorized_keys/homeserver-pc
target: ~/.ssh/authorized_keys
chmod: 600
@ -78,7 +79,6 @@ config:
branch: main
target: ~/Projects/Work
# Packages to install
# Note: Uninstalling packages is not supported, if you remove a package from this list it will not be removed from the system!
# Likewise with flatpak remotes, apt repositories, etc.
@ -92,85 +92,3 @@ config:
- gnome-extensions-cli
- bauh
- shyaml
# No longer supported:
# apt:
# repos:
# apps:
# - bash
# - bash-completion
# - solaar
# - git
# - curl
# - wget
# - gpg
# - nala
# - ca-certificates
# - gnupg-agent
# - software-properties-common
# - apt-transport-https
# - vim
# - sl
# - jq
# - gh
# - libglvnd-dev
# - libwayland-dev
# - libseat-dev
# - libxkbcommon-dev
# - libinput-dev
# - udev
# - dbus
# - liblzma-dev
# - libreadline-dev
# - libdbus-1-dev
# - libsystemd-dev
# - libpixman-1-dev
# - libssl-dev
# - libflatpak-dev
# - libpulse-dev
# - libexpat1-dev
# - libfontconfig-dev
# - libfreetype-dev
# - mold
# - clang
# - libgtk-3-dev
# - gcc
# - gcc-mingw-w64
# - btop
# - htop
# - libgbm-dev
# - libclang-dev
# - libsecret-1-dev
# - libpipewire-0.3-dev
# - libpam0g-dev
# - openssh-server
# - build-essential
# - flatpak
# - meson
# - pipx
# - python3-nautilus
# - gettext
# - fzf
# - fastfetch
# - screenfetch
# - screen
# - code
# - 1password
# - 1password-cli
# - flameshot
# - cmake
# - libsqlite3-dev
# - libudev-dev
# - libncursesw5-dev
# - libgdbm-dev
# - libc6-dev
# - libbz2-dev
# - libffi-dev
# - tk-dev
# - cmatrix
# - toilet
# - oneko
# - libaa-bin
# - libcurses-perl
# - xdotool
# - xclip

View File

@ -106,6 +106,9 @@
allowedUDPPorts = [ ];
};
# Set hostname to DOTF_HOSTNAME if defined, otherwise use the hostname of the system.
networking.hostName = builtins.getEnv "DOTF_HOSTNAME";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View File

@ -14,7 +14,6 @@
modules = [
./hardware/mennos-laptop.nix
./configuration.nix
{ networking.hostName = "mennos-laptop"; }
];
};
"mennos-gamingpc" = nixpkgs.lib.nixosSystem {
@ -22,7 +21,6 @@
modules = [
./hardware/mennos-gamingpc.nix
./configuration.nix
{ networking.hostName = "mennos-desktop"; }
];
};
};

View File

@ -0,0 +1,2 @@
# This is the authrorized_keys file for the user mennos-laptop
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+sKpcREOUjwMMSzEWAso6830wbOi8kUxqpuXWw5gHr

View File

@ -0,0 +1,2 @@
# This is the authrorized_keys file for the user mennos-desktop
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+sKpcREOUjwMMSzEWAso6830wbOi8kUxqpuXWw5gHr

View File

@ -1 +0,0 @@
../../secrets/id_ed25519

View File

@ -1 +0,0 @@
../../secrets/id_ed25519.pub