Refactored repo layout

This commit is contained in:
2026-04-08 10:58:44 +02:00
parent c4c1207404
commit cdacdac38f
6 changed files with 41 additions and 30 deletions

View File

@@ -13,15 +13,16 @@
nixosConfigurations.Prometheus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
./hardware-configuration.nix
./nvidia.nix
./hosts/Prometheus/configuration.nix
home-manager.nixosModules.home-manager
];
};
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.typo = import ./home.nix;
}
nixosConfigurations.Heracles = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/Heracles/configuration.nix
home-manager.nixosModules.home-manager
];
};
};

View File

@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/common.nix
];
networking.hostName = "Heracles";
services.power-profiles-daemon.enable = true;
}

View File

@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/common.nix
../../modules/nvidia.nix
];
networking.hostName = "Prometheus";
}

View File

@@ -1,18 +1,9 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{ pkgs, lib, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
imports =
[
./hardware-configuration.nix
./nvidia.nix
];
boot = {
loader = {
@@ -49,10 +40,7 @@
loader.timeout = lib.mkForce 5;
};
networking = {
hostName = "Prometheus";
networkmanager.enable = true;
};
networking.networkmanager.enable = true;
time.timeZone = "Europe/Budapest";
@@ -76,11 +64,9 @@
};
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
#backupFileExtension = "backup";
users.typo = import ./home.nix;
useUserPackages = true;
users.typo = import ../home.nix;
};
programs = {