Refactored repo layout
This commit is contained in:
17
flake.nix
17
flake.nix
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
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,19 +1,10 @@
|
||||
# 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 = {
|
||||
grub = {
|
||||
@@ -49,10 +40,7 @@
|
||||
loader.timeout = lib.mkForce 5;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "Prometheus";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Budapest";
|
||||
|
||||
@@ -74,14 +62,12 @@
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
#backupFileExtension = "backup";
|
||||
|
||||
users.typo = import ./home.nix;
|
||||
};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.typo = import ../home.nix;
|
||||
};
|
||||
|
||||
programs = {
|
||||
# firefox.enable = true;
|
||||
Reference in New Issue
Block a user