nixos-config/flake.nix

117 lines
3 KiB
Nix
Raw Normal View History

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";
};
affinity-nix = {
url = "github:mrshmllow/affinity-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-19 16:00:05 -05:00
isd = {
url = "github:isd-project/isd";
inputs.nixpkgs.follows = "nixpkgs";
};
paperwm = {
url = "github:paperwm/PaperWM";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-27 15:34:15 -05:00
niri = {
url = "github:YaLTeR/niri";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-09-22 01:04:11 -04:00
};
outputs = {nixpkgs, home-manager, sops-nix, 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 {
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
inputs.nix-flatpak.nixosModules.nix-flatpak
2024-12-31 12:05:58 -05:00
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 = [
inputs.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
}