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
0dcef1c8
Commit
0dcef1c8
authored
Feb 25, 2022
by
fpletz
🚧
Browse files
add sdcard image generation for aarch64-linux (i.e. rpis)
parent
ee4a4478
Changes
2
Hide whitespace changes
Inline
Side-by-side
flake.lock
View file @
0dcef1c8
...
...
@@ -56,6 +56,42 @@
"url": "https://gitlab.muc.ccc.de/muCCC/api"
}
},
"nixlib": {
"locked": {
"lastModified": 1636849918,
"narHash": "sha256-nzUK6dPcTmNVrgTAC1EOybSMsrcx+QrVPyqRdyKLkjA=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "28a5b0557f14124608db68d3ee1f77e9329e9dd5",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixos-generators": {
"inputs": {
"nixlib": "nixlib",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1645800619,
"narHash": "sha256-fCamVUDH0+nACV1P/rqtoD4YGon5HhnW3bU/0IjA8qI=",
"owner": "nix-community",
"repo": "nixos-generators",
"rev": "05773c5d1584cebd5eda41675c3456dcabdef42a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-generators",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1644951967,
...
...
@@ -76,6 +112,7 @@
"inputs": {
"home-manager": "home-manager",
"muccc-api": "muccc-api",
"nixos-generators": "nixos-generators",
"nixpkgs": "nixpkgs",
"utils": "utils"
}
...
...
flake.nix
View file @
0dcef1c8
...
...
@@ -8,9 +8,13 @@
muccc-api
.
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
home-manager
.
url
=
"github:nix-community/home-manager"
;
home-manager
.
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
nixos-generators
=
{
url
=
"github:nix-community/nixos-generators"
;
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
};
};
outputs
=
{
self
,
nixpkgs
,
utils
,
muccc-api
,
home-manager
,
...
}:
let
outputs
=
{
self
,
nixpkgs
,
utils
,
muccc-api
,
home-manager
,
nixos-generators
,
...
}:
let
supportedSystems
=
utils
.
lib
.
defaultSystems
;
in
utils
.
lib
.
eachSystem
supportedSystems
(
system
:
let
pkgs
=
import
nixpkgs
{
inherit
system
;
};
...
...
@@ -20,6 +24,11 @@
packages
=
with
pkgs
;
[
colmena
];
};
})
//
{
sdimage
.
aarch64-linux
=
nixos-generators
.
nixosGenerate
{
pkgs
=
import
nixpkgs
{
system
=
"aarch64-linux"
;
};
format
=
"sd-aarch64"
;
};
}
//
{
colmena
=
{
meta
=
{
nixpkgs
=
import
nixpkgs
{
};
...
...
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