From 8da5147ff4d5d7dd80f217eb2434d416bcde2b97 Mon Sep 17 00:00:00 2001 From: Lgmrszd Date: Wed, 10 Jan 2024 01:36:02 +0300 Subject: [PATCH] test --- flake.nix | 5 +++-- configuration.nix => hosts/laptop/configuration.nix | 7 +------ .../laptop.nix => hosts/laptop/hardware-configuration.nix | 0 mounts.nix => hosts/laptop/mounts.nix | 0 4 files changed, 4 insertions(+), 8 deletions(-) rename configuration.nix => hosts/laptop/configuration.nix (98%) rename hardware-configurations/laptop.nix => hosts/laptop/hardware-configuration.nix (100%) rename mounts.nix => hosts/laptop/mounts.nix (100%) diff --git a/flake.nix b/flake.nix index 63cd3ed..64b6681 100644 --- a/flake.nix +++ b/flake.nix @@ -83,9 +83,10 @@ ({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; }) # nur.nixosModules.nur inputs.nh.nixosModules.default - ./configuration.nix + ./hosts/laptop/configuration.nix + ./hosts/laptop/hardware-configuration.nix + ./hosts/laptop/mounts.nix # nix-index-database.nixosModules.nix-index - ./mounts.nix # make home-manager as a module of nixos # so that home-manager configuration will be deployed automatically when executing `nixos-rebuild switch` diff --git a/configuration.nix b/hosts/laptop/configuration.nix similarity index 98% rename from configuration.nix rename to hosts/laptop/configuration.nix index 84af77a..3e4b061 100644 --- a/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -4,12 +4,7 @@ { config, pkgs, pkgs-stable, secrets, ... }: -{ - imports = - [ # Include the results of the hardware scan. - ./hardware-configurations/laptop.nix - ]; - +{ # boot.kernelPackages = pkgs.linuxPackages_zen; # Use the systemd-boot EFI boot loader. diff --git a/hardware-configurations/laptop.nix b/hosts/laptop/hardware-configuration.nix similarity index 100% rename from hardware-configurations/laptop.nix rename to hosts/laptop/hardware-configuration.nix diff --git a/mounts.nix b/hosts/laptop/mounts.nix similarity index 100% rename from mounts.nix rename to hosts/laptop/mounts.nix