chore: Significantly restructure folder layout
This moves the various projects from "type-based" folders (such as "services" or "tools") into more appropriate semantic folders (such as "nix", "ops" or "web"). Deprecated projects (nixcon-demo & gotest) which only existed for testing/demonstration purposes have been removed. (Note: *all* builds are broken with this commit)
This commit is contained in:
parent
e52eed3cd4
commit
03bfe08e1d
110 changed files with 1 additions and 998 deletions
27
ops/infra/nixos/dotfiles.nix
Normal file
27
ops/infra/nixos/dotfiles.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Bundle configuration files into a derivation.
|
||||
# I call this derivation dotfiles despite that not technically being true
|
||||
# anymore ...
|
||||
|
||||
{ config, pkgs, ...}:
|
||||
|
||||
let dotfiles = pkgs.stdenv.mkDerivation {
|
||||
name = "tazjins-dotfiles";
|
||||
|
||||
srcs = [
|
||||
./dotfiles
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp ./* $out/
|
||||
'';
|
||||
};
|
||||
in {
|
||||
# /etc/ is a special place in NixOS!
|
||||
# Symlinks that need to be created there must be specified explicitly.
|
||||
environment.etc = {
|
||||
"alacritty.yml".source = "${dotfiles}/alacritty.yml";
|
||||
"fish/config.fish".source = "${dotfiles}/config.fish";
|
||||
"tmux.conf".source = "${dotfiles}/tmux.conf";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue