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

bug: .gtkrc-2.0 no longer is a symlink after reboot #6188

Open
2 tasks done
SpidFightFR opened this issue Dec 9, 2024 · 1 comment
Open
2 tasks done

bug: .gtkrc-2.0 no longer is a symlink after reboot #6188

SpidFightFR opened this issue Dec 9, 2024 · 1 comment
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@SpidFightFR
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I tried to configure gtk with home-manager, but i end up having crashes with home-manager.

gtk.nix
{ config, pkgs, ... }:
{
	gtk = {
		enable = true;
		theme = {
		  package = pkgs.marwaita-teal;
			name = "Marwaita-Dark-Teal";
		};
		iconTheme = {
		  package = pkgs.beauty-line-icon-theme;
	    name = "BeautyLine";
		};
		gtk3.bookmarks = [ #Add bookmarks to the file chooser
			"file:///${config.home.homeDirectory}/Documents"
			"file:///${config.home.homeDirectory}/Téléchargements"
			"file:///${config.home.homeDirectory}/Musique"
			"file:///${config.home.homeDirectory}/Images"
			"file:///${config.home.homeDirectory}/Vidéos"
		];
	};
}

result of nixos rebuild:

error.log
activating the configuration...
setting up /etc...
reloading user units for spid...
restarting sysinit-reactivation.target
warning: the following units failed: home-manager-spid.service
× home-manager-spid.service - Home Manager environment for spid
     Loaded: loaded (/etc/systemd/system/home-manager-spid.service; enabled; preset: ignored)
     Active: failed (Result: exit-code) since Mon 2024-12-09 20:52:35 CET; 264ms ago
 Invocation: f91c688e495441c087bd4020a06f2e7d
    Process: 14011 ExecStart=/nix/store/m91h9kmjw78swvldfb9px8qnv1nb23ax-hm-setup-env /nix/store/c7xa8l2ns80qcclafpx0vfiip8gingnz-home-manager-generation (code=exited, status=1/FAILURE)
   Main PID: 14011 (code=exited, status=1/FAILURE)
         IP: 0B in, 0B out
         IO: 20K read, 0B written
   Mem peak: 5.9M
        CPU: 179ms

déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]: Please do one of the following:
déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]: - Move or remove the above files and try again.
déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]: - In standalone mode, use 'home-manager switch -b backup' to back up
déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]:   files automatically.
déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]: - When used as a NixOS or nix-darwin module, set
déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]:     'home-manager.backupFileExtension'
déc. 09 20:52:35 vs-laptop hm-activate-spid[14107]:   to, for example, 'backup' and rebuild.
déc. 09 20:52:35 vs-laptop systemd[1]: home-manager-spid.service: Main process exited, code=exited, status=1/FAILURE
déc. 09 20:52:35 vs-laptop systemd[1]: home-manager-spid.service: Failed with result 'exit-code'.
déc. 09 20:52:35 vs-laptop systemd[1]: Failed to start Home Manager environment for spid.
warning: error(s) occurred while switching to the new configuration

I'm unsure of what to do with that to be honest, nor do i know what's happening.

Maintainer CC

@rycee

System information

this path will be fetched (0.02 MiB download, 0.06 MiB unpacked):
  /nix/store/m1p78gqlc0pw3sdbz3rdhklzm0g26g96-stdenv-linux
copying path '/nix/store/m1p78gqlc0pw3sdbz3rdhklzm0g26g96-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.1, NixOS, 24.11 (Vicuna), 24.11.20241203.b681065`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/w66xaybnxjf5zhxapxs3pd3zp7gxk9dw-source`
@SpidFightFR SpidFightFR added bug triage Issues or feature request that have not been triaged yet labels Dec 9, 2024
@SpidFightFR SpidFightFR reopened this Dec 23, 2024
@SpidFightFR
Copy link
Author

Home manager is apparently supposed to create a symlinked file to .gtkrc-2.0, problem is that this symlink becomes a true file, and thus home manager considers there's a conflict.

@SpidFightFR SpidFightFR changed the title bug: Setting gtk.enable = true crashes home-manager (?) bug: .gtkrc-2.0 no longer is a symlink after reboot Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants