Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
APic
nixos-deployment
Commits
c3fade46
Unverified
Commit
c3fade46
authored
Jan 15, 2022
by
fpletz
🚧
Browse files
set nixpkgs rev in version
parent
ae271211
Changes
1
Hide whitespace changes
Inline
Side-by-side
flake.nix
View file @
c3fade46
...
...
@@ -42,6 +42,8 @@
# include git rev of this repo/flake into the nixos-version
system
.
configurationRevision
=
nixpkgs
.
lib
.
mkIf
(
self
?
rev
)
self
.
rev
;
system
.
nixos
.
revision
=
nixpkgs
.
rev
;
system
.
nixos
.
versionSuffix
=
"-
${
lib
.
substring
0
8
nixpkgs
.
rev
}
"
;
# set nixpkgs on the target to the nixpkgs version of the deployment
nix
.
registry
.
nixpkgs
.
flake
=
nixpkgs
;
nix
.
nixPath
=
lib
.
mkForce
[
"nixpkgs=
${
nixpkgs
}
"
"nixos-config=/dontuse"
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment