Compare commits
1 Commits
mob/invent
...
43484f862d
| Author | SHA1 | Date | |
|---|---|---|---|
| 43484f862d |
@@ -1,8 +1,14 @@
|
|||||||
{
|
{
|
||||||
clan.inventory = {
|
clan.inventory = {
|
||||||
tags = {
|
tags = {
|
||||||
kde-desktop = [ "rana" ];
|
kde-desktop = [
|
||||||
personal-computer = [ "rana" ];
|
"rana"
|
||||||
|
"petra"
|
||||||
|
];
|
||||||
|
personal-computer = [
|
||||||
|
"rana"
|
||||||
|
"petra"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
instances = {
|
instances = {
|
||||||
@@ -18,6 +24,18 @@
|
|||||||
};
|
};
|
||||||
roles.default.machines."rana" = { };
|
roles.default.machines."rana" = { };
|
||||||
};
|
};
|
||||||
|
jenny-home = {
|
||||||
|
module = {
|
||||||
|
name = "home-user";
|
||||||
|
input = "self";
|
||||||
|
};
|
||||||
|
roles.default.settings = {
|
||||||
|
username = "jenny";
|
||||||
|
kbLayout = "us,th";
|
||||||
|
kbOptions = "grp:win_space_toggle,grp:alt_shift_toggle";
|
||||||
|
};
|
||||||
|
roles.default.machines."petra" = { };
|
||||||
|
};
|
||||||
personal-computer = {
|
personal-computer = {
|
||||||
module = {
|
module = {
|
||||||
name = "personal-computer";
|
name = "personal-computer";
|
||||||
|
|||||||
12
machines/petra/configuration.nix
Normal file
12
machines/petra/configuration.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ self, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
self.nixosModules.common
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
};
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
clan.core.sops.defaultGroups = [ "admins" ];
|
||||||
|
}
|
||||||
90
machines/petra/disko.nix
Normal file
90
machines/petra/disko.nix
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
hashDisk = disk: "os-${builtins.substring 0 5 (builtins.hashString "sha256" disk)}";
|
||||||
|
os = "/dev/disk/by-id/FIXME";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
"os-${hashDisk os}" = {
|
||||||
|
type = "disk";
|
||||||
|
device = os;
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
ESP = {
|
||||||
|
size = "1G";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "nofail" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
system = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "zfs";
|
||||||
|
pool = "zroot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
swap = {
|
||||||
|
size = "16G";
|
||||||
|
content = {
|
||||||
|
type = "swap";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
zpool = {
|
||||||
|
zroot = {
|
||||||
|
type = "zpool";
|
||||||
|
rootFsOptions = {
|
||||||
|
mountpoint = "none";
|
||||||
|
compression = "lz4";
|
||||||
|
acltype = "posixacl";
|
||||||
|
xattr = "sa";
|
||||||
|
"com.sun:auto-snapshot" = "true";
|
||||||
|
};
|
||||||
|
options.ashift = "12";
|
||||||
|
datasets = {
|
||||||
|
"root" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
options.mountpoint = "none";
|
||||||
|
};
|
||||||
|
"root/nixos" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
options.mountpoint = "/";
|
||||||
|
mountpoint = "/";
|
||||||
|
};
|
||||||
|
"root/home" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
options.mountpoint = "/home";
|
||||||
|
mountpoint = "/home";
|
||||||
|
};
|
||||||
|
"root/tmp" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/tmp";
|
||||||
|
options = {
|
||||||
|
mountpoint = "/tmp";
|
||||||
|
sync = "disabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5395
machines/petra/facter.json
Normal file
5395
machines/petra/facter.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user