add flake/home-manager and standard cli programs

This commit is contained in:
2023-08-02 21:37:21 +02:00
parent 1d385aa703
commit 7536cd5097
13 changed files with 307 additions and 0 deletions

24
flake.nix Normal file
View File

@ -0,0 +1,24 @@
{
description = "NixOS configuration";
inputs = { # All flake references
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; # Default stable nix packages
# Home manager
home-manager = { # User package management
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = attrs @ { self, nixpkgs, home-manager, ... }: {
nixosConfigurations = { # NixOS Configuration
merkur = nixpkgs.lib.nixosSystem { # Flake "merkur" (Notebook)
system = "x85_64-linux";
specialArgs = attrs; # Pass flake attrs to our config
modules = [ ./hosts/merkur.nix ];
};
};
};
}