mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
First pass at Home Manager on Ubuntu
This commit is contained in:
parent
87925581cc
commit
f5c1fa2ce0
9 changed files with 84 additions and 20 deletions
29
lib/mkHomeConfig.nix
Normal file
29
lib/mkHomeConfig.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ inputs, ... }: {
|
||||
mkHomeConfig = {
|
||||
system ? "x86_64-linux",
|
||||
homeDirectory,
|
||||
username,
|
||||
}: inputs.home-manager.lib.homeManagerConfiguration {
|
||||
extraSpecialArgs = { inherit inputs homeDirectory username; };
|
||||
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
|
||||
# Specify your home configuration modules here, for example,
|
||||
# the path to your home.nix.
|
||||
modules = [
|
||||
./nixpkgs-settings.nix
|
||||
../modules/hosts/common
|
||||
../modules/hosts/home-manager-only
|
||||
../modules/hosts/home-manager-only/home-${username}.nix
|
||||
|
||||
{
|
||||
home = {
|
||||
username = "${username}";
|
||||
homeDirectory = "${homeDirectory}";
|
||||
};
|
||||
}
|
||||
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue