2024-09-22 01:04:11 -04:00
|
|
|
# flake.nix
|
|
|
|
{
|
|
|
|
description = "My Home Manager configuration";
|
|
|
|
|
|
|
|
inputs = {
|
2024-12-21 15:35:54 -05:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
2024-09-24 16:11:23 -04:00
|
|
|
|
2024-12-04 13:04:38 -05:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-11-29 17:11:57 -05:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
2024-09-22 01:04:11 -04:00
|
|
|
|
2024-10-05 12:36:08 -04:00
|
|
|
home-manager = {
|
2024-11-28 13:39:35 -05:00
|
|
|
url = "github:nix-community/home-manager/release-24.11";
|
2024-10-05 12:36:08 -04:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-23 23:35:58 -04:00
|
|
|
|
2024-12-31 12:05:58 -05:00
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch
|
2024-09-25 23:50:11 -04:00
|
|
|
|
2024-09-27 11:34:14 -04:00
|
|
|
kmonad = {
|
|
|
|
url = "git+https://github.com/kmonad/kmonad?submodules=1&dir=nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-28 21:03:16 -04:00
|
|
|
|
|
|
|
musnix = {
|
|
|
|
url = "github:musnix/musnix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-02 12:11:23 -04:00
|
|
|
|
2024-11-29 17:11:57 -05:00
|
|
|
audio = {
|
2024-12-21 11:43:19 -05:00
|
|
|
url = "git+https://gt.emenel.ca/emenel/audio.nix.git";
|
2024-11-29 17:11:57 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-12-21 15:35:54 -05:00
|
|
|
wezterm = {
|
|
|
|
url = "github:wez/wezterm?dir=nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-12-31 12:05:58 -05:00
|
|
|
# nix-ld.url = "github:Mic92/nix-ld";
|
|
|
|
# nix-ld.inputs.nixpkgs.follows = "nixpkgs";
|
2024-12-15 13:30:26 -05:00
|
|
|
|
2024-12-15 22:05:35 -05:00
|
|
|
# affinity-nix.url = "github:mrshmllow/affinity-nix";
|
|
|
|
# affinity-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-22 01:04:11 -04:00
|
|
|
};
|
|
|
|
|
2024-12-31 12:05:58 -05:00
|
|
|
outputs = {nixpkgs, nixpkgs-unstable, wezterm, home-manager, audio, nix-flatpak, kmonad, musnix, self, ... } @ inputs:
|
|
|
|
let
|
|
|
|
inherit (self) outputs;
|
|
|
|
# Supported systems for your flake packages, shell, etc.
|
|
|
|
systems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
|
|
|
# This is a function that generates an attribute by calling a function you
|
|
|
|
# pass to it, with each system as an argument
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
2024-12-31 12:49:39 -05:00
|
|
|
packages = forAllSystems (system: import ./packages nixpkgs.legacyPackages.${system});
|
|
|
|
|
2024-12-31 12:05:58 -05:00
|
|
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
|
|
|
|
|
|
overlays = import ./overlays {inherit inputs;};
|
|
|
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
eddie = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs outputs;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
nix-flatpak.nixosModules.nix-flatpak
|
|
|
|
kmonad.nixosModules.default
|
|
|
|
musnix.nixosModules.musnix
|
|
|
|
./system/eddie/configuration.nix
|
|
|
|
];
|
|
|
|
};
|
2024-09-22 01:04:11 -04:00
|
|
|
};
|
2024-12-07 14:04:15 -05:00
|
|
|
|
|
|
|
|
2024-12-31 12:05:58 -05:00
|
|
|
homeConfigurations = {
|
|
|
|
"emenel" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs outputs;
|
|
|
|
};
|
2024-09-29 15:42:52 -04:00
|
|
|
|
2024-12-31 12:05:58 -05:00
|
|
|
modules = [
|
|
|
|
nix-flatpak.homeManagerModules.nix-flatpak
|
|
|
|
./home/home.nix
|
|
|
|
];
|
|
|
|
};
|
2024-09-22 01:15:13 -04:00
|
|
|
};
|
2024-12-07 14:04:15 -05:00
|
|
|
};
|
2024-09-22 01:04:11 -04:00
|
|
|
}
|