added basis of saturn config
This commit is contained in:
parent
010bb95d65
commit
e20f30d35a
|
@ -9,7 +9,8 @@ in {
|
|||
imports = [
|
||||
home-manager
|
||||
./hosts/vulkan
|
||||
./modules/machine-info.nix
|
||||
./modules
|
||||
./saturn/system.nix
|
||||
];
|
||||
|
||||
# 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";
|
||||
hostname = "vulkan";
|
||||
prett_hostname = "🌋 vulkan";
|
||||
packages = {
|
||||
}
|
||||
user_packages = {
|
||||
}
|
||||
saturn.user = "hive";
|
||||
saturn.hostname = "vulkan";
|
||||
saturn.prettyHostname = "🌋 vulkan";
|
||||
# packages = {
|
||||
# }
|
||||
# userPackages = {
|
||||
# }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue