mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:49:41 +00:00
Add flake.lock file
This commit is contained in:
parent
ed50178c17
commit
09d8df824f
28
flake.lock
Normal file
28
flake.lock
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1708440434,
|
||||||
|
"narHash": "sha256-XY+B9mbhL/i+Q6fP6gBQ6P76rv9rWtpjQiUJ+DGtaUg=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "526d051b128b82ae045a70e5ff1adf8e6dafa560",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-23.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
|
|
|
@ -73,8 +73,8 @@ to the `/etc/nixos` directory, to get my setup, like so:
|
||||||
```sh
|
```sh
|
||||||
git init
|
git init
|
||||||
git remote add origin https://github.com/ItsDrike/nixdots
|
git remote add origin https://github.com/ItsDrike/nixdots
|
||||||
git branch -C main
|
git branch -M main
|
||||||
git pull
|
git pull origin main
|
||||||
```
|
```
|
||||||
|
|
||||||
## Create your own custom flake
|
## Create your own custom flake
|
||||||
|
@ -127,13 +127,13 @@ Now you can run `sudo nixos-rebuild switch`. Yay, you're now using NixOS in flak
|
||||||
> your configuration in a git repository when you're using flakes.
|
> your configuration in a git repository when you're using flakes.
|
||||||
|
|
||||||
You can notice that this also created a `flake.lock` file, containing the exact
|
You can notice that this also created a `flake.lock` file, containing the exact
|
||||||
versions of all of the packages you're using. You can (but don't have to) add
|
versions of all of the packages you're using. Let's add this file to git too:
|
||||||
this file to git too: `git add flake.lock`.
|
`git add flake.lock`.
|
||||||
|
|
||||||
Let's make a commit:
|
And now we're ready to make our first commit:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git commit -a -m "Initial commit"
|
git commit -m "Initial commit"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
Loading…
Reference in a new issue