Files
nixos/flake.nix
2024-06-29 13:20:56 +02:00

64 lines
1.5 KiB
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
home-manager = {
url = github:nix-community/home-manager/release-24.05;
inputs.nixpkgs.follows = "nixpkgs";
};
#nbfc-linux = {
#url = "github:nbfc-linux/nbfc-linux";
#inputs.nixpkgs.follows = "nixpkgs";
#};
nixvim = {
url = "github:nix-community/nixvim/nixos-24.05";
# If using a stable channel you can use `url = "github:nix-community/nixvim/nixos-<version>"`
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, nixvim, ... } @ inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in
{
nixosConfigurations = {
#nixos = lib.nixosSystem {
#inherit system;
#specialArgs = {inherit inputs;};
#modules = [
#./configuration.nix
#];
#};
fredrikr = lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.fredrikr = {
imports = [ ./home.nix
nixvim.homeManagerModules.nixvim
];
};
}
];
};
};
};
}