From f5e20cefd29b3824b377f1d9af96fc0f32c7805e Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 13 Jul 2023 18:25:41 +0900 Subject: [PATCH] test --- flake.nix | 4 ++-- users/albert/home.nix | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index 0a84effa..25b6f12a 100644 --- a/flake.nix +++ b/flake.nix @@ -70,8 +70,8 @@ home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.albert = import ./users/albert/home.nix; - home-manager.users.root = import ./users/root/home.nix; + home-manager.users.albert = import ./users/albert/home.nix { inherit hostname; }; + home-manager.users.root = import ./users/root/home.nix { inherit hostname; }; nixpkgs.overlays = [ nur.overlay ]; diff --git a/users/albert/home.nix b/users/albert/home.nix index a51c90cf..a2372d69 100644 --- a/users/albert/home.nix +++ b/users/albert/home.nix @@ -1,13 +1,10 @@ { config, pkgs, hostname, ... }: { - let hostname = ${hostname} - in { - home.stateVersion = "23.05"; - imports = [ - ../../hosts/${hostname}/gnome-dconf.nix - ../../home-manager/git.nix - ../../home-manager/neovim.nix - ../../home-manager/bash.nix - ../../home-manager/firefox.nix - ]; - } + home.stateVersion = "23.05"; + imports = [ + ../../hosts/${hostname}/gnome-dconf.nix + ../../home-manager/git.nix + ../../home-manager/neovim.nix + ../../home-manager/bash.nix + ../../home-manager/firefox.nix + ]; } \ No newline at end of file