!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

333 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
16 Jun 2024
@k900:0upti.meK900Unless10:26:36
@k900:0upti.meK900Unless we do something really cursed 10:26:42
@andreas_dev:matrix.organdreas_dev
In reply to @k900:0upti.me
Unless we do something really cursed
Now I'm intrigued..
10:29:03
@k900:0upti.meK900We can copy the shortcuts from a systemd user service10:29:21
@k900:0upti.meK900Instead of the activation script10:29:28
@k900:0upti.meK900Then it'll inherit the user's XDG_DATA_DIRS10:29:35
@k900:0upti.meK900And we can chmod /usr/share/applications to your user10:30:05
@k900:0upti.meK900So it actually works10:30:09
@k900:0upti.meK900Because the setup is effectively single user anyway10:30:14
@andreas_dev:matrix.organdreas_devHm, that does seem a little cursed, yeah. Is there no way of using the current active profile of the home manager generation and readlink that to the shortcut?10:31:14
@andreas_dev:matrix.organdreas_dev
In reply to @k900:0upti.me
And we can chmod /usr/share/applications to your user
From what I've seen in /usr/share/applications, the symlinks there are owned by the root user instead of my current user
10:32:03
@k900:0upti.meK900Yes, but we can change that10:32:13
@k900:0upti.meK900
In reply to @andreas_dev:matrix.org
Hm, that does seem a little cursed, yeah. Is there no way of using the current active profile of the home manager generation and readlink that to the shortcut?
Not from the activation script
10:32:25
@andreas_dev:matrix.organdreas_dev
In reply to @k900:0upti.me
Not from the activation script
Oh right, in the activation script we won't have an active HM generation
10:33:03
@andreas_dev:matrix.organdreas_devWould it be possible to write a HM module for NixOS WSL which copies/links the shortcuts of the active generation to /usr/share/applications, and re-calls the activation script of NixOS WSL?10:35:16
@andreas_dev:matrix.organdreas_dev* Would it be possible to write a HM module for NixOS WSL which copies/links the shortcuts of the active generation to /usr/share/applications, and re-calls the activation script of NixOS WSL on a rebuild?10:35:47
@k900:0upti.meK900You don't need anything on the NixOS side, technically10:36:19
@k900:0upti.meK900You could just have HM copy the files10:36:24
@k900:0upti.meK900And WSL should pick them up10:36:28
@k900:0upti.meK900But it's kinda weird10:36:32
@andreas_dev:matrix.organdreas_dev
In reply to @k900:0upti.me
You could just have HM copy the files
You mean manually, right?
10:37:35
@k900:0upti.meK900You could also do that with an activation script10:37:46
@andreas_dev:matrix.organdreas_devI was thinking of a HM module since the 'defect' occurs when using home-manager, so ideally we would use an activation script there to copy/link the shortcuts there, right? That way we can keep a clear separation of concerns for copying of the system/user shortcuts and the home-manager/user shortcuts and we wouldn't have to deal with copying them from the systemd user service I'm not that familiar with the way these things work, but would that be possible? And what would the potential downsides be in your opinion?10:41:12
17 Jun 2024
@goolegoole:mozilla.orggoolegoole joined the room.02:05:58
@ixolate:matrix.orgixolate joined the room.12:49:57
@ixolate:matrix.orgixolate

Hello. Is there a relatively simple way I can build the tarball for arch-64?
The first command on the github docs build instructions page seemed like it could work, but ended with the following error.

a 'x86_64-linux' with features {} is required ... but I am a 'aarch64-linux' ...

Is it possible to change the #nixosConfigurations.default... in the url to something like #nixosConfigurations.arch64... or am I barking up the wrong tree?

16:06:46
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/blob/main/flake.nix#L5816:07:57
@k900:0upti.meK900Just change this line16:07:59
@k900:0upti.meK900To aarch64-linux16:08:01
@k900:0upti.meK900And it should (?) build16:08:06

Show newer messages


Back to Room ListRoom Version: 9