Skip to content

Instantly share code, notes, and snippets.

@maxdevjs
Last active June 13, 2021 06:05
Show Gist options
  • Save maxdevjs/a4d8355ac50e0797f86fb26de5220ff7 to your computer and use it in GitHub Desktop.
Save maxdevjs/a4d8355ac50e0797f86fb26de5220ff7 to your computer and use it in GitHub Desktop.
NixOS - error: getting attributes of path... : No such file or directorych file or directory

I started to consistently use NixOS and then plasma5+i3-xsession. In the last few weeks it froze three times, forcing to hard reboot each time.

Not sure it'd happen only with plasma5+i3-xsession, it just never happened with kde/plasma and with stand-alone i3 session.

Note: I added the unstable channel for a few programs, but the freezing already happened before it.

I managed to fix(?) several error: getting attributes of path:

$ sudo nixos-rebuild dry-activate

error: getting attributes of path '/nix/store/4cg982d9hfyn7hq9s1jn9b6gq9xnlb7n-plasma5+i3-xsession': No such file or directory

$ sudo nix-store --option binary-caches '' --repair-path /nix/store/4cg982d9hfyn7hq9s1jn9b6gq9xnlb7n-plasma5+i3-xsession --debug

$ sudo nixos-rebuild dry-activate

error: getting attributes of path '/nix/store/g411vbz0b31xxmzyw1iw0hmplypblval-desktops': No such file or directory

$ sudo nix-store --option binary-caches '' --repair-path /nix/store/g411vbz0b31xxmzyw1iw0hmplypblval-desktops --debug

$ sudo nixos-rebuild dry-activate

error: getting attributes of path '/nix/store/q1i4prv2923xdgvpdddjvff56ai1ng9r-pam-environment': No such file or directory

$ sudo nix-store --option binary-caches '' --repair-path /nix/store/q1i4prv2923xdgvpdddjvff56ai1ng9r-pam-environment --debug

$ sudo nixos-rebuild dry-activate

error: getting attributes of path '/nix/store/64ah0285d0wjcn4xib9294vad4gszm8n-zathura-with-plugins-0.4.7': No such file or directory

$ sudo nix-store --option binary-caches '' --repair-path /nix/store/64ah0285d0wjcn4xib9294vad4gszm8n-zathura-with-plugins-0.4.7 --debug

$ sudo nixos-rebuild dry-activate

// seems okay, but...

Probably this was not the right way and something is broken now. When I switch the configuration:

  • it probably fails completely (as I find only one new generation in boot menu, not several)

  • it spits me to a tty (dry-activate is the only thing that does not do it)

  • if I reboot with the last generation, I only get a tty

  • I can "normally" boot in a previous generation

  • and I am stuck in this broken loop

nixos-rebuild dry-activate output:

