First dnf test

This commit is contained in:
Darkone 2025-10-27 00:08:16 -02:00
commit d481a5e669
165 changed files with 41270 additions and 0 deletions

13
var/generated/README.md Normal file
View file

@ -0,0 +1,13 @@
# Generated files
This folder contains generated files, **do not edit**. To generate files use the following command:
```sh
just generate
```
To generate, format, check and fix:
```sh
just clean
```

View file

@ -0,0 +1 @@
{}

219
var/generated/hosts.nix Normal file
View file

@ -0,0 +1,219 @@
# This file is generated by 'just generate'
# from the configuration file usr/config.yaml
# --> DO NOT EDIT <--
[
{
hostname = "gateway";
name = "Local Gateway";
profile = "gateway";
ip = "192.168.1.1";
arch = "aarch64-linux";
groups = [ "admin" ];
users = [
"darkone"
"nix"
"nixos"
];
colmena = {
deployment = {
tags = [
"group-admin"
"user-darkone"
"user-nixos"
];
};
};
services = {
homepage = { };
ncps = { };
forgejo = {
title = "Our local forge";
};
lldap = { };
};
}
{
hostname = "my-laptop";
name = "My Laptop";
profile = "laptop";
ip = "192.168.1.2";
groups = [
"admin"
"common"
];
users = [
"darkone"
"esteban"
"nix"
"nixos"
];
colmena = {
deployment = {
tags = [
"laptops"
"admin"
"group-admin"
"group-common"
"user-darkone"
"user-esteban"
"user-nixos"
];
};
};
services = {
homepage = {
domain = "laptop-home";
};
immich = {
title = "My pictures";
description = "A very cool images app";
domain = "photos";
icon = "immich";
};
nextcloud = {
domain = "cloud";
};
};
}
{
hostname = "pc01";
name = "Workstation 1";
profile = "workstation";
ip = "192.168.1.101";
groups = [
"tsn"
"sn"
];
users = [
"ethan"
"nix"
];
colmena = {
deployment = {
tags = [
"group-tsn"
"group-sn"
"user-ethan"
];
};
};
services = { };
}
{
hostname = "pc02";
name = "Workstation 2";
profile = "workstation";
ip = "192.168.1.102";
groups = [
"tsn"
"sn"
];
users = [
"ethan"
"nix"
];
colmena = {
deployment = {
tags = [
"group-tsn"
"group-sn"
"user-ethan"
];
};
};
services = { };
}
{
hostname = "pc03";
name = "Workstation 3";
profile = "workstation";
ip = "192.168.1.103";
groups = [
"tsn"
"sn"
];
users = [
"ethan"
"nix"
];
colmena = {
deployment = {
tags = [
"group-tsn"
"group-sn"
"user-ethan"
];
};
};
services = { };
}
{
hostname = "pc04";
name = "Workstation 4";
profile = "workstation";
ip = "192.168.1.104";
groups = [
"tsn"
"sn"
];
users = [
"ethan"
"nix"
];
colmena = {
deployment = {
tags = [
"group-tsn"
"group-sn"
"user-ethan"
];
};
};
services = { };
}
{
hostname = "laptop-kids";
name = "Laptop Kids";
profile = "home-laptop";
ip = "192.168.1.20";
groups = [ "common" ];
users = [
"darkone"
"esteban"
"nix"
];
colmena = {
deployment = {
tags = [
"group-common"
"user-darkone"
"user-esteban"
];
};
};
services = { };
}
{
hostname = "laptop-family";
name = "Laptop Kids";
profile = "home-laptop";
ip = "192.168.1.21";
groups = [ "common" ];
users = [
"darkone"
"esteban"
"nix"
];
colmena = {
deployment = {
tags = [
"group-common"
"user-darkone"
"user-esteban"
];
};
};
services = { };
}
]

69
var/generated/network.nix Normal file
View file

@ -0,0 +1,69 @@
# This file is generated by 'just generate'
# from the configuration file usr/config.yaml
# --> DO NOT EDIT <--
{
domain = "darkone.lan";
timezone = "America/Miquelon";
locale = "fr_FR.UTF-8";
gateway = {
hostname = "gateway";
wan = {
interface = "eth0";
gateway = "192.168.0.1";
};
lan = {
interfaces = [ "enu1u4" ];
ip = "192.168.1.1";
prefixLength = 24;
dhcp-range = [ "192.168.1.100,192.168.1.230,24h" ];
dhcp-extra-option = [ "option:ntp-server,191.168.1.1" ];
};
};
extraDnsmasqSettings = {
dhcp-host = [
"e8:ff:1e:d0:44:82,192.168.1.2,my-laptop,infinite"
"e8:ff:1e:d0:44:83,192.168.1.82,my-laptop,infinite"
"08:00:27:03:BB:20,192.168.1.101,pc01,infinite"
"08:00:27:AE:49:7F,192.168.1.102,pc02,infinite"
"08:00:27:EA:85:CB,192.168.1.103,pc03,infinite"
"08:00:27:A4:B1:36,192.168.1.104,pc04,infinite"
"f0:1f:af:13:61:c6,192.168.1.20,laptop-kids,infinite"
"f0:1f:af:13:61:c7,192.168.1.21,laptop-family,infinite"
];
dhcp-option = [
"option:router,192.168.1.1"
"option:dns-server,192.168.1.1"
"option:domain-name,darkone.lan"
"option:domain-search,darkone.lan"
"option:ntp-server,191.168.1.1"
];
dhcp-range = [ "192.168.1.100,192.168.1.230,24h" ];
};
extraNetworking = {
hosts = {
"192.168.1.1" = [
"darkone.lan"
"forgejo"
"gateway"
"homepage"
"lldap"
"ncps"
"passerelle"
];
"192.168.1.2" = [
"cloud"
"darkone"
"laptop-home"
"my-laptop"
"photos"
];
"192.168.1.20" = [ "laptop-kids" ];
"192.168.1.21" = [ "laptop-family" ];
"192.168.1.101" = [ "pc01" ];
"192.168.1.102" = [ "pc02" ];
"192.168.1.103" = [ "pc03" ];
"192.168.1.104" = [ "pc04" ];
};
};
}

47
var/generated/users.nix Normal file
View file

@ -0,0 +1,47 @@
# This file is generated by 'just generate'
# from the configuration file usr/config.yaml
# --> DO NOT EDIT <--
{
nixos = {
uid = 1000;
name = "An admin user";
profile = "dnf/homes/admin";
groups = [ "admin" ];
};
darkone = {
uid = 1001;
email = "darkone@darkone.yt";
name = "Darkone Linux";
profile = "usr/homes/darkone";
groups = [
"admin"
"media"
"common"
];
};
ethan = {
uid = 1002;
name = "Ethan";
profile = "dnf/homes/student";
groups = [
"sn"
"tsn"
];
};
esteban = {
uid = 1003;
name = "Esteban";
profile = "dnf/homes/teenager";
groups = [
"kids"
"common"
];
};
nix = {
uid = 65000;
name = "Nix Maintenance User";
profile = "dnf/homes/nix-admin";
groups = [ ];
};
}