nix-config/flake.nix
2024-05-12 16:28:25 +02:00

52 lines
No EOL
1.5 KiB
Nix

{
description = "A simple NixOS flake";
inputs = {
# NixOS official package source, using the nixos-23.11 branch here
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
hardware.url = "github:nixos/nixos-hardware";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs-unstable.follows = "nixpkgs";
};
# # Declarative partitioning and formatting
# disko = {
# url = "github:nix-community/disko";
# inputs.nixpkgs.follows = "nixpkgs";
# };
#
# # Secrets management. See ./docs/secretsmgmt.md
# sops-nix = {
# url = "github:mic92/sops-nix";
# inputs.nixpkgs.follows = "nixpkgs";
# };
};
outputs = { self, nixpkgs-unstable, home-manager, ... }@inputs: {
# Please replace my-nixos with your hostname
nixosConfigurations.Lenni = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
#home-manager.users.willifan = import ./users/willifan/home;
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
}
./hosts
./users/willifan
];
};
};
}