No description
Find a file
Ivan Bushchik 1168fbed40
machines/stella: add libreoffice-fresh
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2024-05-07 18:38:37 +03:00
common user.nix: replace neofetch with fastfetch 2024-05-07 18:34:50 +03:00
hardware Enable only necessary fss 2023-11-30 16:16:33 +03:00
machines machines/stella: add libreoffice-fresh 2024-05-07 18:38:37 +03:00
pkgs Bump urouter to 0.7.0 2024-04-21 10:50:23 +03:00
roles Fix http3 2024-04-21 10:51:14 +03:00
secrets Add "tempore" machine - VPS for Wireguard 2024-05-07 18:38:30 +03:00
.gitignore Try to remove flake.lock 2023-11-25 18:15:57 +03:00
default.nix Minor changes 2023-10-03 22:25:40 +03:00
features.nix Nixfmt time 2024-01-07 14:26:33 +03:00
flake.nix Add "tempore" machine - VPS for Wireguard 2024-05-07 18:38:30 +03:00
LICENSE Add license file 2023-08-27 18:25:55 +03:00
README.md README.md: Remove done things, add m1n1 icon note 2024-03-03 13:29:21 +03:00
secrets.nix Add "tempore" machine - VPS for Wireguard 2024-05-07 18:38:30 +03:00

ivabus NixOS Configuration files.

Deploying

Setup disks, mount root to /mnt and /boot to /mnt/boot and run something like this

git clone https://github.com/ivabus/nixos /mnt/etc/nixos
nixos-generate-config --show-hardware-config --root /mnt > /mnt/etc/nixos/machines/HOST/hardware.nix
nixos-install --flake path:.#HOST

Raspberry Pi image generation

Replace {{REPO_PATH}} with path to this repo (surprising, isn't it) and run on NixOS system (or system with Nix (don't tested))

nix build path:{{REPO_PATH}}#nixosConfigurations.HOST.config.system.build.sdImage

Rebuilding

nixos-rebuild switch --flake path:/etc/nixos

Apple Silicon hosts require additional --impure flag for firmware installation. (Firmware should be placed in /etc/nixos/asahi/firmware (ignored by git) and m1n1 icon to /etc/nixos/asahi/icon.png (256x256px)).

Hosts configured

  • celerrime (MacBook Air M2) (coding)
  • vetus (iMac 27" 2017) (gaming)
  • stella (Random Ryzen 3 3250U laptop) (lite web surfing client)
  • rubusidaeus (Raspberry Pi 4B) (small services)
  • periculo (StarFive VisionFive2) (as router) - WIP + untested

Modules

Module example:

{ config, lib, ... }:

let
  cfg = config.my.MODULE;
in {
  options.my.MODULE.enable = lib.mkEnableOption "Enable MODULE";
  config = lib.mkIf (cfg.enable) {
    MODULE_CONFIGURATION
  };
}

Dotfiles development

As I fully manage my dotfiles through home-manager and fetchGit they are readonly.

To install normal version of them disable my.users.ivabus.dotfiles.enable and run this command (which installs and links dotfiles)

curl https://iva.bz/nix | sh

TODO

  • Setup "secret" roles (I need them)
  • Setup router (in progress with periculo, aughhhhhhhhh it seems like I need to crosscompile it for 30 days straight, so no fast progress)

This configuration is MIT licensed.

I used delroth/infra.delroth.net (MIT license) as a reference for my configuration.