From 5a7b9b23a34acc918ef637754086d1c6c500c5a2 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sat, 29 Mar 2025 21:32:40 +0100 Subject: [PATCH] try home-configuration --- flake.nix | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ab88a75..b21b5ee 100644 --- a/flake.nix +++ b/flake.nix @@ -148,7 +148,41 @@ }; nixosModules = { automapaper = ./modules/automapaper; - chome = ./common/home; + }; + homeConfigurations = { + "noa@zelden" = + let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in + inputs.home-manager.lib.homeManagerConfiguration { + pkgs = pkgs; + extraSpecialArgs = { inherit inputs nix-colors; }; + modules = [ + (import ./common/home { + enableGraphical = true; + enableFlut = false; + enableGames = false; + displays = [ + { + name = "DP-6"; + horizontal = 3840; + vertical = 1200; + horizontal-offset = 0; + vertical-offset = 0; + refresh-rate = 100; + scale = "1"; + } + ]; + extraConfig = { + programs.btop.package = pkgs.btop.overrideAttrs (oldAttrs: { + cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [ + "-DBTOP_GPU=ON" + ]; + }); + }; + }) + ]; + }; }; packages = import ./packages { inherit nixpkgs; }; };