hosts/daiyousei: actually init

This commit is contained in:
kat witch 2021-09-02 06:16:26 +01:00
parent 9e3aa24078
commit f3d9d61e80
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 30 additions and 26 deletions

View file

@ -59,8 +59,9 @@ These are the NixOS configurations for my systems. I run nothing other than NixO
## Nodes ## Nodes
| Node | Purpose | | Node | Purpose |
|---------------|------------------------------------------------------| |---------------|----------------------------------------------------------|
| [athame][] | Currently the main server. Ad-hoc hetzner cloud box. | | [athame][] | Currently the main server. Ad-hoc hetzner cloud box. |
| [daiyousei][] | Intended athame replacement. Provisioned OCI Ampere box. |
| [rinnosuke][] | My primary nameserver. Provisioned OCI EPYC box. | | [rinnosuke][] | My primary nameserver. Provisioned OCI EPYC box. |
| [beltane][] | Home server. NAS + HTPC, does DVB stuff. | | [beltane][] | Home server. NAS + HTPC, does DVB stuff. |
| [samhain][] | Beloved workstation. Does VFIO. | | [samhain][] | Beloved workstation. Does VFIO. |
@ -74,14 +75,15 @@ These are the NixOS configurations for my systems. I run nothing other than NixO
| [base][] | Base profile, always used. Root access, base16, home-manager, locale, network module, nix, packages, profiles, secrets, shell and sysctl configuration. | | [base][] | Base profile, always used. Root access, base16, home-manager, locale, network module, nix, packages, profiles, secrets, shell and sysctl configuration. |
| [gui][] | GUI profile. Provides window managers, includes [DNSCrypt/dnscrypt-proxy][] service, filesystem packages, font, NixOS-side GPG, mingetty, NFS, QT, sound (pipewire) and XDG portal configuration. | | [gui][] | GUI profile. Provides window managers, includes [DNSCrypt/dnscrypt-proxy][] service, filesystem packages, font, NixOS-side GPG, mingetty, NFS, QT, sound (pipewire) and XDG portal configuration. |
| [vfio][] | Provides host-unspecific VFIO. Fancy patched QEMU from [arcnmx/nixexprs][], [arcnmx/screenstub][] (however, patched in-repo for Q35), AMDGPU vendor-reset and ACS override. | | [vfio][] | Provides host-unspecific VFIO. Fancy patched QEMU from [arcnmx/nixexprs][], [arcnmx/screenstub][] (however, patched in-repo for Q35), AMDGPU vendor-reset and ACS override. |
| [hardware][] | Sub-profiles for my hardware are provided here. Some are reusable. | | [hardware][] | Sub-profiles for my hardware are provided here. Some are reusable. Of note is the Oracle sub-profiles. |
| [cross][] | Sub-profiles are provided for emulated compiling and build caching. |
## User Profiles ## User Profiles
| Profile | Purpose | | Profile | Purpose |
|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------| |---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [base][3] | base16, git, inputrc, packages, rink, secrets, kitty terminfo, SSH, tmux, weechat, vim, xdg and zsh configuration. | | [base][3] | base16, git, inputrc, packages, secrets, kitty terminfo, SSH, tmux, weechat, vim, xdg and zsh configuration. |
| [dev][] | cookiecutters, doom-emacs (although unused, forced to use PgtkGcc all fancily :3c), packages, rustfmt and (heavier on the node) vim configuration. | | [dev][] | cookiecutters, rink, doom-emacs (although unused, forced to use PgtkGcc all fancily :3c), packages, rustfmt and (heavier on the node) vim configuration. |
| [gui][4] | firefox+userChrome+tst, font, kitty terminal, [dnkl/foot][] terminal, GTK, packages, QT, ranger and xdg configuration. | | [gui][4] | firefox+userChrome+tst, font, kitty terminal, [dnkl/foot][] terminal, GTK, packages, QT, ranger and xdg configuration. |
| [media][] | mpv, obs, packages and syncplay configuration. | | [media][] | mpv, obs, packages and syncplay configuration. |
| [personal][] | [arcnmx/rbw][] (fancier rbw), email via [arcnmx/notmuch-vim][], home-manager-side GPG, pass, weechat and zsh configuration. | | [personal][] | [arcnmx/rbw][] (fancier rbw), email via [arcnmx/notmuch-vim][], home-manager-side GPG, pass, weechat and zsh configuration. |
@ -207,6 +209,7 @@ Please use `nix-shell` or [direnv/direnv][]. The shell is not compatible with [n
[kittywitch/anicca]: https://github.com/kittywitch/anicca [kittywitch/anicca]: https://github.com/kittywitch/anicca
[arcnmx/screenstub]: https://github.com/arcnmx/screenstub [arcnmx/screenstub]: https://github.com/arcnmx/screenstub
[athame]: config/hosts/athame [athame]: config/hosts/athame
[daiyousei]: config/hosts/daiyousei
[rinnosuke]: config/hosts/rinnosuke [rinnosuke]: config/hosts/rinnosuke
[beltane]: config/hosts/beltane [beltane]: config/hosts/beltane
[samhain]: config/hosts/samhain [samhain]: config/hosts/samhain
@ -218,6 +221,7 @@ Please use `nix-shell` or [direnv/direnv][]. The shell is not compatible with [n
[vfio]: config/profiles/vfio [vfio]: config/profiles/vfio
[arcnmx/nixexprs]: https://github.com/arcnmx/nixexprs [arcnmx/nixexprs]: https://github.com/arcnmx/nixexprs
[hardware]: config/profiles/hardware [hardware]: config/profiles/hardware
[cross]: config/profiles/cross
[3]: config/users/kat/base [3]: config/users/kat/base
[dev]: config/users/kat/dev [dev]: config/users/kat/dev
[4]: config/users/kat/gui [4]: config/users/kat/gui

View file

@ -45,11 +45,11 @@ in
networking = { networking = {
useDHCP = false; useDHCP = false;
interfaces.ens3 = { interfaces.enp0s3 = {
useDHCP = true; useDHCP = true;
ipv6 = { ipv6 = {
addresses = mkIf (config.network.addresses.public.nixos.ipv6.enable) [{ addresses = [{
address = config.network.addresses.public.nixos.ipv6.address; address = addr_ipv6_nix;
prefixLength = 64; prefixLength = 64;
}]; }];
routes = [{ routes = [{
@ -69,7 +69,7 @@ in
tf.ipv6.address = tf.resources."${config.networking.hostName}_ipv6".refAttr "ip_address"; tf.ipv6.address = tf.resources."${config.networking.hostName}_ipv6".refAttr "ip_address";
}; };
}; };
firewall.public.interfaces = singleton "ens3"; firewall.public.interfaces = singleton "enp0s3";
tf = { tf = {
enable = true; enable = true;
ipv4_attr = "public_ip"; ipv4_attr = "public_ip";

View file

@ -89,10 +89,10 @@
"homepage": null, "homepage": null,
"owner": "kittywitch", "owner": "kittywitch",
"repo": "nixexprs", "repo": "nixexprs",
"rev": "fb4a435201384c6a45b593d47bc72b4998ffe78d", "rev": "68a371ce344cd66e646d58dd3658fc7c0615f768",
"sha256": "07r2n6xx6l4pbrqdda42amxdq9d9nqg8pnkqbimfhssakpnkv2ml", "sha256": "12afawrnfkj8i33h3rvqfx3mla8sjvmjmk9f786xi60ckbnqi089",
"type": "tarball", "type": "tarball",
"url": "https://github.com/kittywitch/nixexprs/archive/fb4a435201384c6a45b593d47bc72b4998ffe78d.tar.gz", "url": "https://github.com/kittywitch/nixexprs/archive/68a371ce344cd66e646d58dd3658fc7c0615f768.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"niv": { "niv": {

@ -1 +1 @@
Subproject commit fb4a435201384c6a45b593d47bc72b4998ffe78d Subproject commit 68a371ce344cd66e646d58dd3658fc7c0615f768