$ sudo nixos-rebuild dry-activate
building Nix...
building the system configuration...
would stop the following units: ModemManager.service, NetworkManager.service, alsa-store.service, audit.service, bluetooth.service, docker.service, docker.socket, kmod-static-nodes.service, lvm2-pvscan@254:0.service, network-local-commands.service, network-setup.service, nscd.service, resolvconf.service, rtkit-daemon.service, samba-nmbd.service, samba-smbd.service, samba-winbindd.service, systemd-backlight@backlight:intel_backlight.service, systemd-journal-flush.service, systemd-journald-audit.socket, systemd-journald-dev-log.socket, systemd-journald.service, systemd-journald.socket, systemd-logind.service, systemd-modules-load.service, systemd-random-seed.service, systemd-remount-fs.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-tmpfiles-clean.timer, systemd-tmpfiles-setup-dev.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd.service, systemd-update-utmp.service, systemd-user-sessions.service, tlp.service, udisks2.se
rvice, upower.service, user-runtime-dir@1000.service, user-runtime-dir@175.service, user@1000.service, user@175.service, wpa_supplicant.service
would NOT stop the following changed units: display-manager.service, getty@tty1.service, systemd-fsck@dev-disk-by\x2duuid-4087\x2dF08B.service, systemd-fsck@dev-disk-by\x2duuid-64974e29\x2dd371\x2d4045\x2d93bd\x2dbe66df10ddfe.service, systemd-tmpfiles-setup.service
would restart systemd
would restart the following units: polkit.service
would start the following units: ModemManager.service, NetworkManager.service, alsa-store.service, audit.service, bluetooth.service, docker.socket, kmod-static-nodes.service, lvm2-pvscan@254:0.service, network-local-commands.service, network-setup.service, nscd.service, resolvconf.service, rtkit-daemon.service, samba-nmbd.service, samba-smbd.service, samba-winbindd.service, systemd-backlight@backlight:intel_backlight.service, systemd-journal-flush.service, systemd-journald-audit.socket, systemd-journald-dev-log.socket, systemd-journald.socket, systemd-logind.service, systemd-modules-load.service, systemd-random-seed.service, systemd-remount-fs.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-tmpfiles-clean.timer, systemd-tmpfiles-setup-dev.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-update-utmp.service, systemd-user-sessions.service, tlp.service, udisks2.service, upower.service, user-runtime-dir@1000.service, user-runtime-dir@175.service, user@1000.service, user@175.service, wpa_supplicant.service
would reload the following units: dbus.service, dev-hugepages.mount, dev-mqueue.mount, firewall.service, sys-fs-fuse-connections.mount, sys-kernel-debug.mount

no clue...?

$ sudo nix-store --verify --check-contents                               
reading the Nix store...
checking path existence...
checking hashes...
path '/nix/store/079s73i324lbnnwv5n2mfjfjycdihf3l-unit-systemd-modules-load.service' was modified! expected hash 'sha256:1yz9bbpa93w29b8gvc2nkxv0iz7vph3gzzkxp6zh5fq3b7863qrf', got 'sha256:0anlac9p2ca2wxflbsxd35pmvxcssg3k7gp891x18pw934jwzgm8'
path '/nix/store/2ywjqvbkpvi3wzj6lqj9kj975ix3kscy-unit-post-resume.service' was modified! expected hash 'sha256:0vm3850hgs76d6wal5hiirxmysr4n3gpqvyqmam9ravg8x1y5rck', got 'sha256:0w052ch8nw0nlk8yiw2f6xygl93y3k8flymgvdd5h5lk0m67n53g'
path '/nix/store/3ihjp8sxnpdg8z2136y7ggjhxvvrsn1s-unit-systemd-journald.servic
e' was modified! expected hash 'sha256:1mh18gwz8z6629ri444hr164vqw23f0v3jabahghl0w9fwxb62wm', got 'sha256:1k8cw7nhwri7jhhl53ziy2qwk9zvidbwa1ymqv3jp5blys9b6clj'
path '/nix/store/3lvx702k5dizyh1vald9glzhz70g7a6w-xserver.conf' was modified! expected hash 'sha256:1ah07218ljxh7ir9i8cs1yjfpibf1whvdsdyscxni2jx79smjgwb', got 'sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p'
path '/nix/store/4zav96mbkkqhxfwka4rdky278ygf7s3b-unit-script-docker-prune-start' was modified! expected hash 'sha256:1ykrpsq8kbkh260sl8rf9w50sj8s7sspv89l265innbwfxgbfzx1', got 'sha256:0q1v6pfikpn7gf19x4svdq6j0gwsibhzsmgr2q49arzjl2qmhk2k'
path '/nix/store/542iil9xh49dz378lvc26wd1xi4z3194-unit-systemd-nspawn-.service' was modified! expected hash 'sha256:0vsckw7l9nkn807af1skfx8pchjcklwy1w4ppg0yrrlvv452dr4y', got 'sha256:14jj287fvk56bmnym2a1s4z50bs10555jn2khincs1kar662vlm2'
path '/nix/store/5pa3ccwp8a87c327f7f5wwdi3qmmbyzv-unit-nixos-activation.service' was modified! expected hash 'sha256:1aw83hgz2vdmmsh8vwdrhda4nqy9gni03gm70csqdagfb8i991n7', got 'sha256:1g1kd5dlkf58l22as800jnb5x1l51jwind4d6chvdsrh364syqss'
path '/nix/store/6j2ydxbmm3m746f2a2rzwdvj2zybk4vq-unit-tlp.service' was modified! expected hash 'sha256:1qi43n1kj1y260ddg27x0fh854pzj05p62szclp9s3fi8gl555x3', got 'sha256:1d5z2fj405wg3f4g1rc3q09j98i9gidk9mg5ccc1rawm3wqpi7cl'
path '/nix/store/871v86pgpmmnhd485gl56w558h3yx4xn-unit-systemd-udevd.service' was modified! expected hash 'sha256:0pd4glv3q4c1zznzaq3l59mnryswd5qzzcrnh5nhk8rdc2i3ks11', got 'sha256:1n2vgdkl5ca5w8rkgwbvhjmp7grbay0xz7iwyd6qky94w1aws4k2'
path '/nix/store/8cdvl8q4m8hdw95lz0586f5kryibbd83-unit-container-.service' was modified! expected hash 'sha256:1whjf34l03sqmw2drbdhxynq2gb3cfl32padllq7qd8k9
7iz63j7', got 'sha256:13gp00cr6im4h36rjvpbvcxqq5p0sjlzgi538dgnx88zdnzbzz13'
path '/nix/store/93rrnvjalf36dnb713h2riyh735gkmrn-unit-user-runtime-dir-.service' was modified! expected hash 'sha256:1fsqx2zskq4l139aqspsc3gr8w7jl4va0ykk4qcnk58csm0xz00j', got 'sha256:0b05lf3jcwibc5qf8n3d8445c0zkv4k2gmd2ipb33klq9lvs08vv'
path '/nix/store/9ds0waqagwvx2kf1rg77sklzgjh41csz-unit-systemd-sysctl.service' was modified! expected hash 'sha256:00br6ky851c6hf47w7c5g1jjyl557fb3id9p3dgasy7hg35fi8l5', got 'sha256:1g7yn5gk9rdgz1z9nigd8vblnz6yazpqgv31jn2659yd5i0a739n'
path '/nix/store/avrk2idpj7hcx0pxc2xji8axyak5q9bq-unit-systemd-user-sessions.service' was modified! expected hash 'sha256:01zmm2pb574fkh03vd1zzfbf8xskgrzcvihl62895dnvknxf8mc4', got 'sha256:10h1jgin1yarbnckykp52j42ddla435w0gxw41pn87dvg775zjnz'
path '/nix/store/bnpkxgj2kx4c2v2fnms2rwgxnni2mfwf-unit-samba-nmbd.service' was modified! expected hash 'sha256:0wman3z2nd31jmw30bfllmc7cjk71if5kvfjk3f687w3qzwpzbin', got 'sha256:07npdcg89fy8zp4macvhwbw1kbx67qrqix893rrl74s30csrcn0y'
path '/nix/store/bwa4hwlbdjg7i6my14jan9qb0pw9kf3i-unit-script-nixos-activation-start' was modified! expected hash 'sha256:0cpdv19kxwajkivdi5j9vx2x8230byy1iwmp30igdwj09c7049h4', got 'sha256:139jmmqzpyfls4f0bkdfmhrwd9vx4wbvcdrv5qqh9y588
wbpcmsy'
path '/nix/store/bwvqm85hdwclp8b9nz10psqmn7fd6a05-unit-docker-prune.service' was modified! expected hash 'sha256:10vbliqhh44jxjyswfg74g7y1flhic2gc3qa4m10l54zf3lvznfm', got 'sha256:1lljxi22anj0cvl77ylpqj22h0ihp9krk1lj91ch7y3vz8gih23f'
path '/nix/store/cibnlfjfckhfzjc06918y2378ynygawd-unit-resolvconf.service' was modified! expected hash 'sha256:0km85j58f6bksayd7vh6hkn1l6f23bx6612a71764simj6dxwl8g', got 'sha256:0xmw76mivsg29a4d2iwjmz2nrhc8pfg32iff2lcfr59ym91pd566'
path '/nix/store/d3vpzkar0w9dh9vkwpnvp06c754is61x-unit-script-container_-start' was modified! expected hash 'sha256:1kxgasmy9xma5rvdk4h5szil0zijjwlfydxaq0pwfg0cfh98xlbl', got 'sha256:1wflsa96myiy7gbj1hs12ipnc9fm1hfg4lnh5wpk2glpwykwc0rh'
path '/nix/store/dffz6jma5d3043r1vn79mbbhi7jqin2p-unit-systemd-timesyncd.service' was modified! expected hash 'sha256:15z4pbdnmfdadn596zans8p1vgi32fcgpa94wpabff8b41w729x7', got 'sha256:09mjkqqwxx9xpdhvq18dp882q0xl06fssm98bxvzc17zv1lsbwny'
path '/nix/store/f15186b4ryphj8a2jbqwl5ax6i7xwrgj-unit-tlp-sleep.service' was modified! expected hash 'sha256:1kfr0pzx5grcvgkp77k5xybhc02qf3wdgzxi9hhrp7qgxrngg2h5', got 'sha256:14c9a834yv051hdpx2xh6k4j6i355vsvrywz2sz359zdbhq2ghc5'
path '/nix/store/gwz5q8cci9rrqjrfv5mym9gkymlfkbis-unit-systemd-remount-fs.service' was modified! expected hash 'sha256:1l83ki8q0lpri1f3bsb41br8g2lslxb32dfzn54mbzh18dffpkqc', got 'sha256:0fwag66594vy5r1szblsda03danr1zy1q84xvhs7vwzrwzgk6b1c'
path '/nix/store/h9pf5p1b9dmzvk68wv4mdv3jwjfkrz3p-unit-systemd-logind.service' was modified! expected hash 'sha256:0bmhl8ydmh1r5blkssss4amam1wls5bx9lhmpc4rpidqjisd8jp4', got 'sha256:0gjzkvc2s1hi0dmg8qllfr7hswmqcgnqzgzqqqfx0w6chnf0wf58'
path '/nix/store/in5rxz9qrr69qjml97yh9l2nx242rf9j-unit-systemd-timedated.service' was modified! expected hash 'sha256:11y8fqj6mrlf4g5zaf510prw8vv2ndnmvvm1gyrsz5sgy13rzjhy', got 'sha256:071afivzyhw06hzr3k002jjv2zvlmkkgp5mx89si8bwn6xlb7wmb'
path '/nix/store/jr0fkdqzpr94mb8fxvsaqf6yc425vbsl-unit-prepare-kexec.service' was modified! expected hash 'sha256:0y88kqyqcgi2zg5czsc72aj1vv7ay0r3g4cly2af9pli19nmvpqy', got 'sha256:1pwy4ncjsl7l8hn8kkid4rd1bxrjgfgixv8qmkqa7nmaxm96c8ia'
path '/nix/store/jygfrfr232mwyayhgdzglhv8a0qx0i56-unit-user-.service' was modified! expected hash 'sha256:0zz758ra3npvjjiawxlqqzdrcvl85mr74wszw52pbyjszw05gjvn', got 'sha256:0azywixmfd044gdrgrasfbhvdqij2v0bwywxxarhblv5aah7mmgf'
path '/nix/store/jynjghx2xw0yybi38zgmmghq71lsnx7z-unit-systemd-udev-settle.service' was modified! expected hash 'sha256:10gfqbpkq7hp7rzlsnc9vs8h8sy34r828c7m14bna1d1rixgiz5j', got 'sha256:06ai7wz9ma7g7lvrr7ly7apgdyrd0bck5ahsxx3absrzz7vl19gf'
path '/nix/store/kxgr2hjbf91ik91pg6i61x6rqiyqd8fl-unit-serial-getty-.service' was modified! expected hash 'sha256:0kwy3n0fmx01rix0wwqpxikknwldiqxbn311zf1s2agi31hzj9lq', got 'sha256:0zw17vmc394f77dg5f8jclpwkhcyn9i0jxc44ajnpvxa3ncv2apx'
path '/nix/store/lj4g8m434pvr4jjxs8mn13dhj495wyx5-unit-nscd.service' was modified! expected hash 'sha256:1fi7ldnnsb0c2wzs9pxyg092dyqn14vhbb4w3ad6zx380n2rc4g1', got 'sha256:0ih7xa4lxbcv3kf3dhx924dgnbnj2szpj7y5y61wplx9fkjmd0b8'
path '/nix/store/m58awivhadk8yb4497gzf63mcia6pkbk-unit-systemd-importd.service' was modified! expected hash 'sha256:0xjqyvfh1a2839a2sl9qns5dinv4lv00a11g4kkg6a5awi727qb3', got 'sha256:1g0d48rkgzpdb0ldbw51syn3379pz59qczij1l9954anzvm2qp82'
path '/nix/store/mcs6hjxfysdfhfn9d0wwnvrh8cqpyh4g-xserver-wrapper' was modified! expected hash 'sha256:1kswz9kyr4ghjcivl8gkhhg1kzbl0883p4jjzld47in8z427jz79', got 'sha256:146m62fh059g7arnrjh6a7yh4q879r36fsm4a5c4dbd6ja2hpq1l'
path '/nix/store/n9gad2qiyimnbfgqvh1ifsm1pz2zkv9a-unit-systemd-update-utmp.service' was modified! expected hash 'sha256:0hhdywyw1q5y30929qlr39d8v7440ccppi72ygcaqlggihvqz045', got 'sha256:060z995mpm3vm56n1wa8xr2m13mjc30113y8lx8qxkmi05y0b5qv'
path '/nix/store/nfqsmyx7bmr8hmqrkgb87gf1hlg66780-unit-pre-sleep.service' was modified! expected hash 'sha256:0z6mp09qnxrsd4nn50mf2943nh3dr43l8khiydnmi042wgnh0r3y', got 'sha256:0kkfvg981zbrmm38m756793j3fkqama67zykg47larm4bfmk2ax7'
path '/nix/store/pm726cn3ybp13wzb6ys9ryvw8fcarq0w-unit-systemd-journal-flush.service' was modified! expected hash 'sha256:0s1gx1l5skxpiqdg6klsyxr7k6x4w1x6zp6hpxpaz26sdi4jzzrh', got 'sha256:19sr55iys9kmch6jwszl7shvgbfafsd80w71cxjbvlnih1nc7783'
path '/nix/store/rrx9l0gz789qqcrfvl8h11lh5g46xlhp-unit-systemd-random-seed.service' was modified! expected hash 'sha256:0h8k8665fg62lyw74xf72mq5v74qmnmn52idgyy50xblypbs506x', got 'sha256:1pnv5jkkszc9dx4fcbqidkm6jbrwznfglkp112sq7b0d4jshxyb6'
path '/nix/store/w3bdf8y445g692zn44c57jzmd5m07phs-unit-obex.service' was modified! expected hash 'sha256:0dmxxlgmk8b02a0piv4852ipl7v9n9883zwlr42vl8s642sb70cm', got 'sha256:0mrzssf9yjr4vk6rzz0snmywl3jmwdl2ckvgqqdjnmrcw7wdpb5i'
path '/nix/store/w5kkhwf6kqhx1id2rslhjrsm5fxpqqv2-unit-save-hwclock.service' was modified! expected hash 'sha256:0r96xyshhx727ixllkmkna7di6imr7647i104fp2bz7ci7w82kyv', got 'sha256:08hi0daw92i3a1wlfv57frqilzb2yamwzzd0pllgrrhhsnp5297b'
path '/nix/store/wgpchs6jgxylip28pa7zli9qx7arp6v9-unit-samba-smbd.service' was modified! expected hash 'sha256:1akr1qia1xql7ls3wq0h2izlgxglrd39dfyn7az9q2pl3sijgqbi', got 'sha256:14c56ffxp40gr8wib9jrv945z65hrsaj3zqbm82xvvvhvcpk6dfd'
path '/nix/store/wiy193n1lxws57c2fah8z60jgb1mq34j-unit-samba-winbindd.service' was modified! expected hash 'sha256:0508gh3dhpqz3kvijr6q4z5ha03aas03dxbb8fj4sfsmym6mkw39', got 'sha256:044v9mjqbvy5hsnzx5p3pxhbw10i7nwpwv35xa27rlpglv71mvpx'
path '/nix/store/x6f54jidz89qblm50x9h51zb24zpr08x-xsession-wrapper' was modified! expected hash 'sha256:0jk1snfjxjms0jf5wbq5nb362w5pw681kf4jy7c3zw11fnj43dw9', got 'sha256:146m62fh059g7arnrjh6a7yh4q879r36fsm4a5c4dbd6ja2hpq1l'
path '/nix/store/xn8gqk91d9gkj0950slxbqzg7v73961q-unit-pulseaudio.service' was modified! expected hash 'sha256:1z9c92h2vcbz451ifriqawkh0ifsfxc487pqllrv19j2czq36wd1', got 'sha256:0ym4vgb8v71f06bdg8fq0yh0jkf8zyrvcjj6ims8a722zbhh9a8m'
path '/nix/store/zq16nix503j8wddj9qpfk50gv8jraa4g-unit-systemd-vconsole-setup.service' was modified! expected hash 'sha256:0qmqnmjxh5vjx484mbk6mzj9qmizj0j44anzagz4x2zdpfjxaima', got 'sha256:16rymx8ck2h85qmayw9fgc5d4cj9cnbcgivcfrsr4hxl5hfb76h6'
path '/nix/store/zqdnnbxw3faarhl0ps9jh4faxh42kqqd-unit-systemd-backlight-.service' was modified! expected hash 'sha256:0pqyazy3r3bz921akimg6vfd4wjvwkcn394ki6rp5shvh9793cwj', got 'sha256:09ygdlh70271bggqqdlbayprmrx9wrhfczrqcz7qy2n05gz2015p'
warning: not all errors were fixed
$ sudo nix-store --verify --check-contents --repair 
reading the Nix store...
checking path existence...
checking hashes...
path '/nix/store/079s73i324lbnnwv5n2mfjfjycdihf3l-unit-systemd-modules-load.service' was modified! expected hash 'sha256:1yz9bbpa93w29b8gvc2nkxv0iz7vph3gzzkxp6zh5fq3b7863qrf', got 'sha256:0anlac9p2ca2wxflbsxd35pmvxcssg3k7gp891x18pw934jwzgm8'
checking path '/nix/store/079s73i324lbnnwv5n2mfjfjycdihf3l-unit-systemd-modules-load.service'...
path '/nix/store/079s73i324lbnnwv5n2mfjfjycdihf3l-unit-systemd-modules-load.service' is corrupted or missing!
checking path '/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23'...
checking path '/nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74'...
checking path '/nix/store/h7570la4ydh3hjcf5qyxl3878z0wcjay-libunistring-0.9.10'...
checking path '/nix/store/p4qfchwcav3phxi1kf2fsv7riyavk1il-libidn2-2.3.0'...
checking path '/nix/store/vr96j3cxj75xsczl8pzrgsv1k57hcxyp-coreutils-8.31'...
checking path '/nix/store/5bcxkrc51g3ranny6k1ph8hcc8z53q7a-acl-2.2.53'...
checking path '/nix/store/s7l9iwyzkny13sc88appsjf4xrzc5kaa-attr-2.4.48'...
checking path '/nix/store/ax8vv1ds6l81jx8cmflx3fvcl9jdxd2w-findutils-4.7.0'...
checking path '/nix/store/20dyxqvd9rnwzdnpdzb8vnv8w3vwa8wx-glibc-locales-2.31-74'...

