Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ereslibre committed Jan 13, 2025
1 parent cac650c commit ec07a72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
29 changes: 1 addition & 28 deletions dotfiles/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
nixpkgs,
home-manager,
}: let
let
rawHomeManagerConfigurations = {
"ereslibre@hulk" = {
system = "x86_64-linux";
Expand Down Expand Up @@ -44,30 +41,6 @@
stateVersion = "22.11";
};
};

homeManagerConfiguration = {
system,
username,
homeDirectory,
profile,
mainlyRemote,
stateVersion,
}:
home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
};
modules = [
{nixpkgs.config.allowUnfree = true;}
(import ./home.nix {
inherit system username homeDirectory stateVersion profile mainlyRemote home-manager;
})
];
};
in {
inherit rawHomeManagerConfigurations;
homeConfigurations =
nixpkgs.lib.attrsets.mapAttrs
(userAndHost: userAndHostConfig: homeManagerConfiguration userAndHostConfig)
rawHomeManagerConfigurations;
}
8 changes: 4 additions & 4 deletions dotfiles/home.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
username,
home-manager,
homeDirectory,
stateVersion,
mainlyRemote,
profile,
stateVersion,
system,
mainlyRemote,
home-manager,
username,
}: {
config,
pkgs,
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
sops-nix,
...
}: let
dotfiles = import ./dotfiles {inherit nixpkgs home-manager;};
dotfiles = import ./dotfiles;
in (flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
Expand Down

0 comments on commit ec07a72

Please sign in to comment.