chore: prepare config structure for multiple hosts

This commit is contained in:
2026-01-25 23:57:06 +01:00
parent c6c21ab886
commit 035bb3eaab
4 changed files with 51 additions and 57 deletions
+2 -25
View File
@@ -1,5 +1,3 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
outputs,
@@ -10,7 +8,6 @@
}:
{
imports = [
./hardware-configuration.nix
outputs.nixosModules
];
@@ -73,32 +70,12 @@
LC_TIME = "de_DE.UTF-8";
};
# Enable CUPS to print documents.
#services.printing.enable = true;
# Enable firmware
#hardware.enableAllFirmware = true;
# Enable bluetooth
#hardware.bluetooth.enable = true;
# Enable sound with pipewire.
# security.rtkit.enable = true;
# services.pipewire = {
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# pulse.enable = true;
# };
networking.hostName = "desktop";
users.users = {
leonhard = {
# TODO: You can set an initial password for your user.
# You can set an initial password for your user.
# If you do, you can skip setting a root password by passing '--no-root-passwd' to nixos-install.
# Be sure to change it (using passwd) after rebooting!
initialPassword = "correcthorsebatterystaple";
initialPassword = "leonhard";
isNormalUser = true;
extraGroups = [ "wheel" ];
};
+44
View File
@@ -0,0 +1,44 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}:
{
imports = [
(import ../base.nix {
inherit
inputs
outputs
config
lib
pkgs
;
})
(import ./hardware-configuration.nix {
inherit lib;
})
];
# Enable CUPS to print documents.
#services.printing.enable = true;
# Enable firmware
#hardware.enableAllFirmware = true;
# Enable bluetooth
#hardware.bluetooth.enable = true;
# Enable sound with pipewire.
# security.rtkit.enable = true;
# services.pipewire = {
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# pulse.enable = true;
# };
networking.hostName = "desktop";
}
@@ -1,8 +1,5 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: