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
5fc96a3b
Commit
5fc96a3b
authored
Jan 13, 2022
by
fpletz
🚧
Browse files
use nixpkgs from flakes and set configuration rev
parent
29e522f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
briafzentrum.nix
View file @
5fc96a3b
...
...
@@ -26,10 +26,6 @@ with lib;
nix
.
maxJobs
=
3
;
nix
.
buildCores
=
2
;
nix
.
nixPath
=
mkForce
[
"nixos-config=/dontuse"
"/nix/var/nix/profiles/per-user/root/channels"
];
services
.
openssh
.
enable
=
true
;
...
...
flake.nix
View file @
5fc96a3b
...
...
@@ -6,7 +6,7 @@
utils
.
url
=
"github:numtide/flake-utils"
;
};
outputs
=
{
nixpkgs
,
utils
,
...
}:
let
outputs
=
{
self
,
nixpkgs
,
utils
,
...
}:
let
supportedSystems
=
utils
.
lib
.
defaultSystems
;
in
utils
.
lib
.
eachSystem
supportedSystems
(
system
:
let
pkgs
=
import
nixpkgs
{
inherit
system
;
};
...
...
@@ -33,6 +33,12 @@
services
.
fail2ban
.
enable
=
true
;
zramSwap
.
enable
=
true
;
nixpkgs
.
system
=
"x86_64-linux"
;
# include git rev of this repo/flake into the nixos-version
system
.
configurationRevision
=
nixpkgs
.
lib
.
mkIf
(
self
?
rev
)
self
.
rev
;
# set nixpkgs flake of the target to the nixpkgs verion of the deployment
nix
.
registry
.
nixpkgs
.
flake
=
nixpkgs
;
nix
.
nixPath
=
lib
.
mkForce
[
"nixpkgs=
${
nixpkgs
}
"
"nixos-config=/dontuse"
];
};
briafzentrum
=
{
name
,
nodes
,
pkgs
,
...
}:
{
...
...
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