Refactored repo layout
This commit is contained in:
17
flake.nix
17
flake.nix
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
12
hosts/Heracles/configuration.nix
Normal file
12
hosts/Heracles/configuration.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../modules/common.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "Heracles";
|
||||||
|
services.power-profiles-daemon.enable = true;
|
||||||
|
}
|
||||||
12
hosts/Prometheus/configuration.nix
Normal file
12
hosts/Prometheus/configuration.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../modules/common.nix
|
||||||
|
../../modules/nvidia.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "Prometheus";
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
Reference in New Issue
Block a user