From af4c4b6df957ffdcd1b1cbafeb29138bc8f1ba65 Mon Sep 17 00:00:00 2001 From: CDaut Date: Thu, 29 Feb 2024 21:15:35 +0100 Subject: [PATCH] moved hardware cfg to different system --- configuration.nix | 6 ------ flake.nix | 9 +++++++++ home.nix | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index f59cbdb..e3c93df 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,12 +6,6 @@ "flakes" ]; - imports = - [ - # Include the results of the hardware scan. - ./vm_hardware-configuration.nix - ]; - # Bootloader. boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sda"; diff --git a/flake.nix b/flake.nix index 25b3a0b..8101b2e 100644 --- a/flake.nix +++ b/flake.nix @@ -9,10 +9,19 @@ outputs = inputs@{ nixpkgs, home-manager, ... }: { nixosConfigurations = { + vm = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ./vm_hardware-configuration.nix + home-manager.nixosModules.home-manager + ]; + }; laptop = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./configuration.nix + ./hardware_configuration.nix home-manager.nixosModules.home-manager ]; }; diff --git a/home.nix b/home.nix index a49c345..e837123 100644 --- a/home.nix +++ b/home.nix @@ -40,7 +40,7 @@ in ]; # dotfiles - home.file = { + home.file = { rofitheme = { source = ./programm_configs/slate.rasi; target = ".config/rofi/slate.rasi";