nix-git/modules/home-manager.nix

33 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-02 15:38:49 +02:00
{ config, pkgs, ... }:
2023-10-09 12:37:26 +02:00
let
# Import Home Manager with niv.
home-manager = (import ../nix/sources.nix).home-manager;
#home-manager-source = import (import ../nix/sources.nix).home-manager {};
in
2023-09-02 15:38:49 +02:00
{
2023-10-09 12:37:26 +02:00
imports = [
# Home Manager.
(import "${home-manager}/nixos")
#home-manager-source.nixos
];
2023-09-05 17:55:36 +02:00
# This option may become the default value in the future.
# https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module
home-manager.useUserPackages = true;
# This saves an extra Nixpkgs evaluation, adds consistency,
# and removes the dependency on NIX_PATH, which is otherwise used for importing Nixpkgs.
# https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module
home-manager.useGlobalPkgs = true;
2023-09-05 17:58:40 +02:00
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
2023-12-15 13:03:18 +01:00
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
# Switching to a higher state version typically requires performing some manual steps, such as data conversion or moving files.
2024-07-12 23:07:09 +02:00
home.stateVersion = "24.05";
2023-09-02 15:38:49 +02:00
};
2023-11-18 13:01:18 +01:00
home-manager.users.root = { osConfig, config, pkgs, ... }: {
2023-12-15 13:03:18 +01:00
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
# Switching to a higher state version typically requires performing some manual steps, such as data conversion or moving files.
2024-07-12 23:07:09 +02:00
home.stateVersion = "24.05";
2023-11-18 13:01:18 +01:00
};
2023-09-02 15:38:49 +02:00
}