Adding chibi configuration to config

This commit is contained in:
Ceferino Patino 2024-09-21 13:02:20 -05:00
commit 171468bf5c
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI
7 changed files with 152 additions and 6 deletions

View file

@ -0,0 +1,36 @@
{ self, ... }: {
sops = {
defaultSopsFile = "${self}/secrets/sops/secrets.yaml";
defaultSopsFormat = "yaml";
age = {
keyFile = "/home/c4patino/.config/sops/age/keys.txt";
generateKey = true;
};
secrets = {
github-auth = {};
github-runner = {};
github-runner-oasys = {};
};
};
home = {
username = "c4patino";
homeDirectory = "/home/c4patino";
stateVersion = "23.11";
sessionVariables = {
FLAKE = "/home/c4patino/dotfiles";
};
};
ssh.enable = true;
zoxide.enable = true;
zsh.enable = true;
languages.enable = true;
git.enable = true;
lazygit.enable = true;
bottom.enable = true;
yazi.enable = true;
neovim.enable = true;
}

View file

@ -14,7 +14,14 @@
};
};
wayland.windowManager.hyprland.settings.monitor = [
", preferred, auto, 1"
];
ssh.enable = true;
zoxide.enable = true;
zsh.enable = true;
git.enable = true;
lazygit.enable = true;
bottom.enable = true;
yazi.enable = true;
neovim.enable = true;
}

View file

@ -0,0 +1,31 @@
{ pkgs, inputs, ... }:
{
imports = [
../..
inputs.nixos-hardware.nixosModules.raspberry-pi-4
../hardware-configuration.nix
inputs.disko.nixosModules.default
(import ./disko.nix { device = ""; })
];
networking.hostName = "chibi";
networking.networkmanager.enable = true;
users.users.c4patino = {
isNormalUser = true;
description = "C4 Patino";
extraGroups = [ "networkmanager" "wheel" "vboxusers" "docker" ];
initialPassword = "passw0rd";
shell = pkgs.zsh;
};
audio.enable = true;
network-manager.enable = true;
docker.enable = true;
github-runners.enable = true;
tailscale.enable = true;
}

View file

@ -0,0 +1,74 @@
{
device ? throw "Storage device not defined",
...
} : {
disko.devices = {
disk.main = {
inherit device;
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/efi";
};
};
swap = {
size = "32G";
content = {
type = "swap";
resumeDevice = true;
};
};
root = {
name = "root";
size = "100%";
content = {
type = "lvm_pv";
vg = "root_vg";
};
};
};
};
};
lvm_vg = {
root_vg = {
type = "lvm_vg";
lvs = {
root = {
size = "100%FREE";
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/root" = {
mountpoint = "/";
};
"/persist" = {
mountOptions = ["subvol=persist" "noatime"];
mountpoint = "/persist";
};
"/nix" = {
mountOptions = ["subvol=nix" "noatime"];
mountpoint = "/nix";
};
};
};
};
};
};
};
};
}

View file

@ -3,7 +3,6 @@
let
inherit (inputs.nixpkgs.lib) nixosSystem;
specialArgs = { inherit inputs self; };
secrets = builtins.fromJSON (builtins.readFile "${self}/secrets/crypt/secrets.json");
in
{
arisu = nixosSystem {

View file

@ -8,7 +8,6 @@
];
environment.systemPackages = with pkgs; [
neovim
disko
parted
git

View file

@ -11,7 +11,7 @@
systemd.user.services.github-runner-arisu.after = [ "sops-nix.service" ];
services.github-runners = {
arisu = {
"${config.networking.hostName}" = {
enable = true;
replace = true;
ephemeral = true;