From c24f9a540edb0ba1c0b2aa1a1c87f5f6f6ef5104 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 1 Jul 2023 18:58:38 +0900 Subject: [PATCH] test --- flake.nix | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/flake.nix b/flake.nix index 35a1c742..4066b446 100644 --- a/flake.nix +++ b/flake.nix @@ -32,24 +32,6 @@ }; lib = nixpkgs.lib; in { - # Set up users with home-manager - homeManagerConfigurations = { - # Configuration for user "Albert" - albert = home-manager.lib.homeManagerConfiguration { - inherit system pkgs; - username = "albert"; - homeDirectory = "/home/albert"; - configuration.imports = [ ./users/albert/home.nix ]; - }; - # Configuration for user "root" - root = home-manager.lib.homeManagerConfiguration { - inherit system pkgs; - username = "root"; - homeDirectory = "/root"; - configuration.imports = [ ./users/root/home.nix ]; - }; - }; - # NixOS Configuration files: nixosConfigurations = { # Declare a generic configuration using the $hostname variable: @@ -72,6 +54,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; } ]; # modules }; # lib.nixosSystem - nixos-laptop