use Home Manager config variable

This commit is contained in:
Daniel Langbein 2023-09-05 17:58:40 +02:00
parent 795c37d632
commit 6c4b8ea7a7
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
# https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module # https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.users.yoda = { pkgs, ... }: { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
/* The home.stateVersion option does not have a default and must be set */ /* The home.stateVersion option does not have a default and must be set */
/* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */ /* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */
home.stateVersion = "23.05"; home.stateVersion = "23.05";

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home-manager.users.yoda = { pkgs, ... }: { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
# Git config using Home Manager modules # Git config using Home Manager modules
programs.git = { programs.git = {

View File

@ -9,7 +9,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
home-manager.users.yoda = { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
# Enable GNOME extensions. # Enable GNOME extensions.
"org/gnome/shell".enabled-extensions = [ pkgs.gnomeExtensions.caffeine.extensionUuid ]; "org/gnome/shell".enabled-extensions = [ pkgs.gnomeExtensions.caffeine.extensionUuid ];

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home-manager.users.yoda = { pkgs, ... }: { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
programs.ssh = { programs.ssh = {
enable = true; enable = true;