added basis of saturn config
This commit is contained in:
parent
010bb95d65
commit
e20f30d35a
|
@ -9,7 +9,8 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
home-manager
|
home-manager
|
||||||
./hosts/vulkan
|
./hosts/vulkan
|
||||||
./modules/machine-info.nix
|
./modules
|
||||||
|
./saturn/system.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# nix options
|
# nix options
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./saturnConfig.nix
|
||||||
|
./machineInfo.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, ... }: with lib;
|
||||||
|
{
|
||||||
|
options.saturn = {
|
||||||
|
user = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "saturn";
|
||||||
|
description = mdDoc "The name of the user of the system.";
|
||||||
|
};
|
||||||
|
hostname = mkOption {
|
||||||
|
type = types.strMatching
|
||||||
|
"[a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?";
|
||||||
|
default = "saturnOS-device";
|
||||||
|
description = mdDoc "The network hostname of the system, which must only contain letters,
|
||||||
|
numbers, and dashes, and cannot start or end with a dash.";
|
||||||
|
};
|
||||||
|
prettyHostname = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "🪐 saturnOS";
|
||||||
|
description = mdDoc "The pretty hostname is used for things like bluetooth pairing,
|
||||||
|
device sharing, and is fully unicode.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,2 +0,0 @@
|
||||||
{
|
|
||||||
}
|
|
|
@ -1,10 +1,10 @@
|
||||||
## not real code yet
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
user = "hive";
|
saturn.user = "hive";
|
||||||
hostname = "vulkan";
|
saturn.hostname = "vulkan";
|
||||||
prett_hostname = "🌋 vulkan";
|
saturn.prettyHostname = "🌋 vulkan";
|
||||||
packages = {
|
# packages = {
|
||||||
}
|
# }
|
||||||
user_packages = {
|
# userPackages = {
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue