Pawb.Social
  • Communities
  • Create Post
  • Create Community
  • Aquileo | heart
    Support Lemmy
  • Aquileo | search
    Search
  • Login
  • Sign Up
𝔽𝕩𝕠𝕞𝕥 [𝕙𝕖/𝕙𝕚𝕞]@anarchist.nexus to linuxmemes@lemmy.worldEnglish ·
Aquileo | edit-2
11 months ago

sudo nixos-rebuild switch

anarchist.nexus

Aquileo | external-link
Aquileo | message-square
29
Aquileo | link
Aquileo | fedilink
157
Aquileo | external-link

sudo nixos-rebuild switch

anarchist.nexus

𝔽𝕩𝕠𝕞𝕥 [𝕙𝕖/𝕙𝕚𝕞]@anarchist.nexus to linuxmemes@lemmy.worldEnglish ·
Aquileo | edit-2
11 months ago
Aquileo | message-square
29
Aquileo | link
Aquileo | fedilink

cross-posted from: https://anarchist.nexus/post/93090

Aquileo | alert-triangle
You must log in or # to comment.
  • lemming741@lemmy.world
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    42
    ·
    11 months ago

    Is this some declarative joke I am too imperative to understand?

    • eierschaukeln@kbin.earth
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      18
      Aquileo | arrow-down
      1
      ·
      11 months ago

      Info:

      nixos-rebuild switch = build the new system configuration (from /etc/nixos/configuration.nix or flakes) and activate it immediately without reboot.

      • It builds the new system in /nix/store.
      • Updates the GRUB/systemd-boot entries.
      • Switches to the new configuration right away (systemd units, services, kernel params if possible, etc.).
      • Leaves the old generations available for rollback (nixos-rebuild switch --rollback).

      So: “switch” means build + activate now

      • enbiousenvy@lemmy.blahaj.zone
        Aquileo | link
        Aquileo | fedilink
        English
        Aquileo | arrow-up
        8
        ·
        11 months ago

        I never use nixos, but I just got intrusive thought to make that command get invoked automatically every time the config file is modified.

        • toynbee@lemmy.world
          Aquileo | link
          Aquileo | fedilink
          Aquileo | arrow-up
          15
          ·
          11 months ago

          My most intrusive Linux thought is to symlink vi to emacs (or vice versa).

          • msage@programming.dev
            Aquileo | link
            Aquileo | fedilink
            Aquileo | arrow-up
            13
            ·
            11 months ago

            I will find you, and I will break your fingers.

            • tomenzgg@midwest.social
              Aquileo | link
              Aquileo | fedilink
              English
              Aquileo | arrow-up
              6
              ·
              11 months ago

              You cannot [break my fingers] in any way that [Emacs hasn’t already hardened].

              • msage@programming.dev
                Aquileo | link
                Aquileo | fedilink
                Aquileo | arrow-up
                4
                ·
                11 months ago

                I’m an advanced Vim user, so we’ll see about that.

                • tomenzgg@midwest.social
                  Aquileo | link
                  Aquileo | fedilink
                  English
                  Aquileo | arrow-up
                  5
                  ·
                  11 months ago

                  The true metric of modal vs. modeless editing…

            • toynbee@lemmy.world
              Aquileo | link
              Aquileo | fedilink
              Aquileo | arrow-up
              3
              ·
              11 months ago

              I like how you got two (yes, now three) responses which were simultaneously exactly in agreement with and directly opposing each other.

          • lagoon8622@sh.itjust.works
            Aquileo | link
            Aquileo | fedilink
            English
            Aquileo | arrow-up
            3
            ·
            11 months ago

            It doesn’t matter what text editor it is, the only correct answer is to alias them all to ed

          • Int32@lemmy.dbzer0.com
            Aquileo | link
            Aquileo | fedilink
            Aquileo | arrow-up
            2
            ·
            11 months ago

            or nano to $EDITOR, if you like copy-pasting commands from tutorials.

            • toynbee@lemmy.world
              Aquileo | link
              Aquileo | fedilink
              Aquileo | arrow-up
              3
              ·
              11 months ago

              Well, to be fair, that one is easier to undo (and, depending on the command you pasted, might take care of itself when you start a new session).

              But yeah … Running visudo and getting a nano interface should be illegal IMHO.

        • lemming741@lemmy.world
          Aquileo | link
          Aquileo | fedilink
          English
          Aquileo | arrow-up
          9
          ·
          11 months ago

          I had a Nix partition on a beater laptop and it reminded me of Gentoo back in the day. Every update took at least 20 minutes.

        • Clay_pidgin@sh.itjust.works
          Aquileo | link
          Aquileo | fedilink
          English
          Aquileo | arrow-up
          3
          ·
          11 months ago

          I’m only two days into Nixos, but I don’t think that would be a problem. I am at 14 generations of my system already, and it asks me every boot which generation I want to start. It’s trivial to scroll down and pick an earlier (working) version.

          One thing that might be nice would be if that menu indicated how many times each generation had been booted and used for more than 10 min, so I could tell which ones were “real” versions and which were transitional.

          • tux7350@lemmy.world
            Aquileo | link
            Aquileo | fedilink
            Aquileo | arrow-up
            5
            ·
            Aquileo | edit-2
            11 months ago

            It helps to run the garbage collector and clean out the Nix store. Once you get a stable version that works, clear your nix store.

            See this built in helper script

            If you’re new you might have a bunch of stuff in the store from trying out things. You can also delete objects older than a certain period, which is nice.

            • Clay_pidgin@sh.itjust.works
              Aquileo | link
              Aquileo | fedilink
              English
              Aquileo | arrow-up
              2
              ·
              11 months ago

              I saw the garbage collection for old stuff, but I’m still setting things up for the first time especially since I’m trying Wayland and Hyprland for the first time. Every other generation works, probably! I’m really enjoying the process, except that I need this computer and the downtime is a problem.

              Do you know a way to delete either all generations except the current, or maybe the current ly booted one and the one previous to it? (Not the latest one explicitly as I keep breaking things)

              • tux7350@lemmy.world
                Aquileo | link
                Aquileo | fedilink
                Aquileo | arrow-up
                4
                ·
                11 months ago

                Without flakes

                For those cool enough to use flakes

            • Clay_pidgin@sh.itjust.works
              Aquileo | link
              Aquileo | fedilink
              English
              Aquileo | arrow-up
              2
              ·
              11 months ago

              I’m not even to the point of trying out alternative software, I’m just trying to get the right configs so I can use the dang thing!

              I tried to get screenshots working, and now the system is completely unresponsive, mouse never moves etc. Ok, back to previous version. Between here and working, I’m sure I’ll go through dozens more versions! I’m trying to only make small changes every time.

          • brrt@sh.itjust.works
            Aquileo | link
            Aquileo | fedilink
            Aquileo | arrow-up
            2
            ·
            11 months ago

            I don’t have the command at hand but you can name versions.

            • Clay_pidgin@sh.itjust.works
              Aquileo | link
              Aquileo | fedilink
              English
              Aquileo | arrow-up
              5
              ·
              11 months ago

              Ooh that’s handy.

              NIXOS_LABEL=“changed-some-settings” nixos-rebuild switch

              • brrt@sh.itjust.works
                Aquileo | link
                Aquileo | fedilink
                Aquileo | arrow-up
                4
                ·
                11 months ago

                Also, since you’re already 14 versions deep you should probably implement automatic “garbage collection”.

                • Clay_pidgin@sh.itjust.works
                  Aquileo | link
                  Aquileo | fedilink
                  English
                  Aquileo | arrow-up
                  1
                  ·
                  11 months ago

                  Will do. I’m worried about deleting the one good version while I’m still building the system.

            • tux7350@lemmy.world
              Aquileo | link
              Aquileo | fedilink
              Aquileo | arrow-up
              2
              ·
              11 months ago

              Enjoy :)

  • varnia@lemmy.blahaj.zone
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    6
    ·
    11 months ago

    nh os switch --update --ask

  • First_Thunder@lemmy.zip
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    5
    ·
    11 months ago

    Sudo nixos-rebuild switch —flake .#geoff

    • Tolc@lemmy.zipBanned
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      4
      ·
      11 months ago

      –impure

    • kybean
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      3
      ·
      11 months ago
      nix flake update
      sudo nixos-rebuild switch --flake .
      
      • ImgurRefugee114@reddthat.com
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        1
        ·
        11 months ago

        I made aliases because I’m lazy.

        nup
        nswitch
        
  • Sibbo@sopuli.xyz
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    3
    ·
    11 months ago

    --upgrade

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community – if that is a problem for you, you should leave.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
Aquileo | globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.18K users / day
  • 4.58K users / week
  • 7.17K users / month
  • 16.6K users / 6 months
  • 140 local subscribers
  • 32.3K subscribers
  • 2.32K Posts
  • 136K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.worlddeleted by creator
  • zephyr@lemmy.world
  • Err(()).unwrap()@lemmy.world
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org