From 9b75c8036d9fd72ab65de10fdb3a41de27a64506 Mon Sep 17 00:00:00 2001 From: osbm Date: Sat, 26 Oct 2024 18:05:38 +0300 Subject: [PATCH] try out modular system configuration --- flake.nix | 2 +- .../tartarus/configuration.nix | 14 +------------- .../tartarus/hardware-configuration.nix | 0 3 files changed, 2 insertions(+), 14 deletions(-) rename configuration.nix => hosts/tartarus/configuration.nix (96%) rename hardware-configuration.nix => hosts/tartarus/hardware-configuration.nix (100%) diff --git a/flake.nix b/flake.nix index aa361a3..5d52268 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ # revision = self.shortRev or self.dirtyShortRev or self.lastModified or "unknown"; tartarus = nixpkgs.lib.nixosSystem rec { system = "x86_64-linux"; - modules = [ ./configuration.nix ]; + modules = [ ./hosts/tartarus/configuration.nix ]; specialArgs = { pkgs-unstable = import nixpkgs-unstable { inherit system; diff --git a/configuration.nix b/hosts/tartarus/configuration.nix similarity index 96% rename from configuration.nix rename to hosts/tartarus/configuration.nix index 749e898..7142864 100644 --- a/configuration.nix +++ b/hosts/tartarus/configuration.nix @@ -7,6 +7,7 @@ { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ../../common/fonts.nix ]; # Bootloader. @@ -20,19 +21,6 @@ # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - fonts.packages = with pkgs; [ - noto-fonts - noto-fonts-cjk - noto-fonts-emoji - liberation_ttf - fira-code - fira-code-symbols - mplus-outline-fonts.githubRelease - dina-font - nerdfonts - proggyfonts - ]; - # Enable networking networking.networkmanager.enable = true; diff --git a/hardware-configuration.nix b/hosts/tartarus/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to hosts/tartarus/hardware-configuration.nix