Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from nix-community:master #8

Merged
merged 131 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
802b3cb
espanso: use `launcher` command on Linux
talal Oct 19, 2024
122f705
firefox: change container.json version to 5
Oct 18, 2024
892a644
nh: add module
JohnRTitor Apr 23, 2024
fe56302
zoxide: fix fzf bash-completion conflict
talhaHavadar Oct 11, 2024
1e27f21
flake.lock: Update
home-manager-bot Oct 20, 2024
5ec753a
modules/neovim: fix config generation (#5976)
khaneliman Oct 21, 2024
5765fe4
accounts/calendar: fix defaultText rendering
SuperSandro2000 Oct 23, 2024
a4353cc
accounts/contacts: fix defaultText rendering
SuperSandro2000 Oct 23, 2024
0a0b1b1
maintainers: remove omernaveedxyz
Oct 25, 2024
454e8d6
granted: use assume directly
wcarlsen Oct 23, 2024
eea1bc6
gpg-agent: use $TTY parameter in zsh integration
DrymarchonShaun Oct 24, 2024
c7cfdb3
spotify-player: add support for actions
diniamo Sep 29, 2024
82378b3
htop: use attrsOf instead of attrs as settings type
Luflosi Jun 21, 2024
4462935
nixgl: add module
Smona Apr 30, 2024
bbd4254
nixgl: make desktop files point to wrapped exe
Smona Jun 19, 2024
b9fe747
nixgl: use makeWrapper and update docs
Smona Jun 19, 2024
199cf56
nixgl: use -q to silence grep
Smona Jun 27, 2024
d0c036c
nixgl: ensure makeWrapper is present during build
Smona Jun 27, 2024
7dee0dc
nixgl: reference lib directly
Smona Jul 1, 2024
e61f879
nixgl: Improve option documentation
Smona Aug 10, 2024
7a58797
nixgl: API rework for flexibility and dual-GPU
exzombie Jul 10, 2024
8bd6e0a
nixgl: add support for channel-based configuration
exzombie Oct 2, 2024
5feb9db
nixgl: add module
rycee Oct 25, 2024
c77c3bb
yazi: enable shell integration values by default
no-mood Oct 21, 2024
6cc03e3
nix-gc: add `randomizedDelaySec` option
ambroisie Oct 21, 2024
c0e2315
git-credential-oauth: add extraFlags option
tomodachi94 Oct 25, 2024
0c0268a
eza: add color option
nyadiia Oct 23, 2024
93435d2
direnv: add support for mise integration
shikanime Oct 25, 2024
05d9bee
git-credential-oauth: fix use of mkIf and add tests
tomodachi94 Oct 27, 2024
e834140
flake.lock: Update
home-manager-bot Oct 27, 2024
8ca921e
git-credential-oauth: fix ordering of git extraConfig
KostaGorod Nov 1, 2024
1743615
podman: add module
n-hass Dec 22, 2023
2c6a9b3
git: fix maintenance service
sinavir Nov 3, 2024
8f6ca78
flake.lock: Update
home-manager-bot Nov 3, 2024
2f607e0
docs: home.sessionVariable clarification
Nov 2, 2024
7309007
news: fix typo
GaetanLepage Nov 10, 2024
60bb110
helix: fix wrapping of extraPackages
mrnossiom Nov 10, 2024
149a48d
flake.lock: Update
home-manager-bot Nov 13, 2024
40746b5
alacritty: fix test for nixpkgs update
RedEtherbloom Nov 6, 2024
7e42a37
spotify-player: fix test for nixpkgs update
RedEtherbloom Nov 6, 2024
ee8ff6d
espanso: fix test for nixpkgs update
RedEtherbloom Nov 6, 2024
cd21d2e
git-sync: fix crash when whitespace in path
RedEtherbloom Oct 31, 2024
3c044ae
git-sync: add example to repository option
RedEtherbloom Oct 31, 2024
35b0550
kanshi: add package to home.packages
GaetanLepage Nov 13, 2024
1d0862e
feh: add themes option (#6074)
gmvar Nov 14, 2024
400e3c0
nixos: always run home-manager on NixOS activation (#5780)
Enzime Nov 16, 2024
192f123
nixos: add `key` to shared module to allow disabling it (#6017)
Enzime Nov 16, 2024
d154a55
aerc: add support of account gpg config (#5298)
janydoe Nov 16, 2024
c7c2517
{gtk, dunst}: replace `pkgs.gnome.adwaita-icon-theme` with `pkgs.adwa…
Nanotwerp Nov 16, 2024
1bd5616
lib/file-type: Make `force` option visible (#6003)
amarshall Nov 16, 2024
5056a1c
version: allow 25.05 as state version
oneingan Nov 17, 2024
aecd341
firefox: improve search engine disclaimer generation
kkoniuszy Jul 27, 2024
0918bb0
ci: make dependabot consider release-24.11
rycee Nov 17, 2024
05d3b62
home-manager: prepare 25.05-pre
rycee Nov 17, 2024
f3a2ff6
zsh-abbr: update source path (#6084)
ilaumjd Nov 17, 2024
1846299
librewolf: use mkFirefoxModule
chayleaf Jul 29, 2024
0bd5e9c
librewolf: hide bookmarks option
chayleaf Aug 6, 2024
094265f
Translate using Weblate (Italian)
ardubev16 Nov 18, 2024
705cf37
Translate using Weblate (Ukrainian)
wadsaek Nov 18, 2024
a42fa14
syncthing: expand declarative configuration
karaolidis Aug 31, 2024
d37f154
flake.lock: Update
home-manager-bot Nov 19, 2024
a46e702
espanso: fix test failure
rycee Nov 19, 2024
8cf9cb2
tests: fix integration test
rycee Nov 22, 2024
445d721
home-cursor: add hyprcursor support
arminius-smh Aug 2, 2024
16fe781
conky: update systemd exec path to config package
0x006E Nov 22, 2024
ba9367b
emacs: add darwin service
klchen0112 Nov 22, 2024
92fef25
podman: install package and create config files
dawidd6 Nov 23, 2024
67cd481
flake.lock: Update
github-actions[bot] Nov 24, 2024
bd58a11
hyprpaper: fix service when no config file
sebaszv Nov 24, 2024
5e2f47c
hypridle: fix service when no config file
sebaszv Nov 23, 2024
9ae941a
abook: remove platform linux assertion
someone-stole-my-name Nov 24, 2024
f9fd45c
volnoti: add self to maintainers
tomodachi94 Aug 10, 2024
98bf8de
volnoti: use cfg.package instead of pkgs
tomodachi94 Aug 10, 2024
83002f1
mopidy: restart the systemd service on failure
jwillikers Nov 24, 2024
4d8d8c3
zed-editor: add extraPackages option
ninelore Nov 24, 2024
a995363
mopidy: restart service on config changes
jwillikers Nov 12, 2024
0941a2e
flake.lock: Update
home-manager-bot Nov 28, 2024
f83dc9f
tmux: set `sensibleOnTop = false` as a default
gen740 Nov 28, 2024
2139685
kdeconnect: upgrade default version
RedEtherbloom Nov 28, 2024
de7d67b
mopidy: make makeWrapper a native build input
jwillikers Nov 6, 2024
b721965
mopidy: ignore collisions between extensions
jwillikers Nov 6, 2024
2f7739d
kakoune: add colorSchemePackage option
philipwilk Jul 20, 2024
819f682
lorri: fix ReadWritePaths for new gcroots behavior
kmicklas Nov 29, 2024
8eeda28
flake.lock: Update
home-manager-bot Dec 1, 2024
4964f3c
home-manager: prepare 24.11 release
rycee Nov 22, 2024
441fae8
zsh-abbr: add package option
NovaViper Dec 1, 2024
7f78e2d
yazi: update keymap config
GaetanLepage Dec 1, 2024
e71e678
nix-your-shell: add module
terlar Jul 18, 2024
8632735
kubecolor: add module
ajgon Oct 3, 2024
c1fee8d
alot: make package used by module configurable
paumr Dec 1, 2024
d2e2bda
nix-your-shell: fix creating required directory
feathecutie Dec 2, 2024
873e39d
podman-container: fix tests and failing podman 5.3.0 service
GaetanLepage Dec 2, 2024
bf23fe4
tmux: add 'focusEvents'
ambroisie Nov 28, 2024
092b81b
atuin: configure daemon using systemd and launchd
water-sucks Oct 8, 2024
33c236f
atuin: add water-sucks as maintainer
water-sucks Oct 8, 2024
c56aa0f
atuin: assert version >= 18.2.0 when daemon is enabled
water-sucks Oct 19, 2024
f8bc330
atuin: capitalize mentions of "atuin"
water-sucks Nov 16, 2024
dfdf59b
atuin: make daemon log level configurable
water-sucks Nov 16, 2024
92e644a
atuin: configure daemon using systemd and launchd
rycee Dec 4, 2024
256ec26
flake.lock: Update
home-manager-bot Dec 4, 2024
5b5de43
kakoune: fix color scheme package XDG file
philipwilk Dec 4, 2024
7080328
Translate using Weblate (Finnish)
Ricky-Tigg Dec 3, 2024
8f4f57f
qt: update tooling for Plasma 6
lopter Sep 7, 2024
6c3a7a0
qt: reduce test closure
rycee Dec 4, 2024
30f66ea
xresources: use `profileExtra` instead of `initExtra`
rycee Dec 4, 2024
b1c19f1
home-cursor: use `profileExtra` instead of `initExtra`
rycee Dec 4, 2024
ad48eb2
etesync-dav: update default server URL
LorenzBischof Nov 23, 2024
3a7fc9c
zsh: make autosuggest strategy accept more options
NovaViper Dec 4, 2024
1cd17a2
mangohud: fix a non-working example
KucharczykL Dec 4, 2024
86ee129
starship: add `enableInteractive` option for fish
eljamm Jul 24, 2024
0daaded
starship: replace `eval` with `source` for fish
eljamm Jul 24, 2024
65912bc
imapnotify: provide an option for setting PATH
lheckemann Aug 16, 2024
953521f
fcitx5: fix package reference in test
rycee Dec 6, 2024
0b42cc1
cmus: reduce test closure
rycee Dec 6, 2024
63eb786
xresources: simplify tests
rycee Dec 6, 2024
d00c6f6
nix: simplify tests
rycee Dec 6, 2024
f63c15c
isync/mbsync: update module for 1.5.0 changes (#5918)
KarlJoad Dec 9, 2024
9ebaa80
thunderbird: set the correct SMTP server for aliases (#6177)
alois31 Dec 9, 2024
77a792a
atuin: Do not hard code prefix for daemon socket path
mmlb Dec 9, 2024
e952e94
atuin: Prepare for daemon socket path in 18.4.0
mmlb Dec 9, 2024
8772bae
nushell: allow installing plugins
aidalgol Dec 7, 2024
c6a5fbf
qt: install kio when qt.platformTheme = "kde"
alyraffauf Dec 10, 2024
f26aa4b
gpg-agent: fix GCR DBus package note
axelkar Dec 8, 2024
6e5b2d9
home-manager: support username with special chars (#5609)
DDoSolitary Dec 11, 2024
15151bb
gpg: fix hash of test (#6200)
teto Dec 12, 2024
e526fd2
gnome-shell: fix extensions' default (#6199)
teto Dec 12, 2024
3066cc5
kanshi: dont write config in absence of nix settings (#6198)
teto Dec 12, 2024
66c5d8b
zed-editor: fix always generating settings.json
DaRacci Dec 12, 2024
83ecd50
docs: fix typo in 24.11 release notes
BuriedInTheGround Dec 16, 2024
832920a
thunderbird: add profileVersion
khaneliman Dec 19, 2024
1395379
home-manager: improve path handling when building news
rycee Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ updates:
interval: "weekly"
commit-message:
prefix: "ci:"

- package-ecosystem: "github-actions"
directory: "/"
target-branch: "release-24.11"
schedule:
interval: "weekly"
commit-message:
prefix: "ci:"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Releases
Home Manager is developed against `nixpkgs-unstable` branch, which often causes
it to contain tweaks for changes/packages not yet released in stable [NixOS][].
To avoid breaking users' configurations, Home Manager is released in branches
corresponding to NixOS releases (e.g. `release-24.05`). These branches get
corresponding to NixOS releases (e.g. `release-24.11`). These branches get
fixes, but usually not new modules. If you need a module to be backported, then
feel free to open an issue.

Expand All @@ -49,7 +49,7 @@ dconf store and cannot tell whether a configuration that it is about to be
overwritten was from a previous Home Manager generation or from manual
configuration.

Home Manager targets [NixOS][] unstable and NixOS version 24.05 (the current
Home Manager targets [NixOS][] unstable and NixOS version 24.11 (the current
stable version), it may or may not work on other Linux distributions and NixOS
versions.

Expand Down
6 changes: 3 additions & 3 deletions docs/manual/installation/nix-darwin.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ $ nix-channel --add https://github.com/nix-community/home-manager/archive/master
$ nix-channel --update
```

and if you follow a Nixpkgs version 24.05 channel, you can run
and if you follow a Nixpkgs version 24.11 channel, you can run

``` shell
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
$ nix-channel --update
```

Expand All @@ -45,7 +45,7 @@ home-manager.users.eve = { pkgs, ... }: {

# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.05";
home.stateVersion = "24.11";
};
```

Expand Down
6 changes: 3 additions & 3 deletions docs/manual/installation/nixos.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/m
$ sudo nix-channel --update
```

and if you follow a Nixpkgs version 24.05 channel, you can run
and if you follow a Nixpkgs version 24.11 channel, you can run

``` shell
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
$ sudo nix-channel --update
```

Expand All @@ -44,7 +44,7 @@ home-manager.users.eve = { pkgs, ... }: {

# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.05";
home.stateVersion = "24.11";
};
```

Expand Down
4 changes: 2 additions & 2 deletions docs/manual/installation/standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
$ nix-channel --update
```

and if you follow a Nixpkgs version 24.05 channel you can run
and if you follow a Nixpkgs version 24.11 channel you can run

``` shell
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
$ nix-channel --update
```

Expand Down
2 changes: 1 addition & 1 deletion docs/manual/manual.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Home Manager Manual {#home-manager-manual}

## Version 24.05 (unstable)
## Version 25.05 (unstable)


```{=include=} preface
Expand Down
6 changes: 3 additions & 3 deletions docs/manual/nix-flakes/standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ then to generate and activate a basic configuration run the command
$ nix run home-manager/master -- init --switch
```

For Nixpkgs or NixOS version 24.05 run
For Nixpkgs or NixOS version 24.11 run

``` shell
$ nix run home-manager/release-24.05 -- init --switch
$ nix run home-manager/release-24.11 -- init --switch
```

This will generate a `flake.nix` and a `home.nix` file in
Expand All @@ -30,7 +30,7 @@ $ # Edit files in ~/.config/home-manager
$ nix run home-manager/$branch -- init --switch
```

Where `$branch` is one of `master` or `release-24.05`.
Where `$branch` is one of `master` or `release-24.11`.

After the initial activation has completed successfully then building
and activating your flake-based configuration is as simple as
Expand Down
1 change: 1 addition & 0 deletions docs/manual/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ usage/configuration.md
usage/rollbacks.md
usage/dotfiles.md
usage/graphical.md
usage/gpu-non-nixos.md
usage/updating.md
```
4 changes: 2 additions & 2 deletions docs/manual/usage/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A fresh install of Home Manager will generate a minimal
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "24.05";
home.stateVersion = "24.11";

# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
Expand Down Expand Up @@ -65,7 +65,7 @@ follows:
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "24.05";
home.stateVersion = "24.11";

# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
Expand Down
81 changes: 81 additions & 0 deletions docs/manual/usage/gpu-non-nixos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# GPU on non-NixOS systems {#sec-usage-gpu-non-nixos}

To access the GPU, programs need access to OpenGL and Vulkan libraries. While
this works transparently on NixOS, it does not on other Linux systems. A
solution is provided by [NixGL](https://github.com/nix-community/nixGL), which
can be integrated into Home Manager.

To enable the integration, import NixGL into your home configuration, either as
a channel, or as a flake input passed via `extraSpecialArgs`. Then, set the
`nixGL.packages` option to the package set provided by NixGL.

Once integration is enabled, it can be used in two ways: as Nix functions for
wrapping programs installed via Home Manager, and as shell commands for running
programs installed by other means (such as `nix shell`). In either case, there
are several wrappers available. They can be broadly categorized

- by vendor: as Mesa (for Free drivers of all vendors) and Nvidia (for
Nvidia-specific proprietary drivers).
- by GPU selection: as primary and secondary (offloading).

For example, the `mesa` wrapper provides support for running programs on the
primary GPU for Intel, AMD and Nouveau drivers, while the `mesaPrime` wrapper
does the same for the secondary GPU.

**Note:** when using Nvidia wrappers together with flakes, your home
configuration will not be pure and needs to be built using `home-manager switch
--impure`. Otherwise, the build will fail, complaining about missing attribute
`currentTime`.

Wrapper functions are available under `config.lib.nixGL.wrappers`. However, it
can be more convenient to use the `config.lib.nixGL.wrap` alias, which can be
configured to use any of the wrappers. It is intended to provide a customization
point when the same home configuration is used across several machines with
different hardware. There is also the `config.lib.nixGL.wrapOffload` alias for
two-GPU systems.

Another convenience is that all wrapper functions are always available. However,
when `nixGL.packages` option is unset, they are no-ops. This allows them to be
used even when the home configuration is used on NixOS machines. The exception
is the `prime-offload` script which ignores `nixGL.packages` and is installed
into the environment whenever `nixGL.prime.installScript` is set. This script,
which can be used to start a program on a secondary GPU, does not depend on
NixGL and is useful on NixOS systems as well.

Below is an abbreviated example for an Optimus laptop that makes use of both
Mesa and Nvidia wrappers, where the latter is used in dGPU offloading mode. It
demonstrates how to wrap `mpv` to run on the integrated Intel GPU, wrap FreeCAD
to run on the Nvidia dGPU, and how to install the wrapper scripts. It also wraps
Xonotic to run on the dGPU, but uses the wrapper function directly for
demonstration purposes.

```nix
{ config, lib, pkgs, nixgl, ... }:
{
nixGL.packages = nixgl.packages;
nixGL.defaultWrapper = "mesa";
nixGL.offloadWrapper = "nvidiaPrime";
nixGL.installScripts = [ "mesa" "nvidiaPrime" ];

programs.mpv = {
enable = true;
package = config.lib.nixGL.wrap pkgs.mpv;
};

home.packages = [
(config.lib.nixGL.wrapOffload pkgs.freecad)
(config.lib.nixGL.wrappers.nvidiaPrime pkgs.xonotic)
];
}
```

The above example assumes a flake-based setup where `nixgl` was passed from the
flake. When using channels, the example would instead begin with

```nix
{ config, lib, pkgs, ... }:
{
nixGL.packages = import <nixgl> { inherit pkgs; };
# The rest is the same as above
...
```
1 change: 1 addition & 0 deletions docs/release-notes/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This section lists the release notes for stable versions of Home Manager
and the current unstable version.

```{=include=} chapters
rl-2505.md
rl-2411.md
rl-2405.md
rl-2311.md
Expand Down
5 changes: 2 additions & 3 deletions docs/release-notes/rl-2411.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Release 24.11 {#sec-release-24.11}

This is the current unstable branch and the information in this section
is therefore not final.
The 24.11 release branch became stable in November, 2024.

## Highlights {#sec-release-24.11-highlights}

Expand Down Expand Up @@ -29,4 +28,4 @@ The state version in this release includes the changes below. These
changes are only active if the `home.stateVersion` option is set to
\"24.11\" or later.

- No changes.
- There was no state version change in this release.
18 changes: 18 additions & 0 deletions docs/release-notes/rl-2505.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Release 25.05 {#sec-release-25.05}

This is the current unstable branch and the information in this
section is therefore not final.

## Highlights {#sec-release-25.05-highlights}

This release has the following notable changes:

- No changes.

## State Version Changes {#sec-release-25.05-state-version-changes}

The state version in this release includes the changes below. These
changes are only active if the `home.stateVersion` option is set to
\"25.05\" or later.

- No changes.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 18 additions & 13 deletions home-manager/home-manager
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ function hasFlakeSupport() {
| grep -q nix-command
}

# Escape string for use in Nix files.
function escapeForNix() {
printf %s "$1" | sed 's/["$\\]/\\\0/g'
}

# Attempts to set the HOME_MANAGER_CONFIG global variable.
#
# If no configuration file can be found then this function will print
Expand Down Expand Up @@ -201,7 +206,7 @@ function setFlakeAttribute() {
# Check FQDN, long, and short hostnames; long first to preserve
# pre-existing behaviour in case both happen to be defined.
for n in "$USER@$(hostname -f)" "$USER@$(hostname)" "$USER@$(hostname -s)"; do
if [[ "$(nix eval "$flake#homeConfigurations" --apply "x: x ? \"$n\"")" == "true" ]]; then
if [[ "$(nix eval "$flake#homeConfigurations" --apply "x: x ? \"$(escapeForNix "$n")\"")" == "true" ]]; then
name="$n"
if [[ -v VERBOSE ]]; then
echo "Using flake homeConfiguration for $name"
Expand All @@ -210,7 +215,7 @@ function setFlakeAttribute() {
done
;;
esac
export FLAKE_CONFIG_URI="$flake#homeConfigurations.\"$name\""
export FLAKE_CONFIG_URI="$flake#homeConfigurations.\"$(printf %s "$name" | jq -sRr @uri)\""
fi
}

Expand Down Expand Up @@ -349,8 +354,8 @@ function doInit() {
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "$USER";
home.homeDirectory = "$HOME";
home.username = "$(escapeForNix "$USER")";
home.homeDirectory = "$(escapeForNix "$HOME")";
$xdgVars
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
Expand All @@ -359,7 +364,7 @@ $xdgVars
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "24.05"; # Please read the comment before changing.
home.stateVersion = "24.11"; # Please read the comment before changing.

# The home.packages option allows you to install Nix packages into your
# environment.
Expand Down Expand Up @@ -439,7 +444,7 @@ EOF
mkdir -p "$confDir"
cat > "$flakeFile" <<EOF
{
description = "Home Manager configuration of $USER";
description = "Home Manager configuration of $(escapeForNix "$USER")";

inputs = {
# Specify the source of Home Manager and Nixpkgs.
Expand All @@ -455,7 +460,7 @@ EOF
system = "$nixSystem";
pkgs = nixpkgs.legacyPackages.\${system};
in {
homeConfigurations."$USER" = home-manager.lib.homeManagerConfiguration {
homeConfigurations."$(escapeForNix "$USER")" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;

# Specify your home configuration modules here, for example,
Expand Down Expand Up @@ -786,8 +791,8 @@ function buildNews() {
nix-instantiate \
--no-build-output --strict \
--eval '<home-manager/home-manager/build-news.nix>' \
--arg newsJsonFile "$newsJsonFile" \
--arg newsReadIdsFile "$readIdsFile" \
--arg newsJsonFile "\"$(escapeForNix "$newsJsonFile")\"" \
--arg newsReadIdsFile "\"$(escapeForNix "$readIdsFile")\"" \
"${extraArgs[@]}" \
> "$newsNixFile"
}
Expand Down Expand Up @@ -855,9 +860,9 @@ function doUninstall() {
cat > "$HOME_MANAGER_CONFIG" <<EOF
{
uninstall = true;
home.username = "$USER";
home.homeDirectory = "$HOME";
home.stateVersion = "24.05";
home.username = "$(escapeForNix "$USER")";
home.homeDirectory = "$(escapeForNix "$HOME")";
home.stateVersion = "24.11";
}
EOF
# shellcheck disable=2064
Expand Down Expand Up @@ -1044,7 +1049,7 @@ while [[ $# -gt 0 ]]; do
export VERBOSE=1
;;
--version)
echo 24.11-pre
echo 25.05-pre
exit 0
;;
*)
Expand Down
Loading
Loading