add flake/home-manager and standard cli programs
This commit is contained in:
24
flake.nix
Normal file
24
flake.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user