added host Marisa (haven't tested config yet)
This commit is contained in:
69
flake.nix
69
flake.nix
@@ -11,27 +11,27 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
agenix.url = github:ryantm/agenix;
|
||||
emacs = {
|
||||
url = github:nix-community/emacs-overlay;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
utils.url = github:numtide/flake-utils;
|
||||
};
|
||||
|
||||
outputs = inputs@{self, nixpkgs, ... }:
|
||||
inputs.utils.lib.eachDefaultSystem (system: {
|
||||
packages = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = self.overlays ++ [ inputs.nur.overlay inputs.emacs.overlay ];
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
}) //
|
||||
(
|
||||
{
|
||||
inputs.utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
overlays = [
|
||||
(import ./overlays/overridesandshit.nix)
|
||||
(import ./overlays/packages.nix)
|
||||
];
|
||||
in
|
||||
{
|
||||
packages = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = overlays ++ [ inputs.nur.overlay ];
|
||||
config.allowUnfree = true;
|
||||
config.allowBroken = true;
|
||||
};
|
||||
}) //
|
||||
(
|
||||
{
|
||||
hm-configs = {
|
||||
natto = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
system = "x86_64-linux";
|
||||
@@ -41,20 +41,47 @@
|
||||
];
|
||||
nixpkgs.overlays = self.packages.x86_64-linux.overlays;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.allowBroken = true;
|
||||
};
|
||||
homeDirectory = "/home/natto";
|
||||
username = "natto";
|
||||
};
|
||||
ottan = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
system = "aarch64-linux";
|
||||
configuration = { lib, ... }: {
|
||||
imports = [
|
||||
./home/ottan.nix
|
||||
];
|
||||
nixpkgs.overlays = self.packages.aarch64-linux.overlays;
|
||||
};
|
||||
homeDirectory = "/home/ottan";
|
||||
username = "ottan";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
nixosConfigurations.Satori = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./satori.nix
|
||||
inputs.agenix.nixosModules.age
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{ nixpkgs.pkgs = self.packages.x86_64-linux; }
|
||||
];
|
||||
nixosConfigurations = {
|
||||
Satori = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./satori.nix
|
||||
inputs.agenix.nixosModules.age
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
nixpkgs.pkgs = self.packages.x86_64-linux;
|
||||
}
|
||||
];
|
||||
};
|
||||
Marisa = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
./marisa.nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
nixpkgs.pkgs = self.packages.aarch64-linux;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user