9 May 2024 |
mfed3 | My use case is i want to decide when to bump the flag to a version i want and then push that out to my machines and they just check the flake file and update to that version overnight, not updating past that | 21:21:48 |
@aidalgol:matrix.org | Sounds like you want no flags, then. | 21:30:14 |
samasaur | that is correct, you want no flags | 22:45:56 |
mfed3 | Perfect thanks | 23:46:49 |
10 May 2024 |
| @isabel:isabelroses.com changed their profile picture. | 13:15:04 |
| EsperLily [she/her] changed their profile picture. | 18:57:03 |
| @ayyz12:matrix.org joined the room. | 22:40:11 |
11 May 2024 |
mfed3 | I did a bit of refactoring of my system and i switched my config over to
outputs = { self, nixpkgs, ... }@inputs: {
nixosConfigurations = {
host1 = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [ ./hosts/host1 ];
};
instead of
modules = [ ./hosts/host1/configuration.nix ] ;
| 01:53:04 |
mfed3 | I renamed the file from configuration.nix to default.nix but when I try to build the flake it complains the file doesn't exist
error: getting status of '/nix/store/mgakxblir0hipxmdd41xrspq7xzd4z1s-source/hosts/fed-gc/default.nix': No such file or directory
it's translating it properly from a folder to looking for default.nix why would it not think it's there?
| 01:54:20 |
mfed3 | * I renamed the file from configuration.nix to default.nix but when I try to build the flake it complains the file doesn't exist
error: getting status of '/nix/store/mgakxblir0hipxmdd41xrspq7xzd4z1s-source/hosts/host1/default.nix': No such file or directory
it's translating it properly from a folder to looking for default.nix why would it not think it's there?
| 01:54:32 |
mfed3 | Ugh nevermind figured it out, this flakes thing is so weird it doesn't know files exist unless you stage them or commit them | 02:00:14 |
mfed3 | Can't just refactor whatever you want and expect it to pick up the files you changed | 02:00:48 |
samasaur | yeah if your flake is a git repository then all files you want to use must be tracked by git | 03:10:59 |
| skippy changed their display name from skip to skippy. | 03:44:06 |
@abmantis:abcosta.com | indeed, if I run nix-collect-garbage, nix develop will download stuff again, even with the --profile flag (and I've checked that the symlink is created) | 22:33:51 |
@abmantis:abcosta.com | copying path '/nix/store/cbv4vws08zb992ncmm05z7ax0hzvcgxy-source' from 'https://cache.nixos.org'...
this path will be fetched (0.10 MiB download, 0.10 MiB unpacked):
/nix/store/mr8v83npjv2na7w6q922dcjxxfyd58a0-bash-interactive-5.2p26-man
copying path '/nix/store/mr8v83npjv2na7w6q922dcjxxfyd58a0-bash-interactive-5.2p26-man' from 'https://cache.nixos.org'...
That is what it prints with --verbose
| 22:34:56 |
@abmantis:abcosta.com | https://github.com/NixOS/nix/issues/4250 | 23:05:48 |
@abmantis:abcosta.com | meh, bug :( | 23:05:51 |
12 May 2024 |
| @verlannow:matrix.org joined the room. | 07:22:03 |
13 May 2024 |
| @conr:mozilla.org joined the room. | 01:51:07 |
@conr:mozilla.org | Is this ok to run nix flake update && sudo nixos-rebuild switch --flake .#device --upgrade ~once a month? | 01:53:57 |
@aidalgol:matrix.org | Depends on what your system is for. You may want certain security fixes sooner than that. | 02:36:00 |
@aidalgol:matrix.org | BTW, I'm pretty sure the --upgrade flag to nixos-rebuild does nothing when using a flake. | 02:36:36 |
@conr:mozilla.org | aidalgol: Homeserver... plex, samba, nothing crazy. This is my first time using Nixos. | 02:48:27 |
@aidalgol:matrix.org | Sounds lower-risk then. | 02:49:17 |
@conr:mozilla.org | * aidalgol: Homeserver... plex, samba, nothing crazy. This is my first time using Nixos. I just run it on a low power mini-atx build, 24/7. | 02:49:19 |
@aidalgol:matrix.org | I'd say keep an eye on #security:nixos.org for anything that affects any external-facing services or the OS itself, and act accordingly. | 02:49:59 |
@conr:mozilla.org | In reply to @aidalgol:matrix.org BTW, I'm pretty sure the --upgrade flag to nixos-rebuild does nothing when using a flake. How do I upgrade the nixos system files then? Or does nix flake update do that for me? | 02:51:15 |
@aidalgol:matrix.org | That's what nix flake update does, yeah. | 02:51:29 |
@aidalgol:matrix.org | You should keep your config under version control. | 02:53:08 |