!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

882 Members
180 Servers

Load older messages


SenderMessageTime
3 Aug 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao) btw, I did the same for bud: https://github.com/divnix/bud/blob/ed67004ac9929bb418f5eedacc50901f6787dba0/module.nix#L90-L94 04:56:26
@colemickens:matrix.orgcolemickens 🏳️‍🌈I don't know how a projects disk location could possibly be a good thing to specifically provide to what is supposed to be a reproducible hermetic environment.07:51:47
@colemickens:matrix.orgcolemickens 🏳️‍🌈What you're asking to do is specifically what Nix sets out to avoid.07:52:03
@Las:matrix.orgLas
In reply to @elonsroadster:matrix.org
Right. The reason for this is that is rather not worry about the scripts in my dotfiles being out of sync with what I have put in my nix store. I realize that this is sort of a dumb concern, and that any new dependencies that these scripts have would still need associated system updates, but it just feels a bit heavy weight to need to do a system update every time I tweak or add a new user script.
The switch-to-configuration script is hardly a "system update"
07:55:32
@Las:matrix.orgLasEven if you have an extremely complex system configuration on an underpowered machine, evaluation + switching should not take more than a minute. What I do to test e.g. mpv with a new configuration is that I have a wrapper for it that adds the necessary config files, then I rebuild just that if I want to test just that.07:56:42
@Las:matrix.orgLas Specifically, I do nix build conf#play 07:57:01
@florian:web3.foundationFlorian | W3F joined the room.12:24:52
@ncfavier:matrix.orgnf joined the room.14:02:45
4 Aug 2021
@jez:petrichor.meJez (he/him)Redacted or Malformed Event20:11:49
@jez:petrichor.meJez (he/him) I have a flake.nix with devShell as it's only output, and the derivation keeps getting rebuilt for no reason, presumably because it gets garbage collected 20:12:32
@jez:petrichor.meJez (he/him) Is there a way to create a gcroot for this devShell? 20:12:53
@jez:petrichor.meJez (he/him) Should nix build .#devShell.x86_64-linux work? 20:13:39
@jez:petrichor.meJez (he/him)* I have a `flake.nix` with `devShell` as its only output, and the derivation keeps getting rebuilt for no reason, presumably because it gets garbage collected20:24:26
@jez:petrichor.meJez (he/him)It fails with the following:20:30:07
@jez:petrichor.meJez (he/him)
❯ nix build .#devShell.x86_64-linux
error: builder for '/nix/store/4z64v9y8a6ic2ppgixg2z0d0zqnghvb5-nix-shell.drv' failed with exit code 1;
       last 4 log lines:
       > nobuildPhase
       >
       > This derivation is not meant to be built, aborting
       >
       For full logs, run 'nix log /nix/store/4z64v9y8a6ic2ppgixg2z0d0zqnghvb5-nix-shell.drv'.
20:30:14
@jul1u5:matrix.orgjul1u5 joined the room.23:08:58
@tomberek:matrix.orgtomberek Jez (he/him): can you publish your flake repo somewhere? 23:26:43
5 Aug 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈 Jez (he/him): stick an ".inputDerivation" there on the end of that ;) 04:51:38
@j-k:matrix.orgj-kIs there a nice way to build aws AMIs using flakes? I've been reading this https://github.com/nh2/nixos-ami-building but I'm not sure how to cleanly do it with flakes11:05:14
@j-k:matrix.orgj-k
ami = import "${nixpkgs}/nixos/release.nix" {
  configuration = ./my/file/configuration.nix;
};
λ nix build .#ami.amazonImage.x86_64-linux
λ ls ./result
 nix-support   nixos-amazon-image-21.11pre130979.gfedcba-x86_64-linux.vhd

is promising

11:16:44
@j-k:matrix.orgj-k ahh I can do nix build .#nixosConfigurations.HOSTNAME.config.system.build.toplevel -> nix build .#nixosConfigurations.HOSTNAME.config.system.build.amazonImage if I add the nixos/maintainers/scripts/ec2/amazon-image.nix module, not just the nixos/modules/virtualisation/amazon-image.nix 11:32:16
@j-k:matrix.orgj-k * ahh I can do nix build .#nixosConfigurations.HOSTNAME.config.system.build.toplevel -> nix build .#nixosConfigurations.HOSTNAME.config.system.build.amazonImage if I add the nixos/maintainers/scripts/ec2/amazon-image.nix module, not just the nixos/modules/virtualisation/amazon-image.nix module 11:32:32
6 Aug 2021
@starf0x7:matrix.orgjurraca joined the room.17:36:46
7 Aug 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao) changed their display name from David Arnold to David Arnold (blaggacao).17:57:32
@blaggacao:matrix.orgDavid Arnold (blaggacao) removed their profile picture.17:57:52
@blaggacao:matrix.orgDavid Arnold (blaggacao) set a profile picture.17:58:18
9 Aug 2021
@tim:stratum0.orgdadada (they/them) changed their display name from dadada to dadada (they/them).15:59:58
11 Aug 2021
@elonsroadster:matrix.orgelonsroadster changed their display name from Ivan Malison to elonsroadster.00:18:57
@elonsroadster:matrix.orgelonsroadsterIs there a way to ignore the flake.lock file of a flake that you are using as an input completely?05:20:36
@balsoft:balsoft.rubalsoft People who manage their nixos desktops with flakes: how do you handle the programs.sqlite thing? It used to be distributed together with channels, but now it isn't... 11:59:44

There are no newer messages yet.


Back to Room ListRoom Version: 6