53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
description = "Janne Peltola's Nix Config";
|
|
|
|
inputs = {
|
|
# Nixpkgs
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# Home manager
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
# Dank Linux
|
|
dms = {
|
|
url = "github:AvengeMedia/DankMaterialShell/stable";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
dgop = {
|
|
url = "github:AvengeMedia/dgop";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
niri = {
|
|
url = "github:sodiboo/niri-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
in {
|
|
# NixOS configuration entrypoint
|
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
|
nixosConfigurations = {
|
|
hermes = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
# > Our main nixos configuration file
|
|
modules = [
|
|
./nixos/configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.users.janne = ./home-manager/home.nix;
|
|
home-manager.extraSpecialArgs = {
|
|
inherit inputs;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|