Seems that a lot of systemd stuff was broken(?).

After 2323432 hours of this dance:

service' was modified! expected hash 'sha256:0qmqnmjxh5vjx484mbk6mzj9qmizj0j44anzagz4x2zdpfjxaima', got 'sha256:16rymx8ck2h85qmayw9fgc5d4cj9cnbcgivcfrsr4hxl5hfb76h6'
copying path '/nix/store/zq16nix503j8wddj9qpfk50gv8jraa4g-unit-systemd-vconsole-setup.service' from 'https://cache.nixos.org'...
path '/nix/store/zqdnnbxw3faarhl0ps9jh4faxh42kqqd-unit-systemd-backlight-.service' was modified! expected hash 'sha256:0pqyazy3r3bz921akimg6vfd4wjvwkcn394ki6rp5shvh9793cwj', got 'sha256:09ygdlh70271bggqqdlbayprmrx9wrhfczrqcz7qy2n05gz2015p'
copying path '/nix/store/zqdnnbxw3faarhl0ps9jh4faxh42kqqd-unit-systemd-backlight-.service' from 'https://cache.nixos.org'...

and it stopped.

Let's check with a

$ sudo nixos-rebuild dry-activate
building Nix...
building the system configuration...
would stop the following units: ModemManager.service, NetworkManager.service, alsa-store.service, audit.service, bluetooth.service, docker.service, docker.socket, kmod-static-nodes.service, lvm2-pvscan@254:0.service, network-local-commands.service, network-setup.service, nscd.service, resolvconf.service, rtkit-daemon.service, samba-nmbd.service, samba-smbd.service, samba-winbindd.service, systemd-modules-load.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-tmpfiles-clean.timer, systemd-tmpfiles-setup-dev.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd.service, tlp.service, udisks2.service, upower.service, wpa_supplicant.service
would NOT stop the following changed units: display-manager.service, getty@tty1.service, systemd-backlight@backlight:intel_backlight.service, systemd-fsck@dev-disk-by\x2duuid-4087\x2dF08B.service, systemd-fsck@dev-disk-by\x2duuid-64974e29\x2dd371\x2d4045\x2d93bd\x2dbe66df10ddfe.service, systemd-journal-flush.service, systemd-logind.service, systemd-random-seed.service, systemd-remount-fs.service, systemd-tmpfiles-setup.service, systemd-update-utmp.service, systemd-user-sessions.service, user-runtime-dir@1000.service, user-runtime-dir@175.service, user@1000.service, user@175.service
would restart systemd
would restart the following units: polkit.service, systemd-journald.service
would start the following units: ModemManager.service, NetworkManager.service, alsa-store.service, audit.service, bluetooth.service, docker.socket, kmod-static-nodes.service, lvm2-pvscan@254:0.service, network-local-commands.service, network-setup.service, nscd.service, resolvconf.service, rtkit-daemon.service, samba-nmbd.service, samba-smbd.service, samba-winbindd.service, systemd-modules-load.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-tmpfiles-clean.timer, systemd-tmpfiles-setup-dev.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, tlp.service, udisks2.service, upower.service, wpa_supplicant.service
would reload the following units: dbus.service, dev-hugepages.mount, dev-mqueue.mount, firewall.service, sys-fs-fuse-connections.mount, sys-kernel-debug.mount

Uhm 🤔 ... Let's try a

$ sudo nixos-rebuild test

For posterity:

if successful I will update this gist ASAP. Otherwise, let's hope that will not break everything and definitely 😌

It is alive... Now:

$ sudo nixos-rebuild switch --upgrade --show-trace 

It apparently work, but (seems that) does not produce a new generation 🤔

Rebooted, so far so good. Apparently I am in the last generation and it works.

TODO:

  • update configuration and rebuild again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment