Move hosts to subfolders

This commit is contained in:
Johannes Rothe 2024-12-22 23:49:58 +01:00
parent 58c41ab7ea
commit 99e9229b09
Signed by: onjen
GPG Key ID: 73F092605AF3286C
7 changed files with 8 additions and 20 deletions

View File

@ -32,17 +32,16 @@
lift = nixpkgs.lib.nixosSystem { lift = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
./configuration.nix ./hosts/lift/configuration.nix
./sway.nix ./hosts/lift/hardware-configuration.nix
./hardware-configuration.nix
]; ];
}; };
tien = nixpkgs.lib.nixosSystem { tien = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
disko.nixosModules.disko disko.nixosModules.disko
./vps-configuration.nix ./hosts/tien/configuration.nix
./vps-hardware-configuration.nix ./hosts/tien/hardware-configuration.nix
]; ];
}; };
}; };

View File

@ -1,12 +1,8 @@
# Edit this configuration file to define what should be installed on { pkgs, ... }:
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{ {
imports = [ imports = [
nixos/desktop/printing ../../nixos/desktop/printing
]; ];
# Bootloader. # Bootloader.

View File

@ -1,9 +1,9 @@
{ config, modulesPath, lib, pkgs, ... }: { modulesPath, lib, pkgs, ... }:
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
./vps-disk-config.nix ./disk-config.nix
]; ];
boot.loader.grub = { boot.loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already # no need to set devices, disko will add all devices that have a EF02 partition to the list already

View File

@ -1,7 +0,0 @@
{ config, pkgs, lib, ... }:
{
programs.sway = {
enable = true;
};
}