testing
This commit is contained in:
parent
227dddf2f7
commit
e4fb15c9af
2 changed files with 28 additions and 6 deletions
23
builders.nix
23
builders.nix
|
@ -1,4 +1,4 @@
|
||||||
{ nixpkgs, self, ... }@inputs:
|
{ nixpkgs, nix-darwin, self, ... }@inputs:
|
||||||
|
|
||||||
let
|
let
|
||||||
makePkgs = system: (import nixpkgs {
|
makePkgs = system: (import nixpkgs {
|
||||||
|
@ -73,4 +73,25 @@ rec {
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
(map toPartialHomeManagerConfig)
|
(map toPartialHomeManagerConfig)
|
||||||
systems;
|
systems;
|
||||||
|
|
||||||
|
|
||||||
|
toPartialDarwinConfig =
|
||||||
|
{ user, hostname, system ? "aarch64-darwin", }:
|
||||||
|
nameValuePair
|
||||||
|
hostname
|
||||||
|
(nix-darwin.lib.darwinSystem {
|
||||||
|
pkgs = makePkgs system;
|
||||||
|
extraSpecialArgs = { inherit inputs self; };
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./hosts/${hostname}/configuration.nix
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
|
compileDarwinSystems =
|
||||||
|
systems:
|
||||||
|
lib.right
|
||||||
|
builtins.listToAttrs
|
||||||
|
(map toPartialDarwinConfig)
|
||||||
|
systems;
|
||||||
}
|
}
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -11,6 +11,8 @@
|
||||||
dunst-theme = { url = "github:d2718nis/rose-pine-dunst"; flake = false; };
|
dunst-theme = { url = "github:d2718nis/rose-pine-dunst"; flake = false; };
|
||||||
niri = { url = "github:sodiboo/niri-flake"; inputs.nixpkgs.follows = "nixpkgs"; };
|
niri = { url = "github:sodiboo/niri-flake"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||||
|
|
||||||
|
nix-darwin = { url = "github:LnL7/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||||
|
|
||||||
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
|
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
|
||||||
fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; };
|
fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; };
|
||||||
backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; };
|
backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; };
|
||||||
|
@ -30,11 +32,10 @@
|
||||||
homeConfigurations = builders.compileHomes [
|
homeConfigurations = builders.compileHomes [
|
||||||
{ user = "zynh"; hostname = "msiserver"; }
|
{ user = "zynh"; hostname = "msiserver"; }
|
||||||
{ user = "val"; hostname = "caveserver"; }
|
{ user = "val"; hostname = "caveserver"; }
|
||||||
{
|
];
|
||||||
user = "zynh";
|
|
||||||
hostname = "little-lightning";
|
darwinConfigurations = builders.compileDarwinSystems [
|
||||||
system = "aarch64-darwin";
|
{ hostname = "little-lightning"; }
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
overlays.default = import ./pkgs;
|
overlays.default = import ./pkgs;
|
||||||
|
|
Loading…
Reference in a new issue