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

View file

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./home.nix
# Services
./btrbk.nix
./syncthing.nix
@ -41,64 +42,10 @@
];
};
# User account
users.users.jhemono = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" ]; # Enable 'sudo' for the user.
packages = with pkgs; let
tex = texlive.combine {
inherit (texlive)
scheme-basic
moderncv
fontawesome5
pgf # For tikz.sty
multirow
arydshln;
};
my-vscode = vscode-with-extensions.override {
vscodeExtensions = with vscode-marketplace; [
ms-python.python
ms-python.vscode-pylance
ms-python.debugpy
ms-python.black-formatter
ms-python.isort
ms-vscode-remote.remote-containers
github.copilot
github.copilot-chat
dbaeumer.vscode-eslint
];
};
in [
chromium
docker-compose
drawing
hunspell
hunspellDicts.fr-classique
# inkscape
libreoffice-fresh
my-vscode
# nixfmt
pass-wayland
pwgen
# scribus
tex
# General development
# dbeaver-bin
# poetry
pre-commit
# nodejs
uv
];
};
users.groups.jhemono.gid = 1000;
# System packages
environment.systemPackages = with pkgs; [
android-tools
bc
devenv
git
htop
jq
@ -111,12 +58,6 @@
zip
];
programs.firefox = {
enable = true;
nativeMessagingHosts.packages = with pkgs; [ passff-host ];
};
programs.browserpass.enable = true;
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;

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;
};
}