2023-10-20 23:41:27 +00:00
|
|
|
{
|
|
|
|
description = "tacocat's nix configuration";
|
|
|
|
|
2023-11-05 03:06:38 +00:00
|
|
|
nixConfig = {
|
|
|
|
experimental-features = ["nix-command" "flakes"];
|
|
|
|
extra-substituters = [
|
|
|
|
# Nix community's cache server
|
|
|
|
"https://nix-community.cachix.org"
|
2023-11-20 05:50:18 +00:00
|
|
|
"https://helix.cachix.org"
|
2023-11-05 03:06:38 +00:00
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
2023-11-20 05:50:18 +00:00
|
|
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
2023-11-05 03:06:38 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-10-20 23:41:27 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-11-23 04:54:46 +00:00
|
|
|
helix.url = "github:helix-editor/helix/master";
|
2023-10-20 23:41:27 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-10-30 01:48:09 +00:00
|
|
|
nixos-hardware.url = "github:NixOs/nixos-hardware/master";
|
2023-11-05 06:32:53 +00:00
|
|
|
nur.url = "github:nix-community/nur";
|
2024-01-11 02:05:37 +00:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
2024-02-10 15:23:56 +00:00
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-10-20 23:41:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# pass in the urls defined above
|
|
|
|
# the @ syntax stores the arguments in the inputs variable
|
2023-11-10 18:03:26 +00:00
|
|
|
outputs = {
|
2023-10-20 23:41:27 +00:00
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
2023-10-21 00:06:56 +00:00
|
|
|
helix,
|
2023-10-30 01:48:09 +00:00
|
|
|
nixos-hardware,
|
2023-11-05 06:32:53 +00:00
|
|
|
nur,
|
2024-01-11 02:05:37 +00:00
|
|
|
agenix,
|
2024-02-10 15:23:56 +00:00
|
|
|
nixvim,
|
2023-10-29 04:35:51 +00:00
|
|
|
...
|
2023-11-10 18:03:26 +00:00
|
|
|
} @ inputs: let
|
2023-10-20 23:41:27 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
2023-11-10 18:03:26 +00:00
|
|
|
overlays = [
|
|
|
|
nur.overlay
|
|
|
|
];
|
2023-12-19 17:00:56 +00:00
|
|
|
home-manager-config = toplevel: [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2023-12-27 03:49:51 +00:00
|
|
|
home-manager.backupFileExtension = "bk";
|
2023-12-19 17:00:56 +00:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
|
|
|
home-manager.users.tacocat = {
|
2024-01-11 04:11:51 +00:00
|
|
|
imports = [
|
|
|
|
toplevel
|
|
|
|
agenix.homeManagerModules.default
|
2024-02-10 15:23:56 +00:00
|
|
|
nixvim.homeManagerModules.nixvim
|
2024-01-11 04:11:51 +00:00
|
|
|
];
|
2023-12-19 17:00:56 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-01-11 02:05:37 +00:00
|
|
|
common =
|
|
|
|
[
|
|
|
|
./modules/nixos-common.nix
|
|
|
|
{nixpkgs.overlays = overlays;}
|
|
|
|
agenix.nixosModules.default
|
|
|
|
]
|
|
|
|
++ home-manager-config ./users/tacocat/home.nix;
|
2023-10-20 23:41:27 +00:00
|
|
|
in {
|
|
|
|
# desktop
|
2024-01-04 05:31:22 +00:00
|
|
|
nixosConfigurations."bicep" = nixpkgs.lib.nixosSystem {
|
2023-10-20 23:41:27 +00:00
|
|
|
inherit system;
|
2023-12-21 05:50:27 +00:00
|
|
|
specialArgs = {inherit inputs;};
|
2023-12-21 06:37:09 +00:00
|
|
|
modules =
|
|
|
|
[
|
2024-01-04 05:31:22 +00:00
|
|
|
./hosts/bicep/configuration.nix
|
2023-12-21 06:37:09 +00:00
|
|
|
]
|
2024-01-11 02:05:37 +00:00
|
|
|
++ common;
|
2023-10-20 23:41:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# laptop
|
2024-01-04 05:31:22 +00:00
|
|
|
nixosConfigurations."jwst" = nixpkgs.lib.nixosSystem {
|
2023-10-20 23:41:27 +00:00
|
|
|
inherit system;
|
2023-10-29 18:11:54 +00:00
|
|
|
specialArgs = {inherit inputs;};
|
2023-12-19 17:00:56 +00:00
|
|
|
modules =
|
|
|
|
[
|
2024-01-04 05:31:22 +00:00
|
|
|
./hosts/jwst/configuration.nix
|
2023-12-19 17:00:56 +00:00
|
|
|
nixos-hardware.nixosModules.dell-xps-15-9520
|
|
|
|
]
|
2024-01-11 02:05:37 +00:00
|
|
|
++ common;
|
2023-10-20 23:41:27 +00:00
|
|
|
};
|
|
|
|
|
2023-11-23 04:54:46 +00:00
|
|
|
formatter.${system} = pkgs.alejandra;
|
2023-10-20 23:41:27 +00:00
|
|
|
};
|
|
|
|
}
|