2024-09-22 01:04:11 -04:00
|
|
|
# flake.nix
|
|
|
|
{
|
|
|
|
description = "My Home Manager configuration";
|
|
|
|
|
|
|
|
inputs = {
|
2024-09-24 16:11:23 -04:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
|
2024-09-25 23:50:11 -04:00
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-09-22 01:04:11 -04:00
|
|
|
|
2024-09-23 23:35:58 -04:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
2024-09-22 01:04:11 -04:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-23 23:35:58 -04:00
|
|
|
|
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch. Use github:gmodena/nix-flatpak/?ref=<tag> to pin releases.
|
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-09-22 01:04:11 -04:00
|
|
|
};
|
|
|
|
|
2024-09-30 00:55:41 -04:00
|
|
|
outputs = inputs @ {self, nixpkgs, nixpkgs-stable, home-manager, nix-flatpak, kmonad, musnix, ... }: {
|
2024-09-22 01:04:11 -04:00
|
|
|
nixosConfigurations = {
|
2024-09-23 23:35:58 -04:00
|
|
|
eddie = nixpkgs.lib.nixosSystem {
|
2024-09-22 01:04:11 -04:00
|
|
|
system = "x86_64-linux";
|
2024-09-23 23:35:58 -04:00
|
|
|
modules = [
|
|
|
|
nix-flatpak.nixosModules.nix-flatpak
|
2024-09-27 11:34:14 -04:00
|
|
|
kmonad.nixosModules.default
|
2024-09-28 21:03:16 -04:00
|
|
|
musnix.nixosModules.musnix
|
|
|
|
./system/eddie/configuration.nix
|
2024-09-23 23:35:58 -04:00
|
|
|
];
|
2024-09-22 01:04:11 -04:00
|
|
|
};
|
|
|
|
};
|
2024-09-22 01:15:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
homeConfigurations = {
|
2024-09-30 00:55:41 -04:00
|
|
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
|
2024-09-22 01:15:13 -04:00
|
|
|
"emenel" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
2024-09-29 15:42:52 -04:00
|
|
|
|
2024-09-30 00:55:41 -04:00
|
|
|
# pkgs = import nixpkgs {
|
|
|
|
# system = "x86_64-linux"; # whatever your system name is
|
|
|
|
# config = {
|
|
|
|
# allowUnfree = true;
|
|
|
|
# allowUnfreePredicate = _: true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
2024-09-29 15:42:52 -04:00
|
|
|
extraSpecialArgs = { inherit inputs; };
|
|
|
|
|
2024-09-23 23:35:58 -04:00
|
|
|
modules = [
|
|
|
|
nix-flatpak.homeManagerModules.nix-flatpak
|
2024-09-24 17:57:11 -04:00
|
|
|
./home/home.nix
|
2024-09-23 23:35:58 -04:00
|
|
|
];
|
2024-09-22 01:15:13 -04:00
|
|
|
};
|
|
|
|
};
|
2024-09-22 01:04:11 -04:00
|
|
|
};
|
|
|
|
}
|