8 May 2024 |
Charles | Make sure you didn't typo your paths in your nix code | 02:00:18 |
Charles | Maybe try running git status to double check that it isn't a git repo | 02:01:09 |
mfed3 | k I committed everything in there now, reran, same error | 02:03:08 |
Charles | In reply to @charles:computer.surgery Make sure you didn't typo your paths in your nix code Try this | 02:03:56 |
Charles | The error looks like you wrote ./foo.nix but actually have ./bar.nix instead for example | 02:04:51 |
Charles | That or it's not getting copied into the store, which would be the git thing | 02:05:15 |
mfed3 | For modules, relative path to a folder from root of a flake would be ./hosts/file.nix not hosts/file.nix and no quotes around them in modules correct | 02:06:00 |
mfed3 | Omg I'm a fuckin idiot, fatfingered a ../ in one of the imports 3 deep in one of the configs | 02:37:36 |
mfed3 | Man the error messages are so useless lol | 02:37:57 |
mfed3 | Thanks charles you were right after all :D | 02:39:01 |
mfed3 | Works, system officially flakified | 02:44:24 |
tomberek | That did not make a symlink? | 02:57:55 |
| checooh joined the room. | 11:56:37 |
| aszeszo joined the room. | 18:31:41 |
@abmantis:abcosta.com | Download image.png | 21:28:47 |
@abmantis:abcosta.com | it does, but still I just ran nix develop --profile ./nix-profile /home/acosta/dev/thirdparty/nix-environments#home-assistant and it fetched stuff before opening the environment | 21:29:24 |
9 May 2024 |
| @theutz:matrix.org left the room. | 08:52:16 |
mfed3 | Hey guys I have a question on autoupgrade, what does this actually do:
system.autoUpgrade = {
enable = true;
allowReboot = true;
flake = inputs.self.outPath;
flags = [ "--update-input" "nixpkgs" "--print-build-logs" ];
};
| 12:24:14 |
mfed3 | Is that making the system run a nixos-rebuild switch automatically at 4:40 and build what is in the flake.lock | 12:25:09 |
mfed3 | Or is that actually doing a nix flake update then building it | 12:25:43 |
| remi-gelinas joined the room. | 13:25:37 |
| Charles Hamilton joined the room. | 19:19:05 |
@aidalgol:matrix.org | In reply to @mfed3:matrix.org
Hey guys I have a question on autoupgrade, what does this actually do:
system.autoUpgrade = {
enable = true;
allowReboot = true;
flake = inputs.self.outPath;
flags = [ "--update-input" "nixpkgs" "--print-build-logs" ];
};
Going by the description of system.autoUpgrade.flags , this will update the nixpkgs input to your system config flake.
If you are using flakes and use a local repo you can add [ "--update-input" "nixpkgs" "--commit-lock-file" ] to update nixpkgs.
| 20:40:24 |
@aidalgol:matrix.org | You could also point system.autoUpgrade.flake to a remote flake (e.g. a git repo), and something else keeps that flake up to date, and the nixos-rebuild systemd job on your server will just apply the flake as-is. | 20:42:16 |
mfed3 | It isn't very clear because I saw peoples usage on other websites saying they run it this way, and it will bump the lock file, meaning it blows past the lock file and changes the one on your local | 21:15:48 |
mfed3 | With the flag you mentioned it will not only blow past your lock file it will update and commit it | 21:16:35 |
mfed3 | So I guess to keep it in line with the flake you want no flags? | 21:17:32 |
| vzxplnhqr joined the room. | 21:17:54 |
vzxplnhqr | Hi flake people. I am trying to follow the "make menuconfig" section of https://nixos.wiki/wiki/Linux_kernel but I do not know how to translate it to the world of flakes:
$ nix-shell -E 'with import <nixpkgs> {}; linux.overrideAttrs (o: {nativeBuildInputs=o.nativeBuildInputs ++ [ pkg-config ncurses ];})'
[nix-shell] $ unpackPhase && cd linux-*
[nix-shell] $ patchPhase
[nix-shell] $ make menuconfig
| 21:19:15 |
vzxplnhqr | (because without figuring this out, I get errors pertaining to ncurses not existing in the build and so on) | 21:20:47 |