This commit is contained in:
2024-10-18 10:04:20 -05:00
parent 29a01705c3
commit a11206680a
8 changed files with 75 additions and 73 deletions

View File

@@ -1,9 +1,10 @@
{ lib, pkgs, core_inputs, ... }: {
{ config, lib, pkgs, core_inputs, ... }: {
imports = [
./generic
./laptop
./homebox
./hardware-configuration.nix
];
sysconfig.laptop.enable = lib.mkDefault false;
@@ -11,7 +12,6 @@
sysconfig.generic.enable = lib.mkDefault true;
networking = {
hostName = core_inputs.host;
nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
networkmanager.enable = true;
};

View File

@@ -1 +1,9 @@
{}
{ config, lib, ... }: {
options.sysconfig.generic.enable = {
type = lib.types.bool;
default = true;
};
config = lib.mkIf config.sysconfig.generic.enable {};
}

View File

@@ -21,8 +21,6 @@
sysconfig.generic.enable = lib.mkForce false;
imports = [];
boot = {
loader = {
systemd-boot.enable = true;

View File

@@ -21,8 +21,6 @@
sysconfig.generic.enable = lib.mkForce false;
imports = [];
boot = {
loader = {
systemd-boot.enable = true;

View File

@@ -19,7 +19,7 @@
nixosModule = { config, lib, pkgs, core_inputs, ... }: {
imports = [
./configuration/configuration.nix
./configuration
# inputs.diskoConfig.module
# inputs.impermanenceConfig.module
inputs.srvcs.module
@@ -64,11 +64,11 @@
}
];
networking.hostname = config.sysconfig.opts.host;
networking.hostName = lib.mkDefault config.sysconfig.opts.host;
users.users.${config.sysconfig.opts.username} = {
#users.users.${config.sysconfig.opts.username} = {
};
#};
};
};

View File

@@ -1,6 +1,6 @@
{ config, lib, ... }: {
options.sysconfig.opts.git.enable = lib.opions.mkOption {};
options.sysconfig.opts.git.enable = lib.options.mkOption {};
config = lib.mkIf config.sysconfig.opts.git.enable {

View File

@@ -18,8 +18,6 @@
config = lib.mkIf config.sysconfig.opts.sddm.enable {
imports = [];
qt.enable = true;
services.displayManager.sddm = {