nixos-config/flake.nix

80 lines
2.7 KiB
Nix
Raw Normal View History

2023-06-16 23:08:03 +00:00
{
2023-06-16 23:14:12 +00:00
description = "Alex's super mega awesome nixos config";
2023-06-16 23:08:03 +00:00
2024-07-26 22:27:47 +00:00
# A flake's inputs specify the dependencies that get pulled in. Each input is pinned to a specific version (the git commit) of that dependency.
2023-06-16 23:46:10 +00:00
inputs = {
2024-01-20 00:24:06 +00:00
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
2023-06-19 00:06:52 +00:00
2024-07-26 22:27:47 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; # This flake also takes in nixpkgs as its own input, so we can override it here to ensure the same pkgs are used!
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-06-19 00:06:52 +00:00
2024-07-26 22:27:47 +00:00
atau-nixpkgs = {
url = "git+https://git.atauno.com/atau/atau-nixpkgs?ref=main&rev=1e72f4b1e9b7a2991e3ccdebbe75d312f016da3b";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-06-16 23:46:10 +00:00
};
2023-06-16 23:14:12 +00:00
2024-07-26 22:27:47 +00:00
outputs = { self, nixpkgs, home-manager, firefox-addons, ... }@attrs:
2023-06-19 00:06:52 +00:00
{
2024-07-26 22:27:47 +00:00
nixosConfigurations = {
## ---- personal computers (linux) ----
nixos76 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos76/system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.alex = import ./nixos76/alex/home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
thelio76 = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
./thelio76/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.alex = import ./nixos76/alex/home.nix;
home-manager.extraSpecialArgs = { ff = firefox-addons.packages.${system}; };
}
];
};
## ---- servers ----
ursa-minor = nixpkgs.lib.nixosSystem {
2024-01-20 00:24:06 +00:00
system = "aarch64-linux";
modules = [
./ursa-minor/configuration.nix
];
};
2024-07-26 22:27:47 +00:00
ursa-major = nixpkgs.lib.nixosSystem {
2024-01-26 19:55:55 +00:00
system = "aarch64-linux";
modules = [
./ursa-major/configuration.nix
];
};
2024-07-26 22:27:47 +00:00
atauno = nixpkgs.lib.nixosSystem {
2024-02-04 19:17:33 +00:00
system = "aarch64-linux";
modules = [
./atauno/configuration.nix
];
};
2024-07-26 22:27:47 +00:00
};
2023-06-16 23:08:03 +00:00
};
}