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
tuedel
nixos-deployment
Commits
ff85dd13
Commit
ff85dd13
authored
Mar 22, 2022
by
fpletz
🚧
Browse files
add nixos-hardware as a flake
parent
d1235f62
Changes
3
Hide whitespace changes
Inline
Side-by-side
flake.lock
View file @
ff85dd13
...
...
@@ -118,6 +118,22 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1647447644,
"narHash": "sha256-Di7ZCXjQKEys+jxgl8Mp7a8nowRSeAbzH8c9QNYkw2k=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "32f61571b486efc987baca553fb35df22532ba63",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1647800324,
...
...
@@ -141,6 +157,7 @@
"luftschleuse2": "luftschleuse2",
"muccc-api": "muccc-api",
"nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs"
}
}
...
...
flake.nix
View file @
ff85dd13
...
...
@@ -4,6 +4,7 @@
inputs
=
{
nixpkgs
.
url
=
"github:NixOS/nixpkgs/nixos-unstable"
;
flake-utils
.
url
=
"github:numtide/flake-utils"
;
nixos-hardware
.
url
=
"github:NixOS/nixos-hardware/master"
;
muccc-api
=
{
url
=
"git+https://gitlab.muc.ccc.de/muCCC/api"
;
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
...
...
@@ -24,7 +25,8 @@
};
};
outputs
=
{
self
,
nixpkgs
,
flake-utils
,
muccc-api
,
luftschleuse2
,
home-manager
,
nixos-generators
,
...
}:
let
outputs
=
{
self
,
nixpkgs
,
flake-utils
,
nixos-hardware
,
muccc-api
,
luftschleuse2
,
home-manager
,
nixos-generators
,
...
}:
let
supportedSystems
=
flake-utils
.
lib
.
defaultSystems
;
in
flake-utils
.
lib
.
eachSystem
supportedSystems
(
system
:
let
pkgs
=
import
nixpkgs
{
inherit
system
;
};
...
...
@@ -43,7 +45,7 @@
meta
=
{
nixpkgs
=
import
nixpkgs
{
};
specialArgs
.
flakes
=
{
inherit
self
nixpkgs
muccc-api
luftschleuse2
home-manager
;
inherit
self
nixpkgs
nixos-hardware
muccc-api
luftschleuse2
home-manager
;
};
};
...
...
loungepi.nix
View file @
ff85dd13
{
config
,
pkgs
,
lib
,
...
}:
{
config
,
pkgs
,
lib
,
flakes
,
...
}:
{
imports
=
[
"
${
fetchTarball
"https://github.com/NixOS/nixos-hardware/archive/9886a06e4745edb31587d0e9481ad82d35f0d593.tar.gz"
}
/
raspberry-pi
/4"
flakes
.
nixos-hardware
.
nixosModules
.
raspberry-pi
-4
];
fileSystems
=
{
...
...
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