108 lines
2.7 KiB
Nix
108 lines
2.7 KiB
Nix
{
|
|
description = "My systems installation";
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
nur.url = "github:nix-community/NUR";
|
|
nixgl = {
|
|
url = "github:nix-community/nixGL";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs = { self, nixpkgs, home-manager, nur, nixgl, ... }@inputs:
|
|
let
|
|
stateVersion = "23.11";
|
|
|
|
allSystems = [
|
|
"x86_64-linux" # 64bit AMD/Intel x86
|
|
"aarch64-linux" # 64bit ARM macOS
|
|
];
|
|
|
|
forAllSystems = fn:
|
|
nixpkgs.lib.genAttrs allSystems
|
|
(system: fn { pkgs = import nixpkgs { inherit system; }; });
|
|
in {
|
|
devShells = forAllSystems ({ pkgs }: {
|
|
default = pkgs.mkShell {
|
|
name = "nixfiles";
|
|
buildInputs = [
|
|
pkgs.shellcheck
|
|
pkgs.lefthook
|
|
pkgs.go-task
|
|
pkgs.convco
|
|
pkgs.typos
|
|
];
|
|
};
|
|
});
|
|
nixosConfigurations = {
|
|
morty = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit stateVersion inputs;
|
|
hostname = "morty";
|
|
username = "ephase";
|
|
hostConfig = {
|
|
desktop = true;
|
|
};
|
|
};
|
|
modules = [
|
|
./nixos/default.nix
|
|
home-manager.nixosModule
|
|
];
|
|
};
|
|
mrmeeseeks = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit stateVersion inputs;
|
|
hostname = "mrmeeseeks";
|
|
username = "ephase";
|
|
hostConfig = {
|
|
desktop = true;
|
|
};
|
|
};
|
|
modules = [
|
|
./nixos/default.nix
|
|
home-manager.nixosModule
|
|
];
|
|
};
|
|
luci = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit stateVersion inputs;
|
|
|
|
};
|
|
modules = [
|
|
./nixos/default.nix
|
|
home-manager.nixosModule
|
|
];
|
|
};
|
|
};
|
|
homeConfigurations = {
|
|
rick = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = import nixpkgs {
|
|
system = "aarch64-linux";
|
|
overlays = [ nixgl.overlay ];
|
|
};
|
|
extraSpecialArgs = {
|
|
inherit stateVersion inputs;
|
|
hostname = "rick";
|
|
username = "ephase";
|
|
};
|
|
};
|
|
work = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit stateVersion inputs;
|
|
hostname = "yorick-Latitude-7320";
|
|
username = "yorick";
|
|
};
|
|
modules = [
|
|
./home-manager/default.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|