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 { nixosConfigurations.Prometheus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./hosts/Prometheus/configuration.nix
./hardware-configuration.nix home-manager.nixosModules.home-manager
./nvidia.nix ];
};
home-manager.nixosModules.home-manager { nixosConfigurations.Heracles = nixpkgs.lib.nixosSystem {
home-manager.useGlobalPkgs = true; system = "x86_64-linux";
home-manager.useUserPackages = true; modules = [
home-manager.users.typo = import ./home.nix; ./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 { pkgs, lib, ... }:
# 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, ... }:
{ {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
imports =
[
./hardware-configuration.nix
./nvidia.nix
];
boot = { boot = {
loader = { loader = {
@@ -49,10 +40,7 @@
loader.timeout = lib.mkForce 5; loader.timeout = lib.mkForce 5;
}; };
networking = { networking.networkmanager.enable = true;
hostName = "Prometheus";
networkmanager.enable = true;
};
time.timeZone = "Europe/Budapest"; time.timeZone = "Europe/Budapest";
@@ -75,13 +63,11 @@
}; };
}; };
home-manager = { home-manager = {
useUserPackages = true; useGlobalPkgs = true;
useGlobalPkgs = true; useUserPackages = true;
#backupFileExtension = "backup"; users.typo = import ../home.nix;
};
users.typo = import ./home.nix;
};
programs = { programs = {
# firefox.enable = true; # firefox.enable = true;