<cole-h>
Anybody know of a way to get proper icons in GTK apps, such as lollypop? I have hicolor-icon-theme in my packages but I still see this: https://paste.rs/4wt.jpg
<cole-h>
Even `gtk.iconTheme = { name = "Hicolor"; package = pkgs.hicolor-icon-theme; };` doesn't change anything
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
mexisme_ has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<ZerataX>
is there a difference between importing something from the root config file and one a few directories down with stuff like <nixos-unstable>?
<ZerataX>
this `pkgsUnstable = import <nixos-unstable> {};` works in `home.nix` but not in `.config/nixpkgs/programs/vim/default.nix`
<ahobaka>
oof sorry for posting this twice, this matrix stuff is being weird
<ahobaka>
okay sorry this is not what's happening
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 260 seconds]
ahobaka has quit [Ping timeout: 256 seconds]
mexisme_ has joined #home-manager
ardumont has quit [Ping timeout: 246 seconds]
ardumont has joined #home-manager
ardumont has quit [Ping timeout: 260 seconds]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
mexisme_ has quit [Ping timeout: 246 seconds]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
mexisme_ has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
mexisme_ has quit [Ping timeout: 260 seconds]
<hpfr[m]>
Trying to install home manager as NixOS module on a new bare machine—I have the channel set up, but when I rebuild i get something about “attribute submoduleWith missing” in the first part of this file https://github.com/rycee/home-manager/blob/master/nixos/default.nix
<hpfr[m]>
Oof never mind, NixOS channel was on 19.09
cole-h has quit [Quit: Goodbye]
ardumont has joined #home-manager
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 246 seconds]
<rycee>
ZerataX: How doesn't it work? Do you get an error message or something?
c0c0 has quit [Ping timeout: 250 seconds]
__monty__ has joined #home-manager
mexisme_ has joined #home-manager
c0c0 has joined #home-manager
malSet has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<rycee>
cole-h: Hmm, I'm not completely certain but perhaps try `name = "hicolor";` instead. I.e., with lowecase h.
c0c0 has quit [Ping timeout: 246 seconds]
<ZerataX>
rycee: sorry about that i just wasn't thinking about in what order the config gets evaluated. it was wrong in both places.
c0c0 has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
steell has quit [Ping timeout: 260 seconds]
malSet has quit [Read error: Connection reset by peer]
steell has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
s1341 has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
cole-h has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<hpfr[m]>
Trying out gnome. Is there a way to configure it with home manager like a wm?
hmpffff has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
c0c0 has quit [Ping timeout: 256 seconds]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
c0c0 has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
hmpffff has quit [Ping timeout: 272 seconds]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
hmpffff has joined #home-manager
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<hpfr[m]>
Is this what dconf is for? And if I set something with dconf.nix, is it possible to override it in the app’s settings? Would whatever I set in dconf.nix just reapply on reboot then?
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
<rycee>
hpfr: Yeah, the dconf configuration set in HM will be set everything the generation is activated.
malSet has quit [Read error: Connection reset by peer]
<hpfr[m]>
But it’s still mutable since it’s set by a dbus command writing to dconf database
<rycee>
So if the gsettings key is changed by some Gnome program it would be overwritten at that time.
<hpfr[m]>
Ok cool
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<rycee>
Yes.
<hpfr[m]>
Another question
malSet has joined #home-manager
<hpfr[m]>
Setting qt.platformTheme to “gnome” causes Qt apps to crash on start
<rycee>
Did you do a relog?
malSet has quit [Read error: Connection reset by peer]
<hpfr[m]>
Yeah, that’s when they start crashing. I disabled it but I’ll re enable to get the error
<rycee>
Do you get an error message?
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<hpfr[m]>
rycee: when I launch KeePassXC when qt.enable is true and qt.platformTheme is “gnome” I get “No GSettings schemas are installed on the system”
<rycee>
Hmm, dunno. I haven't seen that before :-/
malSet has joined #home-manager
<hpfr[m]>
rycee: this is on i3, maybe I need to install dconf? Maybe GSettings schemas means a dconf database is necessary
<rycee>
Right. Are you using NixOS?
<hpfr[m]>
Yes
<rycee>
If so then you'll likely need `services.dbus.packages = [ pkgs.gnome3.dconf ];` in the system configuration.
<hpfr[m]>
I already have that piece
<hpfr[m]>
But it appears dconf isn’t installed so I guess that wouldn’t matter as is
<hpfr[m]>
Looks like there’s also gsettings-desktop-schemas and gsettings-qt in nixpkgs
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
<rycee>
Ok, I think I won't be able to help much :-/ I use `qt.platformTheme = "gtk";`.
<rycee>
Which seems more stable :-)
<rycee>
Perhaps in #nixos there is somebody who knows better?
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
<mmatthieu>
Hi everyone, as any of us (I think ^^), I'm stuck at home and I'm trying to run some steam games to spare some time. Is there someone that understands how to add dependancies ? For example I try to run divinity original sin and `steam-run ldd EoCApp ` returns this : https://0bin.net/paste/sbHkjwZv7yoNRhHd#3zCU+FSfONkJLNF1JowuwK6Qn7IwUW-t2f8glexLhVy
<mmatthieu>
I'm quiet stuck here, trying to add some libs in steam.override.extraPackages, or in hardware.opendl.extraPackages32 but i'm still unable to run some games. If anyone can help me, it would be nice. Thanks !
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
energizer has joined #home-manager
<energizer>
i enabled services.dunst and that worked. i guess it installed dunst automatically, but am i supposed to add dunst to my packages anyway?
malSet has quit [Read error: Connection reset by peer]
<rycee>
energizer: No, that should not be necessary.
<energizer>
i would have guessed no but without installing it i don't get the man page
<cole-h>
In regards to my issue with icons in gnome-based apps: I had to set `XDG_DATA_DIRS` to `/usr/share` (where I had icon themes installed).
<cole-h>
Even though I had `gtk.enable = true;` and `gtk.iconTheme = { name = "Adwaita"; package = pkgs.gnome3.adwaita-icon-theme; };`, it was still necessary to set XDG_DATA_DIRS
<rycee>
energizer: Ah, right. In that case you'll need the package :-/ I guess dunst should really have a doc output so that it could be installed separately from the binary.
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<rycee>
energizer: Should be sorted now.
<energizer>
rycee: can confirm
<energizer>
thank you
<rycee>
np
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<cole-h>
rycee: Would it make sense to add `~/.nix-profile/share` to `XDG_DATA_DIRS` somewhere in hm?
<cole-h>
(I believe) this would have solved my GTK-apps-having-no-icons issue.
<rycee>
cole-h: If it isn't already in your `XDG_DATA_DIRS` then something is wrong somewhere. The `share` directory in all possible profile directories should be inside `XDG_DATA_DIRS`.
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<cole-h>
I have `xdg.enable = true;` so I don't know why it wouldn't be there.
<rycee>
It should be set by the `set-environment` file that NixOS generates.
<rycee>
HM doesn't touch that variable at all. It's NixOS's responsibility to set it. Typically through `/etc/profile`, which sources the `set-environment` script.
<rycee>
Ah, doesn't `~/.nix-profile/etc/profile.d/nix.sh` set it?
<energizer>
rycee: looks like the dunst executable also is missing from the home-manager package
<energizer>
if i install dunst separately it appears
<rycee>
energizer: Yeah, that is intentional. Why would you need the dunst binary?
<energizer>
ah ok
hmpffff has quit [Quit: nchrrrr…]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
<energizer>
rycee: it makes some sense to keep them separate. as for why,
malSet has quit [Read error: Connection reset by peer]
<energizer>
<energizer> i dont want to set a keyboard shortcut for looking at history, because i'll never remember what it is, but is there another way i can show previous notifications, like `dunst show-recent-notifications -n=5` or something
<energizer>
<nikos> Not yet, there's dunstctl which will allow that, but it's still in the works and hasn't been merged
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
hmpffff has joined #home-manager
<rycee>
energizer: Nice. Yes, we'll need to reconsider once dunstctl is available.
malSet has quit [Read error: Connection reset by peer]
<cole-h>
rycee: Yep, that PR is nice. Do you know if macOS benefits from XDG_DATA_DIRS as well?
<rycee>
cole-h: Nope, I know nothing about macOS :-)
<cole-h>
rycee: If it does, the setting could just be renamed to `isNixOS`, `mkDefault true`d, and add it to all new `home.nix`s in the future with a little note
malSet has quit [Read error: Connection reset by peer]
<rycee>
Except that whenever I make a mistake jwiegley or kalbasit creates an issue :-)
<cole-h>
:P
<rycee>
cole-h: Yeah, but presumably this option could be used to add custom configuration for, e.g., centos or macos or whatever.
<rycee>
Since these are all set up slightly differently it would be nice to have the flexibility in HM to detect and cope with the target system.
<cole-h>
That's true; something I didn't think about was actually having this be extensible.
<cole-h>
I don't like that `[ -f /etc/NIXOS ]` check though. I think it should just be merged into one file and commented out by default.
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<cole-h>
rycee: Do you know if there is a way to have subsets and supersets in the Nix "type" system?
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
<rycee>
energizer: Seems you can choose one of NumixSolarizedDarkBlue, NumixSolarizedDarkGreen, NumixSolarizedLightBlue, NumixSolarizedLightGreen, NumixStandard
<rycee>
cole-h: Could you explain what you mean by subset and superset in this case?
<cole-h>
So maybe we could have something like `home.target... = "linux";` for general-Linux options, but also, like you said, "centos" options for centos-specific tweaks
<cole-h>
This way, whenever a new targetOS is added, one wouldn't need to add `targetOS == "centos"` everywhere there is already a `targetOS == "linux"`
<cole-h>
Only for the centos-specific options
<energizer>
rycee: ah perfect. thanks!
<cole-h>
Basically: "linux" defines some global options for all Linux-derived systems. "centos" inherits these global options, but also defines some centos-specific options that only make sense on centos
<rycee>
cole-h: Yeah, it would mostly likely be done by having a function `isLinux` that answers yes for "centos" and "linux" :-)
<cole-h>
:P Figured
<rycee>
One could make it more general by putting information about the different targets in some attribute set `targets = { linux = { fhs = true; …; }; centos = { like = "linux"; }; nixos = { … }; macos = { …} }` or whatever and have `isLinux x` answer yes if `x == "linux" || `targets.${x}.like == "linux"`.
<rycee>
* One could make it more general by putting information about the different targets in some attribute set `targets = { linux = { fhs = true; …; }; centos = { like = "linux"; }; nixos = { … }; macos = { …} }` or whatever and have `isLinux x` answer yes if `x == "linux" || targets.${x}.like == "linux"`.
<cole-h>
Would `nixos.like = "linux";` though? I don't think it's accurate to say it's NOT "like" Linux, but...
<rycee>
Yeah, it would not linux like.
<rycee>
In any case, haven't thought much about it. Right now nixos and linux are sufficient :-)