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
|
|
|
|
2025-01-03 23:23:35 -05:00
|
|
|
home-manager-unstable.url = "github:nix-community/home-manager";
|
|
|
|
|
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-12-21 15:35:54 -05:00
|
|
|
wezterm = {
|
|
|
|
url = "github:wez/wezterm?dir=nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2025-01-01 13:18:25 -05:00
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2025-01-03 23:23:35 -05:00
|
|
|
ghostty = {
|
|
|
|
url = "github:ghostty-org/ghostty";
|
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
affinity-nix = {
|
|
|
|
url = "github:mrshmllow/affinity-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-22 01:04:11 -04:00
|
|
|
};
|
|
|
|
|
2025-01-01 13:18:25 -05:00
|
|
|
outputs = {nixpkgs, home-manager, sops-nix, nix-flatpak, kmonad, musnix, self, ... } @ inputs:
|
2024-12-31 12:05:58 -05:00
|
|
|
let
|
|
|
|
inherit (self) outputs;
|
|
|
|
# Supported systems for your flake packages, shell, etc.
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
|
|
|
# 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 {
|
2025-01-10 08:10:23 -05:00
|
|
|
system = "x86_64-linux";
|
2024-12-31 12:05:58 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs outputs;
|
|
|
|
};
|
|
|
|
modules = [
|
2025-01-01 13:18:25 -05:00
|
|
|
sops-nix.nixosModules.sops
|
2024-12-31 12:05:58 -05:00
|
|
|
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
|
2025-01-01 13:18:25 -05:00
|
|
|
sops-nix.homeManagerModules.sops
|
2024-12-31 12:05:58 -05:00
|
|
|
./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
|
|
|
}
|