62 lines
1.6 KiB
Nix
62 lines
1.6 KiB
Nix
|
|
{
|
||
|
|
description = "Daedalus system configuration";
|
||
|
|
|
||
|
|
inputs = {
|
||
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||
|
|
|
||
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||
|
|
|
||
|
|
home-manager = {
|
||
|
|
url = "github:nix-community/home-manager";
|
||
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
|
};
|
||
|
|
|
||
|
|
catppuccin.url = "github:catppuccin/nix";
|
||
|
|
|
||
|
|
alejandra = {
|
||
|
|
url = "github:kamadorueda/alejandra/4.0.0";
|
||
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs = inputs@{ nixpkgs, nixpkgs-stable, home-manager, catppuccin, alejandra, ... }: {
|
||
|
|
nixosConfigurations = {
|
||
|
|
daedalus = nixpkgs.lib.nixosSystem rec {
|
||
|
|
system = "x86_64-linux";
|
||
|
|
specialArgs = {
|
||
|
|
inherit inputs;
|
||
|
|
# Or just pass stable directly:
|
||
|
|
pkgs-stable = import nixpkgs-stable {
|
||
|
|
system = "x86_64-linux";
|
||
|
|
config.allowUnfree = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
modules = [
|
||
|
|
{
|
||
|
|
environment.systemPackages = [alejandra.defaultPackage.${system}];
|
||
|
|
}
|
||
|
|
./systems/nixos/daedalus
|
||
|
|
|
||
|
|
catppuccin.nixosModules.catppuccin
|
||
|
|
home-manager.nixosModules.home-manager
|
||
|
|
|
||
|
|
home-manager.nixosModules.home-manager
|
||
|
|
{
|
||
|
|
home-manager.useGlobalPkgs = true;
|
||
|
|
home-manager.useUserPackages = true;
|
||
|
|
|
||
|
|
home-manager.users.klesperance = {
|
||
|
|
imports = [
|
||
|
|
./home
|
||
|
|
catppuccin.homeModules.catppuccin
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|
||
|
|
];
|
||
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|