From 671578567a4acf25b1d6e217305b649e0cc8d9f2 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 5 Oct 2025 13:40:36 +0200 Subject: [PATCH] Refactor --- hosts/vm/configuration.nix | 14 ++++++++------ hosts/vm/disk.nix | 6 ------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index 4e5a9e6..c268082 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -20,19 +20,21 @@ "flakes" ]; + disko = { + devices.disk.main.device = "/dev/vda"; + }; + + nixpkgs.config.allowUnfree = true; + + programs.git.enable = true; + programs.firefox.enable = true; - disko.devices.disk.main.device = "/dev/vda"; home-manager = { useGlobalPkgs = true; useUserPackages = true; users.h = ./home.nix; }; - programs.git.enable = true; - programs.firefox.enable = true; - - nixpkgs.config.allowUnfree = true; - environment.systemPackages = with pkgs; [ neovim kitty diff --git a/hosts/vm/disk.nix b/hosts/vm/disk.nix index 115f2cd..ca67b19 100644 --- a/hosts/vm/disk.nix +++ b/hosts/vm/disk.nix @@ -1,9 +1,3 @@ -# USAGE in your configuration.nix. -# Update devices to match your hardware. -# { -# imports = [ ./disko-config.nix ]; -# disko.devices.disk.main.device = "/dev/sda"; -# } { disko.devices = { disk = {