Adding chibi configuration to config
This commit is contained in:
parent
16151521dd
commit
171468bf5c
7 changed files with 152 additions and 6 deletions
36
home/profiles/chibi/default.nix
Normal file
36
home/profiles/chibi/default.nix
Normal 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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
31
system/hosts/chibi/default.nix
Normal file
31
system/hosts/chibi/default.nix
Normal 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;
|
||||
}
|
||||
74
system/hosts/chibi/disko.nix
Normal file
74
system/hosts/chibi/disko.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
disko
|
||||
parted
|
||||
git
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue