config/flake.nix

56 lines
1.5 KiB
Nix

2023-01-13 20:12:54 +01:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2023-01-16 22:19:17 +01:00
home-manager.url = "github:nix-community/home-manager";
2023-01-13 20:12:54 +01:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self
, nixpkgs
, home-manager
, ...
2023-02-13 20:46:11 +01:00
} @inputs:
let
overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/0fe268a3b03ab9ef7a77363c64247030ee3902a7.tar.gz;
sha256 = "sha256:05cxwj5xnw9kci75pgzd3kff9k3548fsc0x8y0s08jzcidai139f";
}))
];
in {
2023-01-13 20:12:54 +01:00
nixosConfigurations.falcon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2023-02-13 20:46:11 +01:00
({ config, pkgs, ... }: {
nixpkgs.overlays = overlays;
})
2023-01-13 20:12:54 +01:00
./hosts/falcon
2023-01-16 14:49:16 +01:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
}
];
};
nixosConfigurations.eagle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2023-02-09 08:40:22 +01:00
({ config, pkgs, ... }: {
2023-02-13 20:46:11 +01:00
nixpkgs.overlays = overlays;
2023-02-09 08:40:22 +01:00
})
2023-01-16 14:49:16 +01:00
./hosts/eagle
2023-01-13 20:12:54 +01:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bak";
}
];
};
};
}