Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. is there a way to move the /etc/nixos/configuration.nix file to somewhere where this one doesn't have to use sudo to edit it #nixos

is there a way to move the /etc/nixos/configuration.nix file to somewhere where this one doesn't have to use sudo to edit it #nixos

Scheduled Pinned Locked Moved Uncategorized
nixos
4 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • web scale nyxN This user is from outside of this forum
    web scale nyxN This user is from outside of this forum
    web scale nyx
    wrote last edited by
    #1

    is there a way to move the /etc/nixos/configuration.nix file to somewhere where this one doesn't have to use sudo to edit it


    #nixos
    Jay :nixos:J 1 Reply Last reply
    0
    • web scale nyxN web scale nyx

      is there a way to move the /etc/nixos/configuration.nix file to somewhere where this one doesn't have to use sudo to edit it


      #nixos
      Jay :nixos:J This user is from outside of this forum
      Jay :nixos:J This user is from outside of this forum
      Jay :nixos:
      wrote last edited by
      #2

      @nyxt You can put it literally anywhere. I had it in a subdirectory of my user home.

      ZeStig :emacs: :nix: :rust: :archlinux:Z 1 Reply Last reply
      1
      0
      • R ActivityRelay shared this topic
      • Jay :nixos:J Jay :nixos:

        @nyxt You can put it literally anywhere. I had it in a subdirectory of my user home.

        ZeStig :emacs: :nix: :rust: :archlinux:Z This user is from outside of this forum
        ZeStig :emacs: :nix: :rust: :archlinux:Z This user is from outside of this forum
        ZeStig :emacs: :nix: :rust: :archlinux:
        wrote last edited by
        #3

        @jay I believe this mandates the use of flakes. My NixOS configuration is inside my home directory, but I don't think it can be used (or atleast there's no easy way to use it) without using flakes.

        Jay :nixos:J 1 Reply Last reply
        0
        • ZeStig :emacs: :nix: :rust: :archlinux:Z ZeStig :emacs: :nix: :rust: :archlinux:

          @jay I believe this mandates the use of flakes. My NixOS configuration is inside my home directory, but I don't think it can be used (or atleast there's no easy way to use it) without using flakes.

          Jay :nixos:J This user is from outside of this forum
          Jay :nixos:J This user is from outside of this forum
          Jay :nixos:
          wrote last edited by
          #4

          @zstg It's been a while but from what I remember, you don't need to use flakes. You just put your configuration.nix wherever you want, go to that directory and run the standard nix rebuild commands.

          1 Reply Last reply
          1
          0
          • R AodeRelay shared this topic
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups