Finish migration to home-manager

This commit is contained in:
Julien Hémono 2025-09-22 09:50:29 +02:00
parent 323b7b1ec3
commit 2112cca57f
3 changed files with 156 additions and 60 deletions

25
hosts/gwiad/home.nix Normal file
View file

@ -0,0 +1,25 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, inputs, outputs, ... }:
{
imports = [
inputs.home-manager.nixosModules.home-manager
];
users.users.jhemono = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" ]; # Enable 'sudo' for the user.
};
users.groups.jhemono.gid = 1000;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "bak";
users.jhemono = ../../homes/me;
};
}