migrate to lix

This commit is contained in:
Cyryl Płotnicki 2024-07-12 12:24:17 +01:00
parent 77ad4416fd
commit b8633f81ae

View file

@ -10,6 +10,7 @@
flake-utils, flake-utils,
helix, helix,
home-manager, home-manager,
lix-module,
nil, nil,
nix-ld, nix-ld,
nixos-hardware, nixos-hardware,
@ -25,6 +26,7 @@
pkgs.lib.nixosSystem { pkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
lix-module.nixosModules.default
(./. + "/nixos/boxes/${hostname}") (./. + "/nixos/boxes/${hostname}")
(import ./nixos/server-common.nix) (import ./nixos/server-common.nix)
sops.nixosModules.sops sops.nixosModules.sops
@ -81,6 +83,7 @@
pkgs.lib.nixosSystem { pkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
lix-module.nixosModules.default
(./. + "/nixos/boxes/${hostname}") (./. + "/nixos/boxes/${hostname}")
(import ./nixos/email-accounts.nix) (import ./nixos/email-accounts.nix)
(import ./nixos/common.nix) (import ./nixos/common.nix)
@ -145,6 +148,7 @@
"airy" = darwin.lib.darwinSystem rec { "airy" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
lix-module.nixosModules.default
(./. + "/nixos/boxes/airy") (./. + "/nixos/boxes/airy")
{users.users.cyryl.home = "/Users/cyryl";} {users.users.cyryl.home = "/Users/cyryl";}
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
@ -325,6 +329,11 @@
repo = "flake-utils"; repo = "flake-utils";
ref = "main"; ref = "main";
}; };
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs-stable";
inputs.flake-utils.follows = "flake-utils";
};
nur = { nur = {
type = "github"; type = "github";
owner = "nix-community"; owner = "nix-community";