mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
update using flak-parts
This commit is contained in:
parent
312632ac57
commit
8daa2b2266
1 changed files with 35 additions and 32 deletions
|
@ -1,26 +1,27 @@
|
||||||
{ self
|
{ self, ... }:
|
||||||
, nixpkgs
|
|
||||||
, nixpkgs-unstable
|
|
||||||
, sops-nix
|
|
||||||
, inputs
|
|
||||||
, nixos-hardware
|
|
||||||
, nix
|
|
||||||
, ...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
|
inherit
|
||||||
|
(self.inputs)
|
||||||
|
nixpkgs
|
||||||
|
nixpkgs-unstable
|
||||||
|
sops-nix
|
||||||
|
nixos-hardware
|
||||||
|
#nix
|
||||||
|
;
|
||||||
nixosSystem = nixpkgs.lib.makeOverridable nixpkgs.lib.nixosSystem;
|
nixosSystem = nixpkgs.lib.makeOverridable nixpkgs.lib.nixosSystem;
|
||||||
customModules = import ./modules/default.nix;
|
|
||||||
overlay-unstable = final: prev: {
|
overlay-unstable = final: prev: {
|
||||||
unstable = import nixpkgs-unstable {
|
unstable = import nixpkgs-unstable {
|
||||||
inherit (final) system;
|
inherit (final) system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
customModules = import ./modules/default.nix;
|
||||||
baseModules = [
|
baseModules = [
|
||||||
# make flake inputs accessable in NixOS
|
# make flake inputs accessiable in NixOS
|
||||||
{
|
{
|
||||||
_module.args.self = self;
|
_module.args.self = self;
|
||||||
_module.args.inputs = inputs;
|
_module.args.inputs = self.inputs;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -38,25 +39,27 @@ let
|
||||||
defaultModules = baseModules ++ customModules;
|
defaultModules = baseModules ++ customModules;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# use your hardware- model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
flake.nixosConfigurations = {
|
||||||
thinkman = nixosSystem {
|
# use your hardware- model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
||||||
system = "x86_64-linux";
|
thinkman = nixosSystem {
|
||||||
modules = defaultModules ++ [
|
system = "x86_64-linux";
|
||||||
nixos-hardware.nixosModules.lenovo-thinkpad-t14
|
modules = defaultModules ++ [
|
||||||
./thinkman/configuration.nix
|
nixos-hardware.nixosModules.lenovo-thinkpad-t14
|
||||||
];
|
./thinkman/configuration.nix
|
||||||
};
|
];
|
||||||
serverle = nixosSystem {
|
};
|
||||||
system = "aarch64-linux";
|
newton = nixosSystem {
|
||||||
modules = defaultModules ++ [
|
system = "x86_64-linux";
|
||||||
nixos-hardware.nixosModules.raspberry-pi-4
|
modules = defaultModules ++ [
|
||||||
./serverle/configuration.nix
|
./newton/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
newton = nixosSystem {
|
serverle = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "aarch64-linux";
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ [
|
||||||
./newton/configuration.nix
|
nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
];
|
./serverle/